/* Custom Styles for 75-inch TV Sales Dashboard */

/* Dark Mode Variables (Default) */
:root {
    --glass-bg: rgba(17, 24, 39, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --body-bg: #0b0f19;
}

/* Light Mode Variables */
html.light {
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(15, 23, 42, 0.07);
    --glass-shadow: rgba(15, 23, 42, 0.05);
    --body-bg: #f8fafc;
}

body {
    background-color: var(--body-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 94, 56, 0.09) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(247, 181, 25, 0.09) 0px, transparent 50%);
    background-attachment: fixed;
    letter-spacing: -0.015em;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Glassmorphism Panel styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px 0 var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glowing Border/Shadow Hover Actions (Rich UI Polish) */
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px 0 var(--glass-shadow);
}

/* Store Specific Glow States */
.glass-card.hover-pj:hover {
    border-color: rgba(0, 94, 56, 0.45);
    box-shadow: 0 15px 35px -5px rgba(0, 94, 56, 0.22), 0 10px 30px 0 var(--glass-shadow);
}
.glass-card.hover-krc:hover {
    border-color: rgba(247, 181, 25, 0.45);
    box-shadow: 0 15px 35px -5px rgba(247, 181, 25, 0.22), 0 10px 30px 0 var(--glass-shadow);
}
.glass-card.hover-combined:hover {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.22), 0 10px 30px 0 var(--glass-shadow);
}

/* TV screen optimized custom scrollbar */
.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 99px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Custom Chart.js container styling */
canvas {
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.12));
}

/* Subtle micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-transition {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.pulse-badge {
    animation: pulse-slow 3s infinite ease-in-out;
}

/* Table overrides for styling */
table th, table td {
    border-color: rgba(255, 255, 255, 0.05);
}

html.light table th, html.light table td {
    border-color: rgba(0, 0, 0, 0.05);
}

/* High Contrast Light Theme UI Polish */
html.light body {
    color: #0f172a;
}
html.light .glass-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
html.light .text-slate-400, html.light .text-slate-500 {
    color: #475569 !important;
}
html.light .text-slate-300, html.light .text-slate-200 {
    color: #1e293b !important;
}
html.light .bg-slate-900\/50, html.light .bg-slate-900\/40, html.light .bg-slate-900\/30 {
    background-color: rgba(241, 245, 249, 0.9) !important;
    border-color: rgba(203, 213, 225, 0.8) !important;
}
html.light .bg-slate-950\/80, html.light .bg-slate-950\/60 {
    background-color: rgba(248, 250, 252, 0.95) !important;
    border-color: rgba(203, 213, 225, 0.8) !important;
}
html.light .text-emerald-400 {
    color: #059669 !important;
}
html.light .text-amber-400 {
    color: #d97706 !important;
}
html.light .text-rose-400, html.light .text-red-400 {
    color: #dc2626 !important;
}
html.light .text-blue-400 {
    color: #2563eb !important;
}
html.light .text-purple-400 {
    color: #7c3aed !important;
}
