/* New Years Theme - Celebration and Midnight Glamour */

[data-theme="newyears"] {
    /* New Years Color Palette */
    --midnight-black: #0a0a0a;
    --champagne-gold: #f7e7ce;
    --silver-sparkle: #c0c0c0;
    --celebration-gold: #ffd700;
    --party-purple: #663399;
    --confetti-pink: #ff69b4;
    --firework-blue: #4169e1;
    --starlight-white: #f8f8ff;

    /* Glass morphism backgrounds */
    --glass-bg: rgba(255, 215, 0, 0.1);
    --glass-border: rgba(255, 215, 0, 0.2);
    --glass-shadow: rgba(255, 215, 0, 0.3);

    /* Text colors */
    --text-primary: var(--starlight-white);
    --text-secondary: var(--champagne-gold);
    --text-accent: var(--celebration-gold);

    /* Background */
    background:
        radial-gradient(circle at 20% 30%, var(--celebration-gold) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--silver-sparkle) 0%, transparent 40%),
        radial-gradient(circle at 40% 70%, var(--party-purple) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, var(--firework-blue) 0%, transparent 35%),
        linear-gradient(135deg, var(--midnight-black) 0%, #1a1a2e 50%, var(--midnight-black) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}


/* Modal Scrolling Fix */
[data-theme="newyears"] .modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

[data-theme="newyears"] .modal-dialog {
    position: relative !important;
    margin: 20px auto !important;
    max-width: 90% !important;
    width: auto !important;
}

[data-theme="newyears"] .modal-content {
    position: relative !important;
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid var(--celebration-gold) !important;
    border-radius: 20px !important;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(255, 215, 0, 0.1) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    color: var(--text-primary) !important;
}

[data-theme="newyears"] .modal-header,
[data-theme="newyears"] .modal-body,
[data-theme="newyears"] .modal-footer {
    border: none !important;
    color: var(--text-primary) !important;
}

[data-theme="newyears"] .modal-title {
    color: var(--celebration-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

[data-theme="newyears"] .btn-close {
    background: var(--champagne-gold) !important;
    opacity: 0.8 !important;
    border-radius: 50% !important;
}

/* Glass morphism containers */
[data-theme="newyears"] .container,
[data-theme="newyears"] .card,
[data-theme="newyears"] .player-card,
[data-theme="newyears"] .stats-container {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px var(--glass-shadow),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    position: relative;
    z-index: 10;
    color: var(--text-primary);
}

/* Headers and titles */
[data-theme="newyears"] h1,
[data-theme="newyears"] h2,
[data-theme="newyears"] h3,
[data-theme="newyears"] h4,
[data-theme="newyears"] h5,
[data-theme="newyears"] h6 {
    color: var(--celebration-gold);
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

/* Text elements */
[data-theme="newyears"] p,
[data-theme="newyears"] span,
[data-theme="newyears"] div {
    color: var(--text-primary);
}

[data-theme="newyears"] .text-muted {
    color: var(--text-secondary) !important;
}

/* Buttons */
[data-theme="newyears"] .btn-primary {
    background: linear-gradient(135deg, var(--celebration-gold), var(--champagne-gold));
    border: 2px solid var(--celebration-gold);
    color: var(--midnight-black);
    font-weight: bold;
    text-shadow: none;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

[data-theme="newyears"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--champagne-gold), var(--silver-sparkle));
    border-color: var(--silver-sparkle);
    box-shadow:
        0 6px 20px rgba(192, 192, 192, 0.4),
        0 0 30px rgba(192, 192, 192, 0.3);
    transform: translateY(-2px);
}

[data-theme="newyears"] .btn-secondary {
    background: linear-gradient(135deg, var(--silver-sparkle), var(--champagne-gold));
    border: 2px solid var(--silver-sparkle);
    color: var(--midnight-black);
    font-weight: bold;
}

[data-theme="newyears"] .btn-success {
    background: linear-gradient(135deg, var(--party-purple), var(--firework-blue));
    border: 2px solid var(--party-purple);
    color: var(--text-primary);
}

[data-theme="newyears"] .btn-danger {
    background: linear-gradient(135deg, var(--confetti-pink), var(--party-purple));
    border: 2px solid var(--confetti-pink);
    color: var(--text-primary);
}

/* Forms */
[data-theme="newyears"] .form-control,
[data-theme="newyears"] .form-select {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="newyears"] .form-control:focus,
[data-theme="newyears"] .form-select:focus {
    background: rgba(10, 10, 10, 0.9);
    border-color: var(--celebration-gold);
    box-shadow:
        0 0 0 0.25rem rgba(255, 215, 0, 0.25),
        0 0 20px rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
}

[data-theme="newyears"] .form-label {
    color: var(--champagne-gold);
    font-weight: 600;
}

/* Progress bars */
[data-theme="newyears"] .progress {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="newyears"] .progress-bar {
    background: linear-gradient(90deg,
        var(--celebration-gold) 0%,
        var(--champagne-gold) 50%,
        var(--silver-sparkle) 100%);
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

/* Alerts */
[data-theme="newyears"] .alert {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-primary);
}

[data-theme="newyears"] .alert-success {
    border-color: var(--party-purple);
    background: rgba(102, 51, 153, 0.2);
}

[data-theme="newyears"] .alert-warning {
    border-color: var(--celebration-gold);
    background: rgba(255, 215, 0, 0.2);
    color: var(--midnight-black);
}

[data-theme="newyears"] .alert-danger {
    border-color: var(--confetti-pink);
    background: rgba(255, 105, 180, 0.2);
}

/* Navigation */
[data-theme="newyears"] .navbar {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--celebration-gold);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

[data-theme="newyears"] .navbar-brand,
[data-theme="newyears"] .nav-link {
    color: var(--celebration-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

[data-theme="newyears"] .nav-link:hover {
    color: var(--champagne-gold) !important;
    text-shadow: 0 0 15px rgba(247, 231, 206, 0.8);
}

/* Tables */
[data-theme="newyears"] .table {
    color: var(--text-primary);
    background: transparent;
}

[data-theme="newyears"] .table thead th {
    border-bottom: 2px solid var(--celebration-gold);
    color: var(--celebration-gold);
    background: rgba(255, 215, 0, 0.1);
}

[data-theme="newyears"] .table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

[data-theme="newyears"] .table td,
[data-theme="newyears"] .table th {
    border-color: var(--glass-border);
}

/* Cards and panels */
[data-theme="newyears"] .card-header {
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 2px solid var(--celebration-gold);
    color: var(--celebration-gold);
    font-weight: bold;
}

[data-theme="newyears"] .card-body {
    color: var(--text-primary);
}

/* List groups */
[data-theme="newyears"] .list-group-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="newyears"] .list-group-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--celebration-gold);
}

[data-theme="newyears"] .list-group-item.active {
    background: linear-gradient(135deg, var(--celebration-gold), var(--champagne-gold));
    border-color: var(--celebration-gold);
    color: var(--midnight-black);
}

/* Badges */
[data-theme="newyears"] .badge {
    background: linear-gradient(135deg, var(--celebration-gold), var(--champagne-gold));
    color: var(--midnight-black);
    text-shadow: none;
    border: 1px solid var(--silver-sparkle);
}

/* Links */
[data-theme="newyears"] a {
    color: var(--celebration-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

[data-theme="newyears"] a:hover {
    color: var(--champagne-gold);
    text-shadow: 0 0 10px rgba(247, 231, 206, 0.5);
}

/* Dropdown menus */
[data-theme="newyears"] .dropdown-menu {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--celebration-gold);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.3);
}

[data-theme="newyears"] .dropdown-item {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

[data-theme="newyears"] .dropdown-item:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--celebration-gold);
}

/* Pagination */
[data-theme="newyears"] .page-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--celebration-gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="newyears"] .page-link:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--celebration-gold);
    color: var(--champagne-gold);
}

[data-theme="newyears"] .page-item.active .page-link {
    background: linear-gradient(135deg, var(--celebration-gold), var(--champagne-gold));
    border-color: var(--celebration-gold);
    color: var(--midnight-black);
}

/* Tooltips */
[data-theme="newyears"] .tooltip-inner {
    background: rgba(10, 10, 10, 0.95);
    color: var(--text-primary);
    border: 1px solid var(--celebration-gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Popovers */
[data-theme="newyears"] .popover {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--celebration-gold);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="newyears"] .popover-header {
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid var(--celebration-gold);
    color: var(--celebration-gold);
}

[data-theme="newyears"] .popover-body {
    color: var(--text-primary);
}

/* Special countdown and celebration effects */
[data-theme="newyears"] .countdown-timer {
    background: linear-gradient(135deg, var(--celebration-gold), var(--champagne-gold));
    color: var(--midnight-black);
    border: 3px solid var(--silver-sparkle);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    animation: celebrationPulse 2s ease-in-out infinite alternate;
}

@keyframes celebrationPulse {
    0% {
        box-shadow:
            0 0 30px rgba(255, 215, 0, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow:
            0 0 50px rgba(255, 215, 0, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    [data-theme="newyears"]::before,
    [data-theme="newyears"]::after {
        font-size: 20px;
        line-height: 80px;
        letter-spacing: 30px;
    }

    [data-theme="newyears"] .modal-dialog {
        margin: 10px !important;
        max-width: 95% !important;
    }

    [data-theme="newyears"] .countdown-timer {
        font-size: 1.5rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    [data-theme="newyears"]::before,
    [data-theme="newyears"]::after {
        font-size: 16px;
        line-height: 60px;
        letter-spacing: 20px;
    }

    [data-theme="newyears"] .countdown-timer {
        font-size: 1.2rem;
        padding: 10px;
    }
}

[data-theme="newyears"] body::before {
    content: '🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝 🎊 🎉 ✨ 🥂 🍾 🌟 💫 🎆 🎇 💝';
    position: fixed;
    top: -50px;
    left: 0;
    width: 200%;
    height: 120%;
    font-size: 1.5rem;
    line-height: 3rem;
    letter-spacing: 2rem;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    animation: newyearsFloatMega 30s linear infinite;
    word-wrap: break-word;
    overflow: hidden;
}

[data-theme="newyears"] body::after {
    content: '🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛 🎭 🎪 🎨 🎬 🎤 🎸 🥳 🤩 ⏰ 🕛';
    position: fixed;
    top: -50px;
    left: 0;
    width: 200%;
    height: 120%;
    font-size: 1.2rem;
    line-height: 2.5rem;
    letter-spacing: 1.5rem;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    animation: newyearsFloatMega 40s linear infinite reverse;
    word-wrap: break-word;
    overflow: hidden;
}

@keyframes newyearsFloatMega {
    0% { transform: translateX(-100%) translateY(0px) rotate(0deg); }
    100% { transform: translateX(100%) translateY(-70px) rotate(360deg); }
}