/* sidebar.css - Estilos do menu lateral Kondular */
/* Versão: 1.0 - CSS isolado para melhor performance */

/* ===== RESET E ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', sans-serif;
    background: #F0F0F0;
    color: #1F1F1E;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    line-height: 1.5;
    opacity: 1;
    transition: opacity 0.1s ease;
}

/* ===== SIDEBAR PRINCIPAL ===== */
.sidebar-mobile {
    background: #1F1F1E !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    inset-y: 0;
    left: 0;
    z-index: 50;
    width: 280px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.sidebar-mobile.md\:sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: translateX(0);
    width: 15%;
}

.sidebar-mobile.active {
    transform: translateX(0);
}

/* ===== LINKS E BOTÕES ===== */
.sidebar-mobile a,
.sidebar-mobile button {
    color: #F0F0F0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-mobile a:hover,
.sidebar-mobile button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.sidebar-mobile .active {
    background: rgba(255, 64, 1, 0.15);
    color: #FFFFFF;
    font-weight: 600;
}

.sidebar-mobile .active .nav-icon {
    color: #FF4001;
}

/* ===== ÍCONES ===== */
.nav-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== SCROLL PERSONALIZADO ===== */
.custom-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-scroll::-webkit-scrollbar {
    display: none;
}

/* ===== CARD DA LOJA ===== */
.store-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-card:hover {
    background: rgba(255, 64, 1, 0.10);
    transform: translateY(-1px);
    border-color: #FF4001;
}

.store-card:active {
    transform: translateY(0);
}

.store-domain {
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.store-label {
    font-size: 7px;
    font-weight: 600;
    color: #F0F0F0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-favicon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.store-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-url {
    font-size: 8px;
    font-weight: 500;
    color: #FF4001;
    word-break: break-all;
    text-decoration: none;
}

.store-url:hover {
    text-decoration: underline;
}

/* ===== BOTÃO DE LOGOUT ===== */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    background: rgba(255, 64, 1, 0.15);
    color: #F0F0F0;
    border: 1px solid rgba(255, 64, 1, 0.2);
}

.logout-btn:hover {
    background: #FF4001;
    color: #FFFFFF;
    border-color: #FF4001;
}

.logout-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== LOADER ===== */
.loader-overlay {
    display: none !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (min-width: 768px) {
    .sidebar-mobile {
        transform: translateX(0);
        width: 15%;
        position: sticky !important;
    }
    #sidebar-overlay {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .sidebar-mobile {
        transform: translateX(-100%);
        width: 280px !important;
    }
    .sidebar-mobile.active {
        transform: translateX(0);
    }
    
    .store-card {
        margin: 0.25rem;
        padding: 0.5rem;
    }
    
    .store-favicon {
        width: 28px;
        height: 28px;
    }
    
    .store-domain {
        font-size: 10px;
    }
}

/* ===== TIPOGRAFIA ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}
h2 {
    font-size: 1.75rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}
h5 {
    font-size: 1.125rem;
}
h6 {
    font-size: 1rem;
}

.font-normal {
    font-weight: 400;
}
.font-medium {
    font-weight: 500;
}
.font-semibold {
    font-weight: 600;
}
.font-bold {
    font-weight: 700;
}
.font-extrabold {
    font-weight: 800;
}

/* ===== CORES KONDULAR ===== */
.brand-orange {
    color: #FF4001;
}
.bg-brand-orange {
    background-color: #FF4001;
}
.bg-structure {
    background-color: #1F1F1E;
}
.text-structure {
    color: #1F1F1E;
}
.border-structure {
    border-color: #1F1F1E;
}

/* ===== COMPONENTES ===== */
.card {
    background: #FFFFFF;
    border-radius: 1.25rem;
    border: 1px solid #EDF2F7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-kondular {
    background: #FF4001;
    color: #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.3s;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
}

.btn-kondular:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

input:focus {
    border-color: #FF4001 !important;
    box-shadow: 0 0 0 3px rgba(255, 64, 1, 0.1) !important;
}

.label {
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #F0F0F0;
}

.stat-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1F1F1E;
}

.stat-label {
    font-weight: 500;
    font-size: 0.75rem;
    color: #F0F0F0;
}

/* ===== RESPONSIVIDADE ADICIONAL ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}