/* ============================================================
   SIDEBAR MOBILE
   ============================================================ */

/* Container Principal */
.sidebar-mobile-container {
    background-color: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem; /* Equivalente a p-4 */
    border-right: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    width: 78vw;
    max-width: 320px;
    min-width: 280px;
}

.mobile-sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f3f8;
    color: #1f2a44;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 1001;
}

.mobile-sidebar-close:hover {
    background: #e5ebf3;
}


/* Estrutura de link lateral estilo 'Pill' */
.sidebar-link {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 12px 20px !important;
    color: #6c757d !important; /* Cinza da referência */
    border-radius: 12px !important; /* Raio idêntico ao Analytics */
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
    border: none !important;
    text-decoration: none !important;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none !important;
}

/* Reset de Ícones (Remove quadrados, bordas e fundos estranhos) */
.sidebar-link i {
    font-size: 1.25rem;
    width: 28px; /* Largura fixa para alinhar o texto verticalmente */
    text-align: center;
    border: none !important;
    background: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Efeito Hover para links comuns */
.sidebar-link:hover {
    background-color: #f8f9fa;
    color: #4070f4 !important;
}

/* O "Active Pill" - DESTAQUE AZUL (Igual ao Analytics da foto) */
.active-pill {
    background-color: #4070f4 !important; /* Azul da Codinglab */
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(64, 112, 244, 0.3);
}

.active-pill i {
    color: #ffffff !important;
}

/* Ajuste para quando o mouse passa por cima do botão azul */
.active-pill:hover {
    background-color: #3661e3 !important;
    color: #ffffff !important;
}

/* Utilitários de Texto e Alinhamento */
.text-left { text-align: left !important; }

.gap-2 { gap: 0.5rem !important; }

.sidebar-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Guest buttons inline */
.sidebar-mobile-container .guest-actions-inline {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-end;
    padding-right: 12px;
}

.sidebar-mobile-container .guest-actions-inline .nav-item {
    margin-bottom: 0 !important;
    margin-left: 6px;
}

.sidebar-mobile-container .guest-actions-inline .sidebar-link {
    justify-content: center;
    text-align: center;
    padding: 10px 8px !important;
}

.sidebar-mobile-container .guest-actions-inline .sidebar-link span {
    font-size: 12px;
    white-space: nowrap;
}

/* Mobile seller switch */
.sidebar-mobile-container .btn-toggle {
    margin: 0;
    padding: 0;
    position: relative;
    border: 1px solid rgba(6, 83, 186, 0.25);
    height: 34px;
    width: 120px;
    min-width: 120px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f6fe5 0%, #0a9ec9 100%);
    box-shadow: 0 6px 12px rgba(15, 64, 136, 0.18);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.sidebar-mobile-container .btn-toggle.mobile-switch--wide {
    width: 200px;
    min-width: 200px;
}

.sidebar-mobile-container .btn-toggle:focus,
.sidebar-mobile-container .btn-toggle.focus,
.sidebar-mobile-container .btn-toggle:focus.active,
.sidebar-mobile-container .btn-toggle.focus.active {
    outline: none;
    box-shadow: none;
}

.sidebar-mobile-container .btn-toggle .btn-text {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
    padding: 0 44px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.sidebar-mobile-container .btn-toggle > .handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: left 0.25s, right 0.25s;
}

.sidebar-mobile-container .btn-toggle.active > .handle {
    left: auto;
    right: 4px;
}

/* Apenas mobile */
@media (min-width: 992px) {
    .sidebar-mobile-container {
        display: none !important;
    }
    .desktop-nav-menu {
        display: block;
    }
}

/* Ajuste para o rodapé (Logout) */
.sidebar-footer {
    margin-top: auto;
}

.text-danger.sidebar-link:hover {
    background-color: #fff5f5;
    color: #dc3545 !important;
}
