/* ═══════════════════════════════════════════════════════════════════════════
   G BOTSSH — Azul Vidrado (Glassmorphism Premium)
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --purple: #3b82f6;
    --purple-dark: #1e40af;
    --purple-light: #93c5fd;
    --purple-glow: rgba(59, 130, 246, 0.3);
    --purple-glow-strong: rgba(59, 130, 246, 0.5);
    --bg-body: #0c1b3d;
    --bg-card: rgba(255,255,255,0.05);
    --bg-card-hover: rgba(255,255,255,0.09);
    --bg-sidebar: rgba(255,255,255,0.03);
    --bg-input: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.1);
    --border-light: rgba(255,255,255,0.18);
    --glass: rgba(255,255,255,0.06);
    --glass-strong: rgba(255,255,255,0.1);
    --glass-border: rgba(255,255,255,0.13);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.4);
    --text: #ffffff;
    --text-muted: rgba(255,255,255,0.5);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #22d3ee;
    --blue-mp: #009ee3;
}

* { box-sizing: border-box; }

body {
    background: linear-gradient(160deg, #0a1628 0%, #122a5c 40%, #1a3a7a 70%, #0f2550 100%) !important;
    background-attachment: fixed !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.bg-dark {
    background: transparent !important;
}

/* Forçar texto branco */
body, p, span, small, strong, h1, h2, h3, h4, h5, h6, li, td, th, label, a {
    color: #fff !important;
}
.text-muted {
    color: rgba(255,255,255,0.5) !important;
}

/* ── Fundo animado com orbs ───────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    animation: floatOrb1 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    animation: floatOrb2 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 8%) scale(1.05); }
    66% { transform: translate(-3%, -5%) scale(0.97); }
}
@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-4%, -6%) scale(1.03); }
    66% { transform: translate(6%, 4%) scale(0.98); }
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.6); }

/* ── Cores ────────────────────────────────────────────────────────────────── */
.text-purple { color: var(--purple-light) !important; }
.bg-purple { background-color: rgba(59,130,246,0.15) !important; }
.border-purple { border-color: rgba(59,130,246,0.3) !important; }

/* ── Botões ───────────────────────────────────────────────────────────────── */
.btn-purple {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.2px;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
    position: relative;
    overflow: hidden;
}
.btn-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn-purple:hover::before {
    left: 100%;
}
.btn-purple:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.45);
}
.btn-purple:active { transform: translateY(0); }

.btn-outline-danger {
    border-radius: 10px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
.btn-outline-light {
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* ── Cards — Efeito Vidro ─────────────────────────────────────────────────── */
.card {
    background: var(--glass) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}
.card:hover {
    background: var(--glass-strong) !important;
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1) !important;
    transform: translateY(-2px);
}
.card.border-purple,
.card:hover.border-purple {
    border-color: rgba(59,130,246,0.4) !important;
}

/* ── Stat Cards ───────────────────────────────────────────────────────────── */
.stat-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.06);
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
    opacity: 0;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: rgba(59,130,246,0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}
.stat-card:hover::after { opacity: 1; left: 10%; right: 10%; }
.stat-card h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card small {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ── Navbar — Vidro ───────────────────────────────────────────────────────── */
.navbar {
    background: rgba(10, 22, 50, 0.7) !important;
    backdrop-filter: blur(20px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 14px 28px;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
}
.navbar-brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout Fix ───────────────────────────────────────────────────────────── */
.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Sidebar — Vidro ─────────────────────────────────────────────────────── */
.sidebar {
    background: rgba(10, 22, 50, 0.5);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-right: 1px solid rgba(255,255,255,0.06);
    min-height: calc(100vh - 50px);
    padding: 16px 10px;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1;
}
.sidebar.collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    padding: 16px 8px !important;
    flex: 0 0 60px !important;
}
.sidebar.collapsed .sidebar-label {
    display: none;
}
.sidebar.collapsed .sidebar-text {
    display: none;
}
.sidebar.collapsed .sidebar-pulse {
    display: none;
}
.sidebar.collapsed .sidebar-item {
    justify-content: center;
    padding: 12px;
    margin: 3px auto;
    width: 44px;
    height: 44px;
    border-radius: 12px !important;
}
.sidebar.collapsed .sidebar-item i {
    margin: 0;
    font-size: 1.15rem;
}
.sidebar.collapsed .sidebar-item.active::before {
    top: 10px;
    bottom: 10px;
}
.sidebar.collapsed .sidebar-section {
    margin-bottom: 4px;
}
.row.g-0 > .sidebar.collapsed + main {
    max-width: calc(100% - 60px) !important;
    flex: 0 0 calc(100% - 60px) !important;
    width: calc(100% - 60px) !important;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: calc(100vh - 90px);
}
.sidebar-section {
    margin-bottom: 8px;
}
.sidebar-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.25) !important;
    padding: 10px 16px 6px;
    margin: 0;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    margin: 2px 4px;
    border-radius: 12px;
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.sidebar-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    transform: translateX(3px);
}
.sidebar-item.active {
    background: rgba(59,130,246,0.15);
    color: #fff !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(59,130,246,0.2);
}
.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #93c5fd);
    border-radius: 0 3px 3px 0;
}
.sidebar-item i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.6) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.6) !important;
}
.sidebar-item.active i {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}
.sidebar-item:hover i {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.sidebar-renovar {
    background: rgba(59,130,246,0.1) !important;
    border: 1px solid rgba(59,130,246,0.2) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 600 !important;
    margin-top: 4px;
}
.sidebar-renovar:hover {
    background: rgba(59,130,246,0.2) !important;
    border-color: rgba(59,130,246,0.35) !important;
}
@keyframes pulseBlue {
    0% { transform: translateY(-50%) scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(59,130,246,0.6); }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.8; box-shadow: 0 0 0 6px rgba(59,130,246,0); }
    100% { transform: translateY(-50%) scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
    70% { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

/* ── Inputs — Vidro ───────────────────────────────────────────────────────── */
.form-control, .form-select {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 13px 18px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(59,130,246,0.4) !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1), 0 0 20px rgba(59,130,246,0.1) !important;
    background: rgba(255,255,255,0.08) !important;
}
.form-control::placeholder { color: rgba(255,255,255,0.3) !important; opacity: 1; }
.form-select option, select option {
    background: #1e3a8a !important;
    color: #fff !important;
}
.form-label {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Tabelas ──────────────────────────────────────────────────────────────── */
.table-dark {
    --bs-table-bg: transparent !important;
    --bs-table-border-color: var(--border) !important;
}
.table-dark th {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(59,130,246,0.04);
}
.table-dark td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.table-hover tbody tr:hover {
    background: rgba(59,130,246,0.06) !important;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}

/* ── Modals — Vidro ───────────────────────────────────────────────────────── */
.modal-content {
    background: rgba(15, 30, 70, 0.85) !important;
    backdrop-filter: blur(30px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.5) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6) !important;
}
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.08) !important; padding: 22px 26px; }
.modal-body { padding: 26px; }
.modal-footer { border-top: 1px solid rgba(255,255,255,0.08) !important; padding: 18px 26px; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
    border-radius: 14px;
    border: none;
    font-size: 0.88rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
.alert-warning { background: rgba(251,191,36,0.1); color: var(--warning) !important; border: 1px solid rgba(251,191,36,0.2); }
.alert-success { background: rgba(52,211,153,0.1); color: var(--success) !important; border: 1px solid rgba(52,211,153,0.2); }
.alert-danger  { background: rgba(248,113,113,0.1); color: var(--danger) !important; border: 1px solid rgba(248,113,113,0.2); }
.alert-info    { background: rgba(34,211,238,0.1); color: var(--info) !important; border: 1px solid rgba(34,211,238,0.2); }

/* ── Landing Page ─────────────────────────────────────────────────────────── */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at 25% 50%, rgba(59,130,246,0.15), transparent 60%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { opacity: 0.4; transform: translate(0, 0); }
    100% { opacity: 0.8; transform: translate(3%, -3%); }
}
.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2.5px;
    position: relative;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 60%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero h2 {
    font-size: 1.35rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55) !important;
    position: relative;
    margin-top: 14px;
    letter-spacing: -0.3px;
}
.hero p, .hero .btn { position: relative; }

.feature-icon {
    font-size: 2rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(59,130,246,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(59,130,246,0.2);
    transition: all 0.3s;
}
.feature-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(59,130,246,0.3);
    border-color: rgba(59,130,246,0.4);
}

/* ── Auth Card (Login/Cadastro) — Vidro ───────────────────────────────────── */
.auth-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 48px 40px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, #93c5fd, #3b82f6, transparent);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.auth-card h3 {
    font-weight: 800;
    margin-bottom: 32px;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Glow ─────────────────────────────────────────────────────────────────── */
.glow-text { 
    text-shadow: 0 0 40px rgba(59,130,246,0.4), 0 0 80px rgba(59,130,246,0.15); 
}

/* ── MP Button ────────────────────────────────────────────────────────────── */
.btn-mp {
    background: linear-gradient(135deg, #00b4e6, #0077b6);
    color: #fff !important;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(0,180,230,0.3);
}
.btn-mp:hover {
    background: linear-gradient(135deg, #33c4ee, #009ee3);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(0,180,230,0.4);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

/* Mobile - Sidebar como menu inferior */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.6rem; }
    .stat-card h2 { font-size: 1.6rem; }
    .auth-card { padding: 32px 24px; }

    /* Navbar mobile */
    nav[style*="padding:12px 24px"] {
        padding: 10px 14px !important;
    }
    nav[style*="padding:12px 24px"] .bi-shield-lock-fill {
        font-size: 0.8rem !important;
    }
    nav[style*="padding:12px 24px"] span[style*="v2.0"] {
        display: none !important;
    }

    /* Esconder nome do usuário no mobile */
    nav div[style*="display:flex;align-items:center;gap:10px;background"] {
        display: none !important;
    }

    /* Sidebar como menu lateral oculto no mobile */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: -280px;
        width: 260px !important;
        max-width: 260px !important;
        min-width: 260px !important;
        height: 100vh !important;
        z-index: 9998 !important;
        padding: 70px 10px 20px !important;
        transition: left 0.3s ease !important;
        background: rgba(10, 22, 50, 0.95) !important;
        backdrop-filter: blur(30px) !important;
        border-right: 1px solid rgba(255,255,255,0.08) !important;
        box-shadow: 4px 0 30px rgba(0,0,0,0.5) !important;
    }
    .sidebar.collapsed {
        left: 0 !important;
        width: 260px !important;
        max-width: 260px !important;
        min-width: 260px !important;
    }
    .sidebar.collapsed .sidebar-label {
        display: block !important;
    }
    .sidebar.collapsed .sidebar-text {
        display: inline !important;
    }
    .sidebar.collapsed .sidebar-item {
        justify-content: flex-start !important;
        padding: 11px 16px !important;
        width: auto !important;
        height: auto !important;
    }

    /* Main ocupa tela toda */
    main.col-md-9, main.col-lg-10 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 16px !important;
    }
    .row.g-0 > .sidebar.collapsed + main {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    /* Cards de stats em 2 colunas no mobile */
    .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .dash-card {
        padding: 14px !important;
        gap: 10px !important;
    }
    .dash-card-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
    .dash-card h5 {
        font-size: 1.2rem !important;
    }

    /* Vendas por período em coluna */
    .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Cards gerais */
    .rounded-4 {
        border-radius: 16px !important;
    }
    div[style*="padding:24px 28px"] {
        padding: 16px 14px !important;
    }

    /* Gráfico menor no mobile */
    div[style*="height:220px"] {
        height: 160px !important;
    }

    /* Tabelas scroll horizontal */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Modal sair menor */
    #modalSair > div {
        width: 280px !important;
        padding: 24px !important;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px !important;
        min-width: 200px !important;
    }
    .sidebar-item {
        font-size: 0.82rem !important;
        padding: 10px 12px !important;
    }
    main.col-md-9, main.col-lg-10 {
        padding: 20px !important;
    }
    .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Overlay quando sidebar está aberta no mobile */
@media (max-width: 768px) {
    .sidebar.collapsed::before {
        content: '';
        position: fixed;
        top: 0;
        left: 260px;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: -1;
    }
}

/* ── Dashboard Cards — Vidro ──────────────────────────────────────────────── */
.dash-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.06);
}
.dash-card:hover {
    background: var(--glass-strong);
    border-color: rgba(59,130,246,0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(59,130,246,0.1);
}
.dash-card-highlight {
    background: rgba(59,130,246,0.08);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}
.dash-card-highlight:hover {
    background: rgba(59,130,246,0.12);
    transform: translateY(-2px);
}
.dash-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: rgba(59,130,246,0.15) !important;
    border: 1px solid rgba(59,130,246,0.2);
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}
.dash-card h5 {
    font-size: 1.6rem;
    letter-spacing: -0.8px;
    font-weight: 800;
    color: #fff !important;
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Rounded header ───────────────────────────────────────────────────────── */
.rounded-4 { border-radius: 18px !important; }

/* ── Main Content Area ────────────────────────────────────────────────────── */
main.col-md-9, main.col-lg-10 {
    background: transparent;
    min-height: calc(100vh - 50px);
    position: relative;
    z-index: 1;
}

/* ── Mobile Bottom Navigation (fixed) ─────────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 22, 50, 0.9);
        backdrop-filter: blur(20px) saturate(1.3);
        -webkit-backdrop-filter: blur(20px) saturate(1.3);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 8px 0;
        z-index: 9990;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
    }
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: rgba(255,255,255,0.45) !important;
        font-size: 0.62rem;
        font-weight: 500;
        padding: 4px 12px;
        border-radius: 10px;
        transition: all 0.2s;
    }
    .mobile-bottom-nav a i {
        font-size: 1.2rem;
        color: rgba(255,255,255,0.45) !important;
    }
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a.active i {
        color: #93c5fd !important;
    }
    .mobile-bottom-nav a.active {
        background: rgba(59,130,246,0.15);
    }

    /* Espaço para bottom nav */
    body {
        padding-bottom: 70px !important;
    }
}

/* ── Fix Layout Sidebar + Main ────────────────────────────────────────────── */
.col-md-3.col-lg-2.sidebar {
    position: fixed !important;
    left: 0;
    top: 60px;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    height: calc(100vh - 60px);
    z-index: 100;
    overflow-y: auto;
    padding: 16px 10px !important;
}
main.col-md-9.col-lg-10 {
    margin-left: 200px !important;
    width: calc(100% - 200px) !important;
    max-width: calc(100% - 200px) !important;
}
@media (max-width: 768px) {
    .col-md-3.col-lg-2.sidebar {
        position: fixed !important;
        left: -260px !important;
        top: 0 !important;
        width: 260px !important;
        min-width: 260px !important;
        height: 100vh !important;
        transition: left 0.3s !important;
        padding-top: 70px !important;
    }
    .col-md-3.col-lg-2.sidebar.collapsed {
        left: 0 !important;
    }
    main.col-md-9.col-lg-10 {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ── Notificações — Estilo vidro ──────────────────────────────────────────── */
.notificacao-card,
div[style*="background:rgba(255,255,255,0.05)"],
div[style*="background: rgba(255,255,255,0.05)"] {
    background: var(--glass) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 14px !important;
}

/* ── Efeito brilho no hover geral ─────────────────────────────────────────── */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.06);
}
