/* Christmas Theme Styles */
/* Automatically activated in December until December 26 */

/* Snow Animation Container */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: visible !important;
}

/* Snowflake Base Styles */
.snowflake {
    position: absolute;
    color: white;
    font-size: 0.7em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    opacity: 0;
    z-index: 10000;
    display: block;
    visibility: visible;
    will-change: transform, opacity;
}

/* Snowflake Sizes */
.snowflake:nth-child(1) { font-size: 0.6em; animation-duration: 10s; left: 10%; animation-delay: 0s; }
.snowflake:nth-child(2) { font-size: 0.7em; animation-duration: 12s; left: 20%; animation-delay: 1s; }
.snowflake:nth-child(3) { font-size: 0.6em; animation-duration: 11s; left: 30%; animation-delay: 2s; }
.snowflake:nth-child(4) { font-size: 0.7em; animation-duration: 13s; left: 40%; animation-delay: 0.5s; }
.snowflake:nth-child(5) { font-size: 0.6em; animation-duration: 10s; left: 50%; animation-delay: 1.5s; }
.snowflake:nth-child(6) { font-size: 0.7em; animation-duration: 12s; left: 60%; animation-delay: 2.5s; }
.snowflake:nth-child(7) { font-size: 0.6em; animation-duration: 11s; left: 70%; animation-delay: 0.8s; }
.snowflake:nth-child(8) { font-size: 0.7em; animation-duration: 13s; left: 80%; animation-delay: 1.8s; }
.snowflake:nth-child(9) { font-size: 0.6em; animation-duration: 10s; left: 90%; animation-delay: 0.3s; }
.snowflake:nth-child(10) { font-size: 0.7em; animation-duration: 12s; left: 15%; animation-delay: 2.2s; }
.snowflake:nth-child(11) { font-size: 0.6em; animation-duration: 11s; left: 25%; animation-delay: 1.2s; }
.snowflake:nth-child(12) { font-size: 0.7em; animation-duration: 13s; left: 35%; animation-delay: 0.7s; }
.snowflake:nth-child(13) { font-size: 0.6em; animation-duration: 10s; left: 45%; animation-delay: 2s; }
.snowflake:nth-child(14) { font-size: 0.7em; animation-duration: 12s; left: 55%; animation-delay: 1.5s; }
.snowflake:nth-child(15) { font-size: 0.6em; animation-duration: 11s; left: 65%; animation-delay: 0.4s; }
.snowflake:nth-child(16) { font-size: 0.7em; animation-duration: 13s; left: 75%; animation-delay: 1.9s; }
.snowflake:nth-child(17) { font-size: 0.6em; animation-duration: 10s; left: 85%; animation-delay: 0.6s; }
.snowflake:nth-child(18) { font-size: 0.7em; animation-duration: 12s; left: 95%; animation-delay: 2.3s; }

/* Snowfall Animation */
@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    5% {
        opacity: 0.5;
    }
    20% {
        opacity: 0.8;
    }
    70% {
        opacity: 0.9;
    }
    85% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* Christmas Hat Icon */
.christmas-hat {
    display: inline-block;
    color: #DC143C;
    font-size: 1.2em;
    animation: hatFloat 3s ease-in-out infinite;
    margin-left: 8px;
    vertical-align: middle;
}

.christmas-hat-small {
    font-size: 0.9em;
    margin-left: 6px;
}

/* Hat Floating Animation */
@keyframes hatFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* Christmas Theme Colors */
.christmas-theme .decoration-icon {
    color: #DC143C !important;
}

.christmas-theme .decoration-line {
    background: linear-gradient(90deg, transparent, #DC143C, transparent) !important;
}

.christmas-theme .login-content {
    border-top: 3px solid #DC143C;
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.15);
}

/* Navbar Christmas Theme */
.christmas-theme .main-menu {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d7a4f 50%, #3d8b61 100%) !important;
    position: relative;
    overflow: visible !important;
}

.christmas-theme .main-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DC143C, #FFD700, #DC143C);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Christmas Tree Icon for Brand Title */
.christmas-tree-icon {
    display: inline-block;
    font-size: 1.2em;
    animation: hatFloat 3s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.christmas-theme .brand-title .christmas-hat {
    margin-left: 8px;
}

/* Mobile Header Christmas Theme */
.christmas-theme .header {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d7a4f 100%) !important;
    position: relative;
}

.christmas-theme .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #DC143C, #FFD700, #DC143C);
    animation: shimmer 3s ease-in-out infinite;
}

.christmas-theme .header-title {
    position: relative;
}

.christmas-theme .header-title::after {
    content: '🎅';
    position: absolute;
    top: -8px;
    right: -20px;
    font-size: 0.7em;
    animation: hatFloat 3s ease-in-out infinite;
}

/* Subtle Christmas accents */
.christmas-theme .top-bar {
    background: linear-gradient(135deg, #0a2d15 0%, #1a4d2e 100%);
}

/* Top-bar Snow Container */
.christmas-theme .top-bar {
    position: relative;
    overflow: visible !important;
}

.top-bar {
    overflow: visible !important;
}

.topbar-snow-container {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    overflow: visible;
    z-index: 1002;
}

.topbar-snowflake {
    position: absolute;
    color: white;
    font-size: 0.7em;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    animation: topbarSnowfall linear infinite;
    opacity: 0;
    z-index: 1002;
    will-change: transform, opacity;
}

/* Top-bar Snowflake Positions */
.topbar-snowflake:nth-child(1) { font-size: 0.6em; animation-duration: 5s; left: 3%; animation-delay: 0s; }
.topbar-snowflake:nth-child(2) { font-size: 0.7em; animation-duration: 6s; left: 12%; animation-delay: 0.3s; }
.topbar-snowflake:nth-child(3) { font-size: 0.6em; animation-duration: 5s; left: 20%; animation-delay: 0.6s; }
.topbar-snowflake:nth-child(4) { font-size: 0.7em; animation-duration: 6s; left: 28%; animation-delay: 0.2s; }
.topbar-snowflake:nth-child(5) { font-size: 0.6em; animation-duration: 5s; left: 35%; animation-delay: 0.8s; }
.topbar-snowflake:nth-child(6) { font-size: 0.7em; animation-duration: 6s; left: 42%; animation-delay: 0.4s; }
.topbar-snowflake:nth-child(7) { font-size: 0.6em; animation-duration: 5s; left: 50%; animation-delay: 0.1s; }
.topbar-snowflake:nth-child(8) { font-size: 0.7em; animation-duration: 6s; left: 58%; animation-delay: 0.7s; }
.topbar-snowflake:nth-child(9) { font-size: 0.6em; animation-duration: 5s; left: 65%; animation-delay: 0.3s; }
.topbar-snowflake:nth-child(10) { font-size: 0.7em; animation-duration: 6s; left: 72%; animation-delay: 0.9s; }
.topbar-snowflake:nth-child(11) { font-size: 0.6em; animation-duration: 5s; left: 80%; animation-delay: 0.5s; }
.topbar-snowflake:nth-child(12) { font-size: 0.7em; animation-duration: 6s; left: 88%; animation-delay: 0.2s; }
.topbar-snowflake:nth-child(13) { font-size: 0.6em; animation-duration: 5s; left: 95%; animation-delay: 0.6s; }
.topbar-snowflake:nth-child(14) { font-size: 0.7em; animation-duration: 6s; left: 8%; animation-delay: 1s; }
.topbar-snowflake:nth-child(15) { font-size: 0.6em; animation-duration: 5s; left: 45%; animation-delay: 0.4s; }

@keyframes topbarSnowfall {
    0% {
        transform: translateY(-5px) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    5% {
        opacity: 0.5;
    }
    20% {
        opacity: 0.8;
    }
    70% {
        opacity: 0.9;
    }
    85% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(50px) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .christmas-hat {
        font-size: 1em;
        margin-left: 6px;
    }
    
    .snowflake {
        font-size: 0.5em;
    }
    
    .header-snowflake {
        font-size: 0.4em;
    }
}

