/* ========================================
   CHRISTMAS THEME - PTChecker
   Thiết kế bởi: PTChecker Team
   Phong cách: Tinh tế, mượt mà, sang trọng
   ======================================== */

/* === CSS Variables === */
:root {
    --xmas-red: #c41e3a;
    --xmas-red-light: #e74c3c;
    --xmas-red-dark: #8b1538;
    --xmas-green: #165b33;
    --xmas-green-light: #1e7b46;
    --xmas-green-dark: #0d3d22;
    --xmas-gold: #d4af37;
    --xmas-gold-light: #f4d03f;
    --xmas-cream: #fffef7;
    --xmas-snow: #f8f9ff;
    --xmas-pine: #2d5a27;
}

/* === Snowfall Effect - IMPROVED === */
@keyframes snowfall {
    0% { 
        transform: translateY(-10vh) translateX(0) rotate(0deg); 
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% { 
        transform: translateY(105vh) translateX(50px) rotate(360deg); 
        opacity: 0;
    }
}

@keyframes snowfall-sway {
    0% { 
        transform: translateY(-10vh) translateX(0) rotate(0deg); 
        opacity: 0;
    }
    5% { opacity: 1; }
    25% { transform: translateY(22vh) translateX(25px) rotate(90deg); }
    50% { transform: translateY(50vh) translateX(-15px) rotate(180deg); }
    75% { transform: translateY(77vh) translateX(20px) rotate(270deg); }
    95% { opacity: 1; }
    100% { 
        transform: translateY(105vh) translateX(-10px) rotate(360deg); 
        opacity: 0;
    }
}

@keyframes snowfall-drift {
    0% { 
        transform: translateY(-10vh) translateX(0); 
        opacity: 0;
    }
    5% { opacity: 1; }
    50% { transform: translateY(50vh) translateX(40px); }
    95% { opacity: 1; }
    100% { 
        transform: translateY(105vh) translateX(-20px); 
        opacity: 0;
    }
}

@keyframes gentle-sway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Snow Container */
.snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -50px;
    color: #ffffff;
    text-shadow: 
        0 0 5px rgba(255,255,255,1),
        0 0 10px rgba(200,230,255,0.8),
        0 0 20px rgba(150,200,255,0.5);
    animation: snowfall 15s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.9));
    will-change: transform;
}

/* Random animation types */
.snowflake:nth-child(3n) {
    animation-name: snowfall-sway;
}

.snowflake:nth-child(5n) {
    animation-name: snowfall-drift;
}

/* Thêm một chút màu xanh nhạt cho một số bông */
.snowflake:nth-child(7n) {
    color: #e0f0ff;
}

.snowflake:nth-child(11n) {
    color: #d4e8ff;
}

/* === Christmas Lights - Tròn, nét, đẹp === */
@keyframes glow-red {
    0%, 100% { 
        box-shadow: 0 0 6px 3px rgba(255, 82, 82, 0.9), 
                    0 0 12px 6px rgba(196, 30, 58, 0.6), 
                    0 0 20px 10px rgba(196, 30, 58, 0.3),
                    inset 0 0 8px rgba(255, 200, 200, 0.5);
        filter: brightness(1.3) saturate(1.2);
    }
    50% { 
        box-shadow: 0 0 4px 2px rgba(139, 21, 56, 0.6), 
                    0 0 8px 4px rgba(139, 21, 56, 0.3),
                    inset 0 0 4px rgba(255, 150, 150, 0.3);
        filter: brightness(0.7) saturate(0.9);
    }
}

@keyframes glow-green {
    0%, 100% { 
        box-shadow: 0 0 6px 3px rgba(81, 207, 102, 0.9), 
                    0 0 12px 6px rgba(22, 91, 51, 0.6), 
                    0 0 20px 10px rgba(22, 91, 51, 0.3),
                    inset 0 0 8px rgba(200, 255, 200, 0.5);
        filter: brightness(1.3) saturate(1.2);
    }
    50% { 
        box-shadow: 0 0 4px 2px rgba(13, 61, 34, 0.6), 
                    0 0 8px 4px rgba(13, 61, 34, 0.3),
                    inset 0 0 4px rgba(150, 255, 150, 0.3);
        filter: brightness(0.7) saturate(0.9);
    }
}

@keyframes glow-gold {
    0%, 100% { 
        box-shadow: 0 0 6px 3px rgba(255, 224, 102, 0.9), 
                    0 0 12px 6px rgba(212, 175, 55, 0.6), 
                    0 0 20px 10px rgba(212, 175, 55, 0.3),
                    inset 0 0 8px rgba(255, 255, 200, 0.5);
        filter: brightness(1.3) saturate(1.2);
    }
    50% { 
        box-shadow: 0 0 4px 2px rgba(184, 134, 11, 0.6), 
                    0 0 8px 4px rgba(184, 134, 11, 0.3),
                    inset 0 0 4px rgba(255, 230, 150, 0.3);
        filter: brightness(0.7) saturate(0.9);
    }
}

@keyframes glow-blue {
    0%, 100% { 
        box-shadow: 0 0 6px 3px rgba(116, 192, 252, 0.9), 
                    0 0 12px 6px rgba(52, 152, 219, 0.6), 
                    0 0 20px 10px rgba(52, 152, 219, 0.3),
                    inset 0 0 8px rgba(200, 230, 255, 0.5);
        filter: brightness(1.3) saturate(1.2);
    }
    50% { 
        box-shadow: 0 0 4px 2px rgba(26, 82, 118, 0.6), 
                    0 0 8px 4px rgba(26, 82, 118, 0.3),
                    inset 0 0 4px rgba(150, 200, 255, 0.3);
        filter: brightness(0.7) saturate(0.9);
    }
}

/* Christmas Lights String - Cố định, không lung lay */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: 9990;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

.light-string {
    display: flex;
    gap: 32px;
    position: relative;
    padding: 8px 40px 0 40px;
}

/* Dây điện - mảnh và tự nhiên */
.light-string::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(180deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
    border-radius: 2px;
    z-index: -1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Bóng đèn - TO và TRÒN */
.light-bulb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.2);
}

/* Đui đèn - kim loại */
.light-bulb::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 9px;
    background: linear-gradient(180deg, #999 0%, #666 30%, #444 100%);
    border-radius: 3px 3px 0 0;
    border: 1px solid #333;
    border-bottom: none;
}

/* Móc treo */
.light-bulb::after {
    content: '';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 6px;
    border: 2px solid #555;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    background: transparent;
}

/* Hiệu ứng ánh sáng trong bóng */
.light-bulb span {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 5px;
    height: 6px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    pointer-events: none;
}

/* === Màu đèn - Animation chậm hơn === */
.light-bulb.red {
    background: radial-gradient(circle at 30% 30%, #ff8a8a 0%, #ff5252 30%, var(--xmas-red) 70%, var(--xmas-red-dark) 100%);
    animation: glow-red 3s ease-in-out infinite;
}

.light-bulb.green {
    background: radial-gradient(circle at 30% 30%, #7ddf8a 0%, #51cf66 30%, var(--xmas-green) 70%, var(--xmas-green-dark) 100%);
    animation: glow-green 3s ease-in-out infinite;
}

.light-bulb.gold {
    background: radial-gradient(circle at 30% 30%, #fff0a0 0%, #ffe066 30%, var(--xmas-gold) 70%, #b8860b 100%);
    animation: glow-gold 3s ease-in-out infinite;
}

.light-bulb.blue {
    background: radial-gradient(circle at 30% 30%, #a8d8ff 0%, #74c0fc 30%, #3498db 70%, #1a5276 100%);
    animation: glow-blue 3s ease-in-out infinite;
}

/* Nhấp nháy lệch pha - hiệu ứng sóng chậm */
.light-bulb:nth-child(1) { animation-delay: 0s; }
.light-bulb:nth-child(2) { animation-delay: 0.2s; }
.light-bulb:nth-child(3) { animation-delay: 0.4s; }
.light-bulb:nth-child(4) { animation-delay: 0.6s; }
.light-bulb:nth-child(5) { animation-delay: 0.8s; }
.light-bulb:nth-child(6) { animation-delay: 1s; }
.light-bulb:nth-child(7) { animation-delay: 1.2s; }
.light-bulb:nth-child(8) { animation-delay: 1.4s; }
.light-bulb:nth-child(9) { animation-delay: 1.6s; }
.light-bulb:nth-child(10) { animation-delay: 1.8s; }
.light-bulb:nth-child(11) { animation-delay: 2s; }
.light-bulb:nth-child(12) { animation-delay: 2.2s; }
.light-bulb:nth-child(13) { animation-delay: 2.4s; }
.light-bulb:nth-child(14) { animation-delay: 2.6s; }
.light-bulb:nth-child(15) { animation-delay: 0.1s; }
.light-bulb:nth-child(16) { animation-delay: 0.3s; }
.light-bulb:nth-child(17) { animation-delay: 0.5s; }
.light-bulb:nth-child(18) { animation-delay: 0.7s; }
.light-bulb:nth-child(19) { animation-delay: 0.9s; }
.light-bulb:nth-child(20) { animation-delay: 1.1s; }
.light-bulb:nth-child(21) { animation-delay: 1.3s; }
.light-bulb:nth-child(22) { animation-delay: 1.5s; }
.light-bulb:nth-child(23) { animation-delay: 1.7s; }
.light-bulb:nth-child(24) { animation-delay: 1.9s; }
.light-bulb:nth-child(25) { animation-delay: 2.1s; }
.light-bulb:nth-child(26) { animation-delay: 2.3s; }
.light-bulb:nth-child(27) { animation-delay: 2.5s; }
.light-bulb:nth-child(28) { animation-delay: 2.7s; }

/* === Body & Background === */
body {
    background: 
        radial-gradient(ellipse at 15% 10%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(22, 91, 51, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, var(--xmas-snow) 0%, #ffffff 50%, var(--xmas-cream) 100%);
    background-attachment: fixed;
}

/* === Sidebar Christmas Decorations === */
.sidebar {
    background: linear-gradient(180deg, #ffffff 0%, var(--xmas-cream) 100%);
    border-right: 4px solid transparent;
    border-image: repeating-linear-gradient(180deg,
        var(--xmas-red) 0px,
        var(--xmas-red) 12px,
        var(--xmas-green) 12px,
        var(--xmas-green) 24px,
        var(--xmas-gold) 24px,
        var(--xmas-gold) 36px
    ) 1;
}

/* Holly decoration on sidebar header */
.sidebar-header {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(22, 91, 51, 0.06) 0%, 
        rgba(196, 30, 58, 0.04) 50%,
        rgba(212, 175, 55, 0.06) 100%
    );
}

/* Christmas tree icon */
.sidebar-header::after {
    content: '🎄';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.4rem;
    opacity: 0.85;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

/* Gift icon */
.sidebar-header::before {
    content: '🎁';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Christmas ribbon on logo */
.logo-container {
    position: relative;
    border-color: var(--xmas-green-dark);
    box-shadow: 
        0 4px 15px rgba(22, 91, 51, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Holly với berries ở góc logo */
.logo-container::after {
    content: '🍒';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1rem;
    filter: hue-rotate(-10deg) saturate(1.5);
}

/* Navigation items with Christmas hover */
.nav-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: linear-gradient(90deg, 
        rgba(196, 30, 58, 0.1) 0%, 
        rgba(22, 91, 51, 0.06) 100%
    );
    border-left-color: var(--xmas-red);
}

/* Snowflake on hover */
.nav-item:hover::after {
    content: '❄';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.6;
    color: var(--xmas-green);
}

.nav-item.active {
    background: linear-gradient(90deg, 
        var(--xmas-green-dark) 0%, 
        var(--xmas-green) 100%
    );
    color: #ffffff;
    border-left-color: var(--xmas-gold);
}

.nav-item.active::after {
    content: '🎄';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-item.active:hover {
    background: linear-gradient(90deg, 
        var(--xmas-green) 0%, 
        var(--xmas-green-light) 100%
    );
}

.nav-item.active:hover::after {
    content: '🎄';
}

/* Sidebar footer with Christmas spirit */
.sidebar-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(22, 91, 51, 0.03) 100%);
    position: relative;
}

.sidebar-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--xmas-red) 0%, 
        var(--xmas-gold) 25%, 
        var(--xmas-green) 50%, 
        var(--xmas-gold) 75%, 
        var(--xmas-red) 100%
    );
    border-radius: 3px;
}

/* Rainbow separator becomes Christmas colors */
.rainbow-separator {
    background: linear-gradient(90deg, 
        var(--xmas-red) 0%, 
        var(--xmas-gold) 33%, 
        var(--xmas-green) 66%, 
        var(--xmas-red) 100%
    );
    animation: none;
}

.rainbow-separator::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%
    );
    animation: rainbow-shine 4s ease-in-out infinite;
}

/* === Main Content Christmas Styling === */
/* Background Christmas trên main-content - RẤT RÕ */
.app-container > .main-content {
    position: relative;
    background: 
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.35),
            rgba(248, 249, 255, 0.3)
        ),
        url('../Images/background.png') !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-attachment: scroll, fixed !important;
}

/* === Dashboard Cards with Christmas Theme === */
.dashboard-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--xmas-cream) 100%);
    border: 2px solid #1a1a1a;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Candy cane stripe on top */
.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        var(--xmas-red) 0px,
        var(--xmas-red) 10px,
        #fff 10px,
        #fff 20px
    );
    opacity: 0.9;
}

/* Star decoration */
.dashboard-card::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dashboard-card:hover::after {
    opacity: 1;
    transform: rotate(20deg) scale(1.2);
}

/* Cards nổi bật trên background */
.dashboard-card {
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(255, 255, 255, 0.5);
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 15px 35px rgba(22, 91, 51, 0.12),
        0 5px 15px rgba(196, 30, 58, 0.08);
}

/* Card icon Christmas style */
.card-icon {
    background: linear-gradient(145deg, var(--xmas-cream) 0%, #ffffff 100%);
    border: 2px solid var(--xmas-green-dark);
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
    background: linear-gradient(145deg, var(--xmas-green) 0%, var(--xmas-green-dark) 100%);
    border-color: var(--xmas-green);
    transform: scale(1.05) rotate(-5deg);
}

.dashboard-card:hover .card-icon i {
    color: #ffffff;
}

/* Card buttons */
.card-btn {
    border: 2px solid var(--xmas-green-dark);
    color: var(--xmas-green-dark);
    position: relative;
    overflow: hidden;
}

.card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--xmas-green-dark) 0%, 
        var(--xmas-green) 100%
    );
    transition: left 0.3s ease;
    z-index: -1;
}

.card-btn:hover {
    color: #ffffff;
    border-color: var(--xmas-green);
}

.card-btn:hover::before {
    left: 0;
}

/* === Buttons Christmas Style === */
.action-btn.primary,
.btn-primary {
    background: linear-gradient(135deg, 
        var(--xmas-green-dark) 0%, 
        var(--xmas-green) 50%,
        var(--xmas-green-dark) 100%
    );
    border: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.action-btn.primary::before,
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    transition: left 0.5s ease;
}

.action-btn.primary:hover::before,
.btn-primary:hover::before {
    left: 100%;
}

.action-btn.primary:hover,
.btn-primary:hover {
    box-shadow: 
        0 6px 20px rgba(22, 91, 51, 0.35),
        0 0 30px rgba(22, 91, 51, 0.15);
    transform: translateY(-2px);
}

.action-btn.stop {
    background: linear-gradient(135deg, 
        var(--xmas-red-dark) 0%, 
        var(--xmas-red) 50%,
        var(--xmas-red-dark) 100%
    );
}

.action-btn.stop:hover {
    box-shadow: 
        0 6px 20px rgba(196, 30, 58, 0.35),
        0 0 30px rgba(196, 30, 58, 0.15);
}

/* === Form Elements === */
textarea,
input[type="text"],
input[type="password"],
input[type="email"] {
    border: 2px solid #2a2a2a;
    background: linear-gradient(180deg, #ffffff 0%, var(--xmas-cream) 100%);
    transition: all 0.3s ease;
}

textarea:focus,
input:focus {
    border-color: var(--xmas-green);
    box-shadow: 
        0 0 0 3px rgba(22, 91, 51, 0.1),
        0 0 20px rgba(22, 91, 51, 0.05);
}

/* === Results & Stats Christmas Colors === */
.stat-item.live::before { 
    background: var(--xmas-green); 
}

.stat-item.ccn::before { 
    background: var(--xmas-gold); 
}

.stat-item.declined::before { 
    background: var(--xmas-red); 
}

.result-tab[data-tab="live"].active { 
    background: var(--xmas-green); 
    border-color: var(--xmas-green); 
}

.result-tab[data-tab="ccn"].active { 
    background: var(--xmas-gold); 
    border-color: var(--xmas-gold); 
    color: #1a1a1a;
}

.result-tab[data-tab="declined"].active { 
    background: var(--xmas-red); 
    border-color: var(--xmas-red); 
}

.status-badge.live { 
    background: var(--xmas-green); 
    border-color: var(--xmas-green); 
}

.status-badge.ccn { 
    background: var(--xmas-gold); 
    border-color: var(--xmas-gold);
    color: #1a1a1a;
}

.status-badge.declined { 
    background: var(--xmas-red); 
    border-color: var(--xmas-red); 
}

.result-item.live { 
    border-left-color: var(--xmas-green); 
}

.result-item.ccn { 
    border-left-color: var(--xmas-gold); 
}

.result-item.declined { 
    border-left-color: var(--xmas-red); 
}

/* === Sections & Panels === */
.input-section,
.results-section,
.settings-panel,
.stats-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,254,247,0.95) 100%);
    border: 2px solid #1a1a1a;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.check-type-section {
    background: linear-gradient(180deg, 
        rgba(22, 91, 51, 0.03) 0%, 
        rgba(212, 175, 55, 0.02) 100%
    );
    border: 1px solid rgba(22, 91, 51, 0.15);
}

/* === Modal Christmas Style === */
.modal-content {
    background: linear-gradient(180deg, #ffffff 0%, var(--xmas-cream) 100%);
    border: 3px solid var(--xmas-green-dark);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.3);
}

.modal-header {
    background: linear-gradient(90deg, 
        rgba(22, 91, 51, 0.08) 0%, 
        rgba(196, 30, 58, 0.05) 50%,
        rgba(212, 175, 55, 0.08) 100%
    );
    border-bottom: 2px solid rgba(22, 91, 51, 0.1);
}

/* === Processing Overlay === */
.processing-overlay-content {
    background: linear-gradient(180deg, #ffffff 0%, var(--xmas-cream) 100%);
    border: 3px solid var(--xmas-green-dark);
}

.processing-overlay-icon {
    background: conic-gradient(
        from 0deg,
        var(--xmas-red) 0deg,
        var(--xmas-gold) 120deg,
        var(--xmas-green) 240deg,
        var(--xmas-red) 360deg
    );
}

/* === Key Status Colors === */
.key-status.available { 
    background: rgba(22, 91, 51, 0.1); 
    color: var(--xmas-green-dark); 
}

.key-status.busy { 
    background: rgba(212, 175, 55, 0.15); 
    color: #a67c00; 
}

.key-status.expired { 
    background: rgba(196, 30, 58, 0.1); 
    color: var(--xmas-red); 
}

/* === Scrollbar Christmas Style === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, var(--xmas-cream) 0%, #f0f0f0 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--xmas-green) 0%, 
        var(--xmas-green-dark) 100%
    );
    border-radius: 5px;
    border: 2px solid var(--xmas-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        var(--xmas-green-light) 0%, 
        var(--xmas-green) 100%
    );
}

/* === Christmas Ornament Decorations === */
@keyframes swing {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* Ornament on page headers */
.page-header {
    position: relative;
}

.page-header h2::after {
    content: '🎅';
    margin-left: 12px;
    font-size: 0.85em;
    display: inline-block;
}

/* Holly decoration */
.page-header::after {
    content: '🎄 Merry Christmas 🎄';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--xmas-green);
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Input/Result sections decoration */
.input-section,
.results-section {
    position: relative;
}

.input-section::before,
.results-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--xmas-green) 0px,
        var(--xmas-green) 8px,
        transparent 8px,
        transparent 12px,
        var(--xmas-red) 12px,
        var(--xmas-red) 20px,
        transparent 20px,
        transparent 24px
    );
    opacity: 0.5;
    border-radius: 0 0 8px 8px;
}

/* === Footer Christmas Style === */
.sidebar-smart-footer {
    background: linear-gradient(145deg, 
        rgba(22, 91, 51, 0.08) 0%, 
        rgba(212, 175, 55, 0.05) 100%
    );
    border: 2px solid var(--xmas-green-dark);
    position: relative;
    overflow: hidden;
}

/* Decorative bow */
.sidebar-smart-footer::before {
    content: '🎀';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}

.sidebar-smart-footer .telegram-btn {
    background: linear-gradient(135deg, 
        var(--xmas-green-dark) 0%, 
        var(--xmas-green) 100%
    );
    border-color: var(--xmas-green-dark);
}

.sidebar-smart-footer .telegram-btn:hover {
    background: linear-gradient(135deg, 
        var(--xmas-red) 0%, 
        var(--xmas-red-light) 100%
    );
    border-color: var(--xmas-red);
}

.sidebar-smart-footer .status-dot {
    background: var(--xmas-green);
    box-shadow: 0 0 8px var(--xmas-green);
}

.sidebar-smart-footer .status-text {
    color: var(--xmas-green);
}

/* === Logout Button === */
.logout-btn {
    border-color: var(--xmas-red-dark);
    color: var(--xmas-red-dark);
    position: relative;
}

.logout-btn::after {
    content: '👋';
    margin-left: 8px;
    font-size: 0.9em;
}

.logout-btn:hover {
    background: linear-gradient(135deg, 
        var(--xmas-red-dark) 0%, 
        var(--xmas-red) 100%
    );
    border-color: var(--xmas-red);
    color: #ffffff;
}

.logout-btn:hover::after {
    content: '🎅';
}

/* === Tabs Christmas Style === */
.tab-btn {
    border-color: #1a1a1a;
}

.tab-btn:hover {
    background: linear-gradient(180deg, 
        rgba(22, 91, 51, 0.05) 0%, 
        rgba(212, 175, 55, 0.03) 100%
    );
}

.tab-btn.active {
    background: linear-gradient(135deg, 
        var(--xmas-green-dark) 0%, 
        var(--xmas-green) 100%
    );
    color: #ffffff;
}

/* === Christmas Corner Decorations - Removed to prevent layout issues === */

/* === Selection Color === */
::selection {
    background: var(--xmas-green);
    color: #ffffff;
}

::-moz-selection {
    background: var(--xmas-green);
    color: #ffffff;
}

/* === Responsive Adjustments === */
@media (max-width: 1200px) {
    .light-string {
        gap: 28px;
    }
    
    .light-bulb {
        width: 13px;
        height: 13px;
    }
    
    .light-bulb::before {
        width: 7px;
        height: 6px;
        top: -5px;
    }
    
    .light-bulb::after {
        top: -8px;
        width: 5px;
        height: 4px;
    }
    
    .page-header::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .christmas-lights {
        left: 0;
    }
    
    .light-string {
        gap: 24px;
        padding: 8px 20px 0 20px;
    }
    
    .light-bulb {
        width: 12px;
        height: 12px;
    }
    
    .light-bulb::before {
        width: 6px;
        height: 5px;
        top: -4px;
    }
    
    .light-bulb::after {
        top: -7px;
        width: 4px;
        height: 3px;
    }
    
    .light-bulb span {
        width: 3px;
        height: 4px;
        top: 2px;
        left: 2px;
    }
    
    .snowflake {
        font-size: 0.8rem;
    }
    
    .snowflake:nth-child(n+35) {
        display: none;
    }
    
    .sidebar-header::after,
    .sidebar-header::before {
        font-size: 1rem;
    }
    
    .sidebar::before {
        width: 5px;
    }
    
    .nav-item:hover::after,
    .nav-item.active::after {
        display: none;
    }
    
    .dashboard-card::after {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .light-string {
        gap: 18px;
        padding: 6px 10px 0 10px;
    }
    
    .light-bulb {
        width: 10px;
        height: 10px;
    }
    
    .light-bulb::before {
        width: 5px;
        height: 4px;
        top: -3px;
    }
    
    .light-bulb::after {
        top: -5px;
        width: 3px;
        height: 2px;
        border-width: 1px;
    }
    
    .light-bulb span {
        width: 2px;
        height: 3px;
        top: 1px;
        left: 2px;
    }
    
    .snowflake:nth-child(n+20) {
        display: none;
    }
    
    .sidebar::before {
        display: none;
    }
    
    .sidebar-header::before {
        display: none;
    }
    
    .dashboard-card::after {
        display: none;
    }
}

/* === Reduce Motion for Accessibility === */
@media (prefers-reduced-motion: reduce) {
    .snowflake,
    .light-bulb,
    .sidebar-header::after,
    .page-header h2::after {
        animation: none;
    }
    
    .snowflake {
        display: none;
    }
}

/* === Christmas Music Player === */
.christmas-music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--xmas-red) 0%, var(--xmas-red-dark) 100%);
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 4px 20px rgba(196, 30, 58, 0.4),
        0 0 30px rgba(196, 30, 58, 0.2);
    transition: all 0.3s ease;
    font-family: inherit;
}

.christmas-music-player:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 25px rgba(196, 30, 58, 0.5),
        0 0 40px rgba(196, 30, 58, 0.3);
}

.christmas-music-player .music-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.christmas-music-player.playing {
    background: linear-gradient(135deg, var(--xmas-green) 0%, var(--xmas-green-dark) 100%);
    box-shadow: 
        0 4px 20px rgba(22, 91, 51, 0.4),
        0 0 30px rgba(22, 91, 51, 0.2);
    animation: pulse-music 2s ease-in-out infinite;
}

.christmas-music-player.playing:hover {
    box-shadow: 
        0 6px 25px rgba(22, 91, 51, 0.5),
        0 0 40px rgba(22, 91, 51, 0.3);
}

.christmas-music-player.playing .music-icon {
    animation: bounce-music 0.6s ease-in-out infinite;
}

@keyframes pulse-music {
    0%, 100% { box-shadow: 0 4px 20px rgba(22, 91, 51, 0.4), 0 0 30px rgba(22, 91, 51, 0.2); }
    50% { box-shadow: 0 4px 25px rgba(22, 91, 51, 0.6), 0 0 40px rgba(22, 91, 51, 0.4); }
}

@keyframes bounce-music {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
    .christmas-music-player {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .christmas-music-player .music-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .christmas-music-player {
        bottom: 10px;
        right: 10px;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .christmas-music-player .music-text {
        display: none;
    }
    
    .christmas-music-player {
        border-radius: 50%;
        padding: 12px;
    }
}

/* === Print Styles === */
@media print {
    .snowflakes-container,
    .christmas-lights,
    .christmas-music-player {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
    }
}

/* =============================================
   LOGIN PAGE - CHRISTMAS THEME
   ============================================= */

/* Login page background with Christmas image */
body:has(.login-container) {
    background: none !important;
    position: relative;
    min-height: 100vh;
}

body:has(.login-container)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../Images/christmas.png') center center / cover no-repeat;
    filter: blur(3px) brightness(0.85);
    z-index: -2;
}

body:has(.login-container)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 20, 40, 0.4) 0%,
        rgba(139, 21, 56, 0.2) 50%,
        rgba(0, 40, 20, 0.3) 100%
    );
    z-index: -1;
}

/* Login container Christmas style */
body:has(.login-container) .login-container {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid var(--xmas-green-dark) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Candy cane top border */
body:has(.login-container) .login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--xmas-red) 0px,
        var(--xmas-red) 15px,
        #fff 15px,
        #fff 30px
    );
    border-radius: 20px 20px 0 0;
}

/* Christmas decorations on login container */
body:has(.login-container) .login-container::after {
    content: '🎄 Merry Christmas 🎄';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--xmas-green);
    font-weight: 600;
    opacity: 0.8;
    white-space: nowrap;
}

/* Logo container Christmas */
body:has(.login-container) .logo-container {
    border: 3px solid var(--xmas-green-dark) !important;
    background: linear-gradient(145deg, #ffffff 0%, var(--xmas-cream) 100%) !important;
    position: relative;
}

body:has(.login-container) .logo-container::after {
    content: '🎅';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
}

/* Input fields Christmas */
body:has(.login-container) .form-group input {
    border: 2px solid var(--xmas-green-dark) !important;
    background: linear-gradient(180deg, #fff 0%, var(--xmas-cream) 100%) !important;
}

body:has(.login-container) .form-group input:focus {
    border-color: var(--xmas-red) !important;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.15) !important;
}

/* Save key bookmark icon */
body:has(.login-container) #remember_key_icon {
    color: var(--xmas-green-dark) !important;
    font-size: 20px !important;
    transition: all 0.3s ease;
    z-index: 10;
}

body:has(.login-container) #remember_key_icon:hover {
    color: var(--xmas-red) !important;
    transform: translateY(-50%) scale(1.15) !important;
}

body:has(.login-container) #remember_key_icon.fa-solid {
    color: var(--xmas-red) !important;
}

/* Login button Christmas */
body:has(.login-container) .login-btn {
    background: linear-gradient(135deg, var(--xmas-green-dark) 0%, var(--xmas-green) 100%) !important;
    border: 2px solid var(--xmas-green-dark) !important;
    position: relative;
    overflow: hidden;
}

body:has(.login-container) .login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

body:has(.login-container) .login-btn:hover::before {
    left: 100%;
}

body:has(.login-container) .login-btn:hover {
    background: linear-gradient(135deg, var(--xmas-green) 0%, var(--xmas-green-light) 100%) !important;
    box-shadow: 0 8px 25px rgba(22, 91, 51, 0.4) !important;
}

/* Tool cards Christmas */
body:has(.login-container) .tool-card {
    border: 2px solid var(--xmas-green-dark) !important;
    background: linear-gradient(145deg, #fff 0%, var(--xmas-cream) 100%) !important;
    position: relative;
}

body:has(.login-container) .tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--xmas-red), var(--xmas-gold), var(--xmas-green));
}

body:has(.login-container) .tool-icon {
    background: linear-gradient(135deg, var(--xmas-green-dark), var(--xmas-green)) !important;
}

/* Pricing card Christmas */
body:has(.login-container) .pricing-card {
    border: 3px solid var(--xmas-red) !important;
    background: linear-gradient(145deg, #fff 0%, rgba(196, 30, 58, 0.03) 100%) !important;
    position: relative;
}

body:has(.login-container) .pricing-card::before {
    content: '🎁';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
}

body:has(.login-container) .pricing-btn {
    background: linear-gradient(135deg, var(--xmas-red-dark) 0%, var(--xmas-red) 100%) !important;
}

body:has(.login-container) .pricing-btn:hover {
    background: linear-gradient(135deg, var(--xmas-red) 0%, var(--xmas-red-light) 100%) !important;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4) !important;
}

/* Notice banner Christmas */
body:has(.login-container) .notice-banner {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(196, 30, 58, 0.1)) !important;
    border: 2px solid var(--xmas-gold) !important;
    color: #8b6914 !important;
}

/* Section separator Christmas */
body:has(.login-container) .section-separator::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--xmas-red) 20%, 
        var(--xmas-gold) 50%, 
        var(--xmas-green) 80%, 
        transparent 100%
    ) !important;
}

body:has(.login-container) .section-separator .separator-text {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--xmas-green-dark) !important;
}

/* Video wrapper Christmas */
body:has(.login-container) .video-wrapper {
    border: 2px solid var(--xmas-green-dark) !important;
    background: linear-gradient(145deg, #f8f9fa, var(--xmas-cream)) !important;
}

body:has(.login-container) .enlarge-btn {
    background: var(--xmas-green-dark) !important;
    border-color: var(--xmas-green-dark) !important;
}

body:has(.login-container) .enlarge-btn:hover {
    background: var(--xmas-green) !important;
}

/* Update channel button */
body:has(.login-container) .update-channel a {
    border-color: var(--xmas-green-dark) !important;
    color: var(--xmas-green-dark) !important;
}

body:has(.login-container) .update-channel a:hover {
    background: var(--xmas-green-dark) !important;
    color: #fff !important;
}

/* Snowflakes on login - make them more visible */
body:has(.login-container) .snowflake {
    color: #fff;
    text-shadow: 
        0 0 5px rgba(255,255,255,1),
        0 0 10px rgba(200,230,255,0.8),
        0 0 20px rgba(200,230,255,0.5);
}

/* Christmas lights on login page - full width */
body:has(.login-container) .christmas-lights {
    left: 0 !important;
}

/* Login page responsive */
@media (max-width: 768px) {
    body:has(.login-container)::before {
        filter: blur(2px) brightness(0.8);
    }
    
    body:has(.login-container) .login-container::after {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    body:has(.login-container) .login-container::after {
        display: none;
    }
    
    body:has(.login-container) .pricing-card::before {
        font-size: 1.4rem;
        top: -12px;
    }
}
