/* Estilos Personalizados - Dashboard Web TuChance PTY */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #0B1320;
    color: #F1F5F9;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Balotas 3D Realistas LNB */
.balota-3d {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.balota-3d:hover {
    transform: translateY(-2px) scale(1.05);
}
.balota-gold {
    background: radial-gradient(circle at 35% 30%, #fffbeb 0%, #fde047 25%, #f59e0b 60%, #b45309 100%);
    color: #1e1b4b;
    box-shadow: inset -2px -4px 6px rgba(0, 0, 0, 0.35), inset 2px 2px 4px rgba(255, 255, 255, 0.8), 0 8px 16px rgba(245, 158, 11, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.balota-silver {
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f1f5f9 30%, #94a3b8 70%, #475569 100%);
    color: #0f172a;
    box-shadow: inset -2px -4px 6px rgba(0, 0, 0, 0.35), inset 2px 2px 4px rgba(255, 255, 255, 0.9), 0 6px 14px rgba(148, 163, 184, 0.2);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.balota-bronze {
    background: radial-gradient(circle at 35% 30%, #ffedd5 0%, #fb923c 30%, #c2410c 70%, #7c2d12 100%);
    color: #ffffff;
    box-shadow: inset -2px -4px 6px rgba(0, 0, 0, 0.4), inset 2px 2px 4px rgba(255, 255, 255, 0.6), 0 6px 14px rgba(194, 65, 12, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.tab-btn {
    transition: all 0.2s ease;
}
.tab-active {
    background: #1E293B;
    color: #F59E0B !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* TEMA CLARO (ROYAL PEARL & DEEP BLUE) */
body.theme-light {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
}

body.theme-light header,
body.theme-light footer {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: #E2E8F0 !important;
}

body.theme-light .bg-\[\#131D2E\],
body.theme-light .bg-\[\#101a2e\],
body.theme-light .bg-\[\#162235\],
body.theme-light .bg-\[\#0B1320\],
body.theme-light .bg-\[\#1E293B\],
body.theme-light .bg-slate-900\/60,
body.theme-light .bg-slate-900\/70,
body.theme-light .bg-slate-950\/60,
body.theme-light .bg-slate-950\/70 {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

body.theme-light .text-white {
    color: #0F172A !important;
}

body.theme-light .text-slate-300,
body.theme-light .text-slate-400 {
    color: #475569 !important;
}

body.theme-light .border-slate-700,
body.theme-light .border-slate-800,
body.theme-light .border-slate-700\/60,
body.theme-light .border-slate-800\/80 {
    border-color: #E2E8F0 !important;
}

body.theme-light .tab-active {
    background: #E2E8F0 !important;
    color: #D97706 !important;
}

/* Interactividad Mapa SVG */
.province-node:hover .region-poly {
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
    stroke: #FBBF24 !important;
    stroke-width: 2 !important;
}
.province-selected .region-poly {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 1));
    stroke: #FFFFFF !important;
    stroke-width: 2.5 !important;
}

/* Animación Escáner Móvil */
@keyframes scanLaser {
    0% { top: 10%; opacity: 0.8; }
    50% { top: 85%; opacity: 1; }
    100% { top: 10%; opacity: 0.8; }
}
.scanner-laser {
    animation: scanLaser 2.4s ease-in-out infinite;
}

/* Barra de Desplazamiento Personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0B1320;
}
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

body.theme-light ::-webkit-scrollbar-track {
    background: #F1F5F9;
}
body.theme-light ::-webkit-scrollbar-thumb {
    background: #CBD5E1;
}
body.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Glassmorphism & Micro-interacciones Avanzadas */
.glass-card {
    background: rgba(19, 29, 46, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.glass-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}

body.theme-light .glass-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05) !important;
}
body.theme-light .glass-card:hover {
    border-color: rgba(217, 119, 6, 0.4) !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.1) !important;
}

/* Notificación Flotante (Toast) */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.toast-notification.toast-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Animación sutil de entrada de balotas */
@keyframes ballAppear {
    0% { transform: scale(0.6) rotate(-10deg); opacity: 0; }
    70% { transform: scale(1.08) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.ball-animate {
    animation: ballAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Modos de Comprobador */
.checker-mode-btn.active {
    background: #2563EB;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Optimización para Impresión de Liquidación LNB */
@media print {
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
    }
    header, footer, nav, #hero-section, #tab-nav-bar, #tab-content-resultados, #tab-content-piramide, #tab-content-mapa, #global-toast, .no-print {
        display: none !important;
    }
    #tab-content-comprobador {
        display: block !important;
    }
    .print-only {
        display: block !important;
    }
    .glass-card, #calc-result-container {
        background: #FFFFFF !important;
        color: #000000 !important;
        border: 1px solid #CCCCCC !important;
        box-shadow: none !important;
    }
}

