/**
 * Christmas Party Theme Styles
 * Festive holiday atmosphere with Christmas colors and elements
 */

[data-theme="christmas"] {
    /* Christmas theme with festive red and green colors */
    --primary-bg: #0f2f0f;
    --secondary-bg: #1a3d1a;
    --tertiary-bg: #0a1a0a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #dc143c;
    --accent-hover: #b71c1c;
    --success-color: #2e7d32;
    --warning-color: #ffd700;
    --danger-color: #d32f2f;
    --info-color: #1976d2;
    --border-color: #444;
    --shadow-color: rgba(220, 20, 60, 0.3);

    /* Christmas specific colors */
    --christmas-red: #dc143c;
    --christmas-green: #228b22;
    --christmas-gold: #ffd700;
    --snow-white: #f8f8ff;
    --pine-green: #0f4c0f;
    --holly-red: #cc0000;

    /* Glass morphism variables for Christmas theme */
    --glass-bg: rgba(15, 47, 15, 0.8);
    --glass-border: rgba(220, 20, 60, 0.3);
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-glow: 0 0 15px rgba(220, 20, 60, 0.56);

    /* Additional Christmas colors */
    --neon-pink: #ff69b4;
    --neon-purple: #8b5cf6;
    --neon-blue: #1976d2;
    --neon-green: #2e7d32;
    --neon-yellow: #ffd700;
    --neon-orange: #ff8c00;
    --neon-red: #dc143c;
}

/* Epic Christmas theme background with animations */
html body[data-theme="christmas"],
body[data-theme="christmas"],
[data-theme="christmas"] body {
    background:
        /* Snowy stars */
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent),
        /* Northern Lights effect */
        radial-gradient(circle at 70% 20%, rgba(46, 125, 50, 0.3) 0%, transparent 25%),
        /* Winter fog at bottom */
        linear-gradient(to top, rgba(220, 20, 60, 0.4) 0%, transparent 30%),
        /* Christmas tree silhouette */
        radial-gradient(circle at 90% 80%, rgba(15, 76, 15, 0.3) 0%, transparent 20%),
        /* Base winter night sky */
        linear-gradient(180deg, #0a0a0a 0%, #0f2f0f 30%, #1a3d1a 60%, #0f1a0f 100%) !important;
    color: var(--text-primary) !important;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    animation: christmasAtmosphere 20s ease-in-out infinite;
}

/* Fix modal scrolling issues - when modal is open, allow scrolling */
[data-theme="christmas"] body.modal-open,
body[data-theme="christmas"].modal-open,
html body[data-theme="christmas"].modal-open {
    overflow: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
    position: relative !important;
}

/* Enhanced modal styling for Christmas theme */
[data-theme="christmas"] .modal {
    z-index: 1060 !important;
}

[data-theme="christmas"] .modal-backdrop {
    z-index: 1050 !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="christmas"] .modal-dialog {
    margin: 1.75rem auto !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
    width: auto !important;
    pointer-events: none !important;
}

[data-theme="christmas"] .modal-dialog .modal-content {
    pointer-events: auto !important;
    position: relative !important;
}

[data-theme="christmas"] .modal-content {
    max-height: 80vh !important;
    overflow-y: auto !important;
    background: rgba(15, 47, 15, 0.95) !important;
    border: 2px solid var(--christmas-red) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 50px rgba(220, 20, 60, 0.56),
                0 0 100px rgba(46, 125, 50, 0.42) !important;
    backdrop-filter: blur(15px) !important;
}

[data-theme="christmas"] .modal-header {
    background: linear-gradient(135deg,
        rgba(220, 20, 60, 0.3),
        rgba(46, 125, 50, 0.2)) !important;
    border-bottom: 1px solid var(--christmas-red) !important;
    border-radius: 18px 18px 0 0 !important;
}

[data-theme="christmas"] .modal-title {
    color: var(--christmas-red) !important;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.56) !important;
}

/* Additional modal scrolling fixes */
html[data-theme="christmas"],
html body[data-theme="christmas"] {
    overflow: auto !important;
    height: auto !important;
}

[data-theme="christmas"] .modal.show {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Force enable scrolling when any modal is visible */
[data-theme="christmas"] body:has(.modal.show),
[data-theme="christmas"] html:has(.modal.show) {
    overflow: auto !important;
    position: static !important;
}

/* Mystical Christmas atmosphere overlay */
[data-theme="christmas"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(220, 20, 60, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(46, 125, 50, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
    animation: christmasShimmer 15s ease-in-out infinite;
}

@keyframes christmasAtmosphere {
    0%, 100% { filter: brightness(1) hue-rotate(0deg); }
    50% { filter: brightness(1.1) hue-rotate(5deg); }
}

@keyframes christmasShimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Christmas floating text effect */
[data-theme="christmas"] body::after {
    content: '🎄 ❄️ 🎅 ⭐ 🎁 🔔 ❄️ 🎄';
    position: fixed;
    top: -20px;
    left: -100%;
    width: 200%;
    height: 100px;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    animation: christmasPartyFloat 50s linear infinite;
    letter-spacing: 100px;
    line-height: 160px;
    text-shadow: 0 0 25px rgba(220, 20, 60, 0.21);
}

@keyframes christmasPartyFloat {
    0% {
        transform: translateX(-100%) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.1;
    }
    100% {
        transform: translateX(100%) rotate(360deg);
        opacity: 0.3;
    }
}

/* Christmas theme specific styles */
[data-theme="christmas"] .card {
    background: var(--secondary-bg);
    border: 1px solid var(--christmas-red);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.21);
    position: relative;
    overflow: hidden;
}

[data-theme="christmas"] .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(220, 20, 60, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(46, 125, 50, 0.08) 0%, transparent 50%);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    animation: christmasGlow 2s ease-in-out infinite alternate;
}

@keyframes christmasGlow {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

[data-theme="christmas"] .btn-primary {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    border: none;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.35);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.56);
    position: relative;
    overflow: hidden;
}

[data-theme="christmas"] .btn-primary::before {
    content: '🎄';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(46, 125, 50, 0.56);
    animation: christmasTreeGlow 2s ease-in-out infinite alternate;
}

[data-theme="christmas"] .btn-primary::after {
    content: '❄️';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(248, 248, 255, 0.56);
    animation: snowflakeGlow 3s ease-in-out infinite alternate;
}

@keyframes christmasTreeGlow {
    from { opacity: 0.6; transform: translateY(-50%) scale(1); }
    to { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

@keyframes snowflakeGlow {
    from { opacity: 0.8; transform: translateY(-50%) rotate(0deg); }
    to { opacity: 1; transform: translateY(-50%) rotate(360deg); }
}

[data-theme="christmas"] .btn-primary:hover {
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.56);
    transform: translateY(-2px);
}

/* Christmas decorations */
[data-theme="christmas"] .navbar::before {
    content: '🎄 ❄️ 🎅 ⭐ 🎁 🔔';
    position: fixed;
    bottom: -10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--christmas-green);
    opacity: 0.7;
    letter-spacing: 25px;
    text-shadow: 0 0 15px rgba(46, 125, 50, 0.56);
    animation: christmasFloat 6s ease-in-out infinite alternate;
}

[data-theme="christmas"] .navbar::after {
    content: '❄️';
    position: fixed;
    top: 10%;
    left: 5%;
    font-size: 2rem;
    color: var(--snow-white);
    opacity: 0.6;
    animation: snowFall 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes christmasFloat {
    from { transform: translateY(0px); opacity: 0.7; }
    to { transform: translateY(-10px); opacity: 1; }
}

@keyframes snowFall {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(20px) rotate(180deg); opacity: 1; }
}

/* Form elements */
[data-theme="christmas"] .form-control {
    background: var(--tertiary-bg);
    border: 1px solid var(--christmas-green);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.21);
}

[data-theme="christmas"] .form-control:focus {
    background: var(--tertiary-bg);
    border-color: var(--christmas-red);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.35);
}

/* Christmas emojis for headings */
[data-theme="christmas"] h1::before,
[data-theme="christmas"] h2::before,
[data-theme="christmas"] h3::before,
[data-theme="christmas"] h4::before,
[data-theme="christmas"] h5::before,
[data-theme="christmas"] h6::before {
    content: '🎄 ';
    color: var(--christmas-green);
    text-shadow: 0 0 10px rgba(46, 125, 50, 0.56);
    margin-right: 4px;
}

/* Christmas theme glow effects for headings */
[data-theme="christmas"] h1,
[data-theme="christmas"] h2,
[data-theme="christmas"] h3 {
    text-shadow: 0 0 10px var(--christmas-red);
}

/* Progress bars with Christmas glow */
[data-theme="christmas"] .progress {
    background: var(--tertiary-bg);
    border: 1px solid var(--christmas-green);
    overflow: hidden;
}

[data-theme="christmas"] .progress::before {
    content: '🎄 ⭐ 🎁 🔔 ❄️ 🎅';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 8px;
    line-height: 20px;
    opacity: 0.1;
    animation: christmasProgressPattern 10s linear infinite;
    z-index: 0;
}

[data-theme="christmas"] .progress-bar {
    background: linear-gradient(90deg,
        var(--christmas-green) 0%,
        var(--christmas-gold) 50%,
        var(--christmas-red) 100%);
    box-shadow:
        0 0 15px rgba(46, 125, 50, 0.56),
        inset 0 2px 4px rgba(255, 255, 255, 0.21);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    animation: christmasProgressGlow 2s ease-in-out infinite alternate;
}

@keyframes christmasProgressPattern {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes christmasProgressGlow {
    from { box-shadow: 0 0 15px rgba(46, 125, 50, 0.56); }
    to { box-shadow: 0 0 25px rgba(220, 20, 60, 0.7); }
}

/* Tables with Christmas styling */
[data-theme="christmas"] .table {
    color: var(--text-primary);
}

[data-theme="christmas"] .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(220, 20, 60, 0.1);
}

/* Alerts with Christmas styling */
[data-theme="christmas"] .alert-success {
    background: rgba(46, 125, 50, 0.2);
    border-color: var(--christmas-green);
    color: var(--christmas-green);
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.21);
}

[data-theme="christmas"] .alert-warning {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--christmas-gold);
    color: var(--christmas-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.21);
}

[data-theme="christmas"] .alert-danger {
    background: rgba(220, 20, 60, 0.2);
    border-color: var(--christmas-red);
    color: var(--christmas-red);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.21);
}

/* Countdown and timers */
[data-theme="christmas"] #countdown {
    color: var(--christmas-red) !important;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.7);
    animation: christmasCountdownPulse 2s ease-in-out infinite alternate;
}

@keyframes christmasCountdownPulse {
    0% {
        text-shadow: 0 0 20px rgba(220, 20, 60, 0.7), 0 0 40px rgba(220, 20, 60, 0.56);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 30px rgba(220, 20, 60, 0.7), 0 0 60px rgba(220, 20, 60, 0.7);
        transform: scale(1.05);
    }
}

/* Cards and containers */
[data-theme="christmas"] .glass-card {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--tertiary-bg) 100%);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(46, 125, 50, 0.28);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.56);
}

/* Scrollbars */
[data-theme="christmas"] ::-webkit-scrollbar-track {
    background: var(--tertiary-bg);
}

[data-theme="christmas"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--christmas-red), var(--christmas-green));
    border-radius: 4px;
}

[data-theme="christmas"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--christmas-green), var(--christmas-red));
}

/* Links */
[data-theme="christmas"] a {
    color: var(--christmas-gold);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.21);
}

[data-theme="christmas"] a:hover {
    color: var(--christmas-red);
    text-shadow: 0 0 8px rgba(220, 20, 60, 0.35);
}

/* Additional Christmas floating creatures - 20x More! */
[data-theme="christmas"] .container::before {
    content: '🎅';
    position: fixed;
    top: 15%;
    left: 85%;
    font-size: 3rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat15 12s ease-in-out infinite;
    opacity: 0.7;
}

[data-theme="christmas"] .container::after {
    content: '❄️';
    position: fixed;
    top: 65%;
    left: 90%;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat16 15s ease-in-out infinite;
    opacity: 0.6;
}

[data-theme="christmas"] .row::before {
    content: '🎁';
    position: fixed;
    top: 25%;
    left: 8%;
    font-size: 2rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat17 18s ease-in-out infinite;
    opacity: 0.5;
}

[data-theme="christmas"] .row::after {
    content: '🔔';
    position: fixed;
    top: 55%;
    left: 75%;
    font-size: 3.5rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat18 20s ease-in-out infinite;
    opacity: 0.4;
}

[data-theme="christmas"] .col::before {
    content: '⭐';
    position: fixed;
    top: 45%;
    left: 95%;
    font-size: 2.8rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat19 16s ease-in-out infinite;
    opacity: 0.6;
}

[data-theme="christmas"] .col::after {
    content: '🦌';
    position: fixed;
    top: 75%;
    left: 12%;
    font-size: 2.3rem;
    pointer-events: none;
    z-index: -1;
    animation: randomFloat20 14s ease-in-out infinite;
    opacity: 0.7;
}

/* Random Float Animations */
@keyframes randomFloat15 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-50px) translateX(40px) rotate(15deg) scale(1.1); }
    75% { transform: translateY(30px) translateX(-25px) rotate(-20deg) scale(0.9); }
}

@keyframes randomFloat16 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    40% { transform: translateY(-35px) translateX(-40px) rotate(-25deg) scale(1.3); }
    80% { transform: translateY(45px) translateX(20px) rotate(30deg) scale(0.7); }
}

@keyframes randomFloat17 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    35% { transform: translateY(-65px) translateX(30px) rotate(40deg) scale(1.2); }
    65% { transform: translateY(25px) translateX(-35px) rotate(-15deg) scale(0.8); }
}

@keyframes randomFloat18 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    20% { transform: translateY(-40px) translateX(-30px) rotate(-30deg) scale(1.4); }
    60% { transform: translateY(50px) translateX(35px) rotate(25deg) scale(0.6); }
}

@keyframes randomFloat19 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-55px) translateX(15px) rotate(35deg) scale(1.1); }
    90% { transform: translateY(35px) translateX(-40px) rotate(-40deg) scale(0.9); }
}

@keyframes randomFloat20 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    30% { transform: translateY(-45px) translateX(-20px) rotate(-20deg) scale(1.3); }
    70% { transform: translateY(40px) translateX(30px) rotate(35deg) scale(0.7); }
}

/* Individual Scattered Christmas Floating Emojis */
[data-theme="christmas"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

