/* ═══════════════════════════════════════════════════════════════
   NUVEX ERP - PREMIUM THEME v3.0
   Design Clean & Light Theme
   Autor: Kimi Code CLI
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   ROOT VARIABLES - Paleta Premium Light
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Cores Primárias - Espectro Violeta/Ciano */
    --primary-violet: #a78bfa;
    --primary-cyan: #22d3ee;
    --primary-magenta: #f472b6;
    --primary-orange: #fb923c;

    /* Gradientes Principais */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
    --gradient-secondary: linear-gradient(135deg, #db2777 0%, #ea580c 100%);
    --gradient-tertiary: linear-gradient(135deg, #0891b2 0%, #059669 100%);

    /* Fundos - TEMA ESCURO */
    --bg-deep: #0f172a;
    --bg-dark: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --bg-glass: rgba(15, 23, 42, 0.85);

    /* Bordas */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(167, 139, 250, 0.3);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* Texto - TEMA ESCURO */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: #a78bfa;

    /* Cores de Status */
    --success: #34d399;
    --success-glow: rgba(52, 211, 153, 0.2);
    --warning: #fbbf24;
    --warning-glow: rgba(251, 191, 36, 0.2);
    --danger: #f87171;
    --danger-glow: rgba(248, 113, 113, 0.2);
    --info: #60a5fa;

    /* Shadow Effects - TEMA ESCURO */
    --glow-primary: 0 0 30px rgba(124, 58, 237, 0.3);
    --glow-cyan: 0 0 30px rgba(8, 145, 178, 0.3);
    --glow-success: 0 0 30px rgba(5, 150, 105, 0.3);
    --glow-card: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Spacing & Radius */
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    /* Transições */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL DARK THEME ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;

    /* Background Premium Dark */
    background-image:
        radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(124, 58, 237, 0.15) 0px, transparent 50%);
    background-size: 100% 100%;
    background-attachment: fixed;
}

/* Animação sutil do fundo */
@keyframes bgShift {

    0%,
    100% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    50% {
        background-position: 0 0, 0 0, 20px 20px, -10px 10px, 10px -10px, 0 0;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 30% 20% at 70% 60%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 25% 30% at 30% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-alt {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-accent {
    color: var(--text-accent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   GLASS PANEL - Componente Principal
   ═══════════════════════════════════════════════════════════════ */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow:
        var(--glow-card),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 100%);
    transition: left 0.7s ease;
}

.glass-panel:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--glass-border-hover);
    box-shadow:
        var(--glow-card),
        0 0 30px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel:hover::after {
    left: 100%;
}

/* Variações de Glass Panel */
.glass-panel-primary {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        var(--glow-card),
        0 0 30px rgba(139, 92, 246, 0.2);
}

.glass-panel-cyan {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow:
        var(--glow-card),
        0 0 30px rgba(6, 182, 212, 0.2);
}

.glass-panel-success {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow:
        var(--glow-card),
        0 0 30px rgba(16, 185, 129, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS - Cards de Estatísticas Premium
   ═══════════════════════════════════════════════════════════════ */
.stat-card-elegant {
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   END OF THEME
   ═══════════════════════════════════════════════════════════════ */

/* Stat Icon Wrapper - Adjustment for Dark Theme */
.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    /* Changed from #f8fafc */
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
    transition: all var(--transition-base);
    position: relative;
    color: var(--text-primary);
}

.stat-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glass-panel:hover .stat-icon-wrapper {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

.glass-panel:hover .stat-icon-wrapper::before {
    opacity: 1;
}

.glass-panel:hover .stat-icon-wrapper i {
    color: white !important;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    margin-top: 12px;
}

.stat-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS - Botões Premium
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-elegant {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    transition: left 0.5s ease;
}

.btn-elegant:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-elegant:hover::before {
    left: 100%;
}

.btn-elegant-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    position: relative;
}

.btn-elegant-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-elegant-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: transparent;
}

.btn-elegant-outline:hover::before {
    opacity: 1;
}

.btn-glow {
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.6);
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLES - Tabelas Premium
   ═══════════════════════════════════════════════════════════════ */
.table-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.table-elegant {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.table-elegant th {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.table-elegant td {
    padding: 20px 24px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
    transition: all var(--transition-fast);
}

.table-elegant tbody tr {
    transition: all var(--transition-fast);
}

.table-elegant tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.table-elegant tbody tr:hover td {
    color: var(--primary);
}

.table-elegant tr:last-child td {
    border-bottom: none;
}

/* Avatar na tabela */
.table-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   BADGES - Etiquetas de Status Premium
   ═══════════════════════════════════════════════════════════════ */
.badge-elegant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px var(--success-glow);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px var(--warning-glow);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px var(--danger-glow);
}

.badge-primary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-violet);
    border-color: rgba(139, 92, 246, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS - Formulários Premium
   ═══════════════════════════════════════════════════════════════ */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 14px 18px;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-floating>.form-control,
.form-floating>.form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.form-floating>label {
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS - Animações Premium
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.animate-scale {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR - Sidebar Premium
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
}

.sidebar-header {
    border-bottom: 1px solid var(--glass-border) !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}

.logo-icon {
    background: var(--gradient-primary) !important;
    box-shadow: var(--glow-primary);
    animation: glowPulse 3s ease-in-out infinite;
}

.nav-link {
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition-base) !important;
}

.nav-link:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: white !important;
    transform: translateX(4px);
}

.nav-link.active {
    background: rgba(139, 92, 246, 0.15) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.nav-link.active::before {
    background: var(--gradient-primary) !important;
}

/* ═══ CRITICAL FIX: Sidebar submenu layout ═══
   The premium-dashboard.css sets .nav-item { display: flex }
   which causes the .submenu to appear alongside the parent link (row)
   instead of below it. These overrides ensure correct vertical layout. */
.sidebar .has-submenu,
.sidebar-nav .has-submenu {
    display: block !important;
    width: 100% !important;
}

.sidebar .submenu,
.sidebar-nav .submenu {
    display: block !important;
    width: 100% !important;
    position: static !important;
}

.sidebar .nav-item.has-submenu>.nav-link,
.sidebar-nav .nav-item.has-submenu>.nav-link {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.nav-section-title {
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER - Cabeçalho Premium
   ═══════════════════════════════════════════════════════════════ */
.top-header {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.page-title {
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toggle-btn:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--primary-violet) !important;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR - Barra de Rolagem Premium
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-violet) 0%, var(--primary-cyan) 100%);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9f7aea 0%, #22d3ee 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ═══════════════════════════════════════════════════════════════
   LOADING & SKELETON
   ═══════════════════════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs);
}

/* ═══════════════════════════════════════════════════════════════
   DROPDOWNS - Menus Dropdown Premium
   ═══════════════════════════════════════════════════════════════ */
.dropdown-menu {
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--glow-card) !important;
    padding: 12px !important;
}

.dropdown-item {
    color: var(--text-secondary) !important;
    border-radius: var(--radius-xs);
    padding: 10px 16px !important;
    transition: all var(--transition-fast) !important;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: white !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHARTS - Gráficos
   ═══════════════════════════════════════════════════════════════ */
.chart-container {
    position: relative;
    padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.border-gradient {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        var(--gradient-primary) border-box;
}

.glow-text {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }

    .glass-panel {
        border-radius: var(--radius-md);
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .glass-panel {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}


/* End of Global Dark Theme */

/* ═══════════════════════════════════════════════════════════════
   CRITICAL FIXES - Bootstrap Overrides for Dark Mode
   ═══════════════════════════════════════════════════════════════ */

/* Force all tables to be transparent/dark */
.table {
    color: var(--text-primary) !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-primary) !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-striped-color: var(--text-primary) !important;
    --bs-table-active-bg: rgba(255, 255, 255, 0.05) !important;
    --bs-table-active-color: var(--text-primary) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05) !important;
    --bs-table-hover-color: var(--text-primary) !important;
    background-color: transparent !important;
}

.table> :not(caption)>*>* {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border-bottom-color: var(--glass-border) !important;
    box-shadow: none !important;
}

/* Fix Table Header (table-light) */
.table .table-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
}

.table .table-light th,
.table .table-light td {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
    border-color: var(--glass-border) !important;
}

/* Fix Card Backgrounds */
.card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
}

.card-body {
    color: var(--text-primary) !important;
}

/* Fix Primary Card (e.g., Total Mês) */
.card.bg-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
}

.card.bg-primary .card-body h6,
.card.bg-primary .card-body h4,
.card.bg-primary .text-white {
    color: white !important;
}

/* Fix Badges in Table */
.badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--glass-border) !important;
}

/* Strong Text in Table */
.table strong.text-primary {
    color: var(--primary-cyan) !important;
}