/* ========================================
   🎄 CHRISTMAS THEME 2024 🎄
   Temporary seasonal overlay for SBS Dashboard
   Active: December 2024
   ======================================== */

:root {
    /* Christmas Color Palette */
    --christmas-red: #c41e3a;
    --christmas-green: #165b33;
    --christmas-gold: #ffd700;
    --christmas-white: #f8f9fa;
    --christmas-dark-red: #8b0000;
    --christmas-light-green: #90ee90;
    --christmas-ice-blue: #e0f2f7;
    --christmas-snow: #fffafa;
    
    /* Override gradient colors for Christmas */
    --bg-1: #c41e3a;  /* Christmas red */
    --bg-2: #165b33;  /* Christmas green */
}

/* Christmas Snow Background Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Subtle snow overlay */
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: snowGlow 4s ease-in-out infinite alternate;
}

@keyframes snowGlow {
    0% { opacity: 0.6; }
    100% { opacity: 0.9; }
}

/* Christmas Background - Override GIF */
body {
    background: 
        linear-gradient(135deg, 
            var(--christmas-dark-red) 0%, 
            var(--christmas-red) 25%,
            var(--christmas-green) 50%,
            var(--christmas-red) 75%,
            var(--christmas-dark-red) 100%
        ) !important;
    background-size: 400% 400% !important;
    animation: christmasGradient 15s ease infinite !important;
}

@keyframes christmasGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Falling Snow Animation */
.snowflakes {
    position: fixed;
    top: -10%;
    left: 0;
    width: 100%;
    height: 110%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: var(--christmas-snow);
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Randomize snowflake positions and speeds */
.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; font-size: 0.9em; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 15s; animation-delay: 4s; font-size: 1.5em; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 1s; font-size: 1em; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 3s; font-size: 1.3em; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 14s; animation-delay: 5s; font-size: 1.1em; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 16s; animation-delay: 6s; font-size: 0.8em; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 9s; animation-delay: 7s; font-size: 1.4em; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 17s; animation-delay: 2s; font-size: 1em; }
.snowflake:nth-child(10) { left: 5%; animation-duration: 11s; animation-delay: 4s; font-size: 1.2em; }
.snowflake:nth-child(11) { left: 15%; animation-duration: 13s; animation-delay: 6s; font-size: 0.9em; }
.snowflake:nth-child(12) { left: 25%; animation-duration: 10s; animation-delay: 1s; font-size: 1.1em; }
.snowflake:nth-child(13) { left: 35%; animation-duration: 14s; animation-delay: 3s; font-size: 1.3em; }
.snowflake:nth-child(14) { left: 45%; animation-duration: 12s; animation-delay: 5s; font-size: 0.85em; }
.snowflake:nth-child(15) { left: 55%; animation-duration: 15s; animation-delay: 0s; font-size: 1.25em; }
.snowflake:nth-child(16) { left: 65%; animation-duration: 11s; animation-delay: 2s; font-size: 1em; }
.snowflake:nth-child(17) { left: 75%; animation-duration: 13s; animation-delay: 4s; font-size: 1.15em; }
.snowflake:nth-child(18) { left: 85%; animation-duration: 16s; animation-delay: 6s; font-size: 0.95em; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 10s; animation-delay: 1s; font-size: 1.35em; }
.snowflake:nth-child(20) { left: 12%; animation-duration: 14s; animation-delay: 3s; font-size: 1.05em; }

/* Christmas Header Decoration */
.navbar, .sidebar-header {
    border-bottom: 3px solid var(--christmas-gold) !important;
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-dark-red) 100%) !important;
}

/* Christmas Accent on Cards */
.glass, .card {
    border: 2px solid var(--christmas-gold) !important;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

.glass::after {
    background: linear-gradient(180deg,
                rgba(255, 215, 0, 0.15),
                rgba(255, 215, 0, 0) 26% 74%,
                rgba(255, 215, 0, 0.1)) !important;
}

/* Christmas Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-dark-red) 100%) !important;
    border-color: var(--christmas-gold) !important;
    box-shadow: 0 4px 8px rgba(196, 30, 58, 0.4) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--christmas-dark-red) 0%, var(--christmas-red) 100%) !important;
    box-shadow: 0 6px 12px rgba(196, 30, 58, 0.6) !important;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--christmas-green) 0%, var(--christmas-light-green) 100%) !important;
    border-color: var(--christmas-gold) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--christmas-light-green) 0%, var(--christmas-green) 100%) !important;
    transform: translateY(-2px);
}

/* Christmas Sidebar Styling */
.sidebar {
    background: linear-gradient(180deg, 
        var(--christmas-green) 0%, 
        var(--christmas-dark-red) 100%) !important;
    border-right: 3px solid var(--christmas-gold) !important;
}

.sidebar .nav-link {
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease !important;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    border-left-color: var(--christmas-gold) !important;
    background: rgba(255, 215, 0, 0.15) !important;
    transform: translateX(5px);
}

/* Christmas Icon Colors */
.floating-icon {
    color: var(--christmas-gold) !important;
    opacity: 0.1 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Christmas Stat Cards */
.stat-card {
    background: linear-gradient(135deg, 
        rgba(196, 30, 58, 0.2) 0%, 
        rgba(22, 91, 51, 0.2) 100%) !important;
    border: 2px solid var(--christmas-gold) !important;
}

/* Christmas Badge Styling */
.badge {
    background: var(--christmas-gold) !important;
    color: var(--christmas-dark-red) !important;
    font-weight: bold !important;
}

/* Christmas Alert Styling */
.alert-success {
    background: linear-gradient(135deg, var(--christmas-green) 0%, rgba(22, 91, 51, 0.8) 100%) !important;
    border-color: var(--christmas-gold) !important;
    color: var(--christmas-white) !important;
}

.alert-info {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.8) 0%, rgba(139, 0, 0, 0.8) 100%) !important;
    border-color: var(--christmas-gold) !important;
    color: var(--christmas-white) !important;
}

.alert-warning {
    background: linear-gradient(135deg, var(--christmas-gold) 0%, rgba(255, 215, 0, 0.8) 100%) !important;
    border-color: var(--christmas-red) !important;
    color: var(--christmas-dark-red) !important;
}

.alert-danger {
    background: linear-gradient(135deg, var(--christmas-dark-red) 0%, rgba(139, 0, 0, 0.9) 100%) !important;
    border-color: var(--christmas-gold) !important;
    color: var(--christmas-white) !important;
}

/* Christmas Table Styling */
.table thead {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%) !important;
    color: var(--christmas-gold) !important;
    border: 2px solid var(--christmas-gold) !important;
}

.table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1) !important;
}

/* Christmas Progress Bar */
.progress {
    background: rgba(22, 91, 51, 0.3) !important;
    border: 1px solid var(--christmas-gold) !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--christmas-red) 0%, var(--christmas-gold) 50%, var(--christmas-green) 100%) !important;
    background-size: 200% 100% !important;
    animation: progressShine 2s ease infinite !important;
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Christmas Form Inputs */
.form-control, .form-select {
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
    background: rgba(22, 91, 51, 0.1) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--christmas-gold) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

/* Christmas Modal Styling */
.modal-content {
    border: 3px solid var(--christmas-gold) !important;
    background: linear-gradient(135deg, 
        rgba(22, 91, 51, 0.95) 0%, 
        rgba(196, 30, 58, 0.95) 100%) !important;
}

.modal-header {
    border-bottom: 2px solid var(--christmas-gold) !important;
}

.modal-footer {
    border-top: 2px solid var(--christmas-gold) !important;
}

/* Christmas Ornaments on Corners */
.glass::before {
    content: "🎄";
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 1.5rem;
    z-index: 10;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Festive Glow Effect */
@keyframes festiveGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4),
                    inset 0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6),
                    inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

.glass {
    animation: festiveGlow 3s ease-in-out infinite !important;
}

/* Christmas Tooltip */
.tooltip-inner {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%) !important;
    border: 2px solid var(--christmas-gold) !important;
}

/* Candy Cane Stripes for Loading */
.spinner-border {
    border-color: var(--christmas-red) !important;
    border-right-color: var(--christmas-white) !important;
}

/* Christmas Text Highlights */
h1, h2, h3, h4, h5, h6 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 
                 0 0 10px rgba(255, 215, 0, 0.3) !important;
}

/* Festive Links */
a {
    color: var(--christmas-gold) !important;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--christmas-white) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Christmas Breadcrumb */
.breadcrumb {
    background: linear-gradient(90deg, 
        rgba(196, 30, 58, 0.3) 0%, 
        rgba(22, 91, 51, 0.3) 100%) !important;
    border: 1px solid var(--christmas-gold) !important;
}

/* Mobile Optimization for Christmas Theme */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8em;
    }
    
    body {
        animation-duration: 20s !important; /* Slower animation on mobile */
    }
    
    .glass::before {
        font-size: 1rem; /* Smaller ornaments on mobile */
    }
}

/* Disable animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    body, .progress-bar, .glass, .snowflake {
        animation: none !important;
    }
}

/* Christmas Message Banner - DISABLED */
.christmas-banner {
    display: none !important;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}
