
/* Confettus ERP — müvəqqəti Yeni il teması */

html[data-season-theme="new-year"] {
    --ny-green: #147d64;
    --ny-red: #c73651;
    --ny-gold: #e6bd65;
    --ny-glow: rgba(230, 189, 101, 0.3);
}

/* Əsas interfeysə bayram aksentləri */
html[data-season-theme="new-year"] .app-topbar {
    border: 1px solid var(--ny-gold);
    box-shadow: 0 2px 18px var(--ny-glow);
}

html[data-season-theme="new-year"] .sidebar {
    border-right: 2px solid var(--ny-gold) !important;
}

html[data-season-theme="new-year"] .sidebar-brand i {
    color: var(--ny-red);
}

html[data-season-theme="new-year"] .card {
    border-top: 2px solid rgba(230, 189, 101, 0.65);
}

html[data-season-theme="new-year"] .sidebar .nav-link.active {
    box-shadow: inset 3px 0 0 var(--ny-gold);
}

html[data-season-theme="new-year"] #seasonToggle {
    border-color: var(--ny-gold);
    color: var(--ny-gold);
}

/* Yuxarıdakı Yeni il işıqları */
.ny-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    pointer-events: none;
    overflow: hidden;
}

.ny-lights::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    height: 2px;
    background: #50745b;
    opacity: 0.85;
}

.ny-light {
    position: relative;
    width: 9px;
    height: 14px;
    margin-top: 8px;
    border-radius: 45% 45% 55% 55%;
    background: var(--light-color);
    box-shadow:
        0 0 7px var(--light-color),
        0 0 15px var(--light-color);
    animation: ny-twinkle 2s ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

.ny-light::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: #567063;
}

/* Qar yağışı */
.ny-snow {
    position: fixed;
    inset: 0;
    z-index: 1090;
    overflow: hidden;
    pointer-events: none;
}

.ny-snowflake {
    position: absolute;
    top: -30px;
    left: var(--left);
    font-size: var(--size);
    color: #d8edff;
    opacity: var(--opacity);
    text-shadow: 0 0 5px rgba(85, 156, 222, 0.3);
    animation: ny-snowfall var(--duration) linear infinite;
    animation-delay: var(--delay);
    user-select: none;
}

/* Asılan bayram bəzəkləri */
.ny-ornament {
    position: fixed;
    top: 0;
    z-index: 1080;
    width: 42px;
    height: 118px;
    pointer-events: none;
    transform-origin: top center;
    animation: ny-swing 4s ease-in-out infinite alternate;
}

.ny-ornament.left {
    left: 18px;
}

.ny-ornament.right {
    right: 18px;
    animation-delay: -2s;
}

.ny-ornament::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 69px;
    background: var(--ny-gold);
}

.ny-ornament::after {
    content: "";
    position: "";
    position: absolute;
    bottom: 4px;
    left: 1px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, #fff6d4, transparent 32%),
        linear-gradient(135deg, #f46675, #aa1935);
    border: 2px solid #f2d487;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

.ny-ornament.right::after {
    background:
        radial-gradient(circle at 30% 25%, #fff6d4, transparent 32%),
        linear-gradient(135deg, #f1d782, #b68020);
}

/* Yeni il təbriki */
.ny-greeting {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 600;
    color: #fff7e2;
    background: linear-gradient(110deg, #16654d, #a82642);
    border: 1px solid var(--ny-gold);
    white-space: nowrap;
}

@keyframes ny-twinkle {
    from { opacity: 0.4; filter: brightness(0.7); }
    to   { opacity: 1; filter: brightness(1.5); }
}

@keyframes ny-snowfall {
    from {
        transform: translate3d(0, -30px, 0) rotate(0deg);
    }
    to {
        transform: translate3d(var(--drift), 110vh, 0)
                   rotate(360deg);
    }
}

@keyframes ny-swing {
    from { transform: rotate(-5deg); }
    to   { transform: rotate(5deg); }
}

/* Tema söndürüldükdə bütün bəzəklər gizlənir */
html:not([data-season-theme="new-year"]) .ny-lights,
html:not([data-season-theme="new-year"]) .ny-snow,
html:not([data-season-theme="new-year"]) .ny-ornament,
html:not([data-season-theme="new-year"]) .ny-greeting {
    display: none !important;
}

/* Gecə rejimi ilə uyğunluq */
html[data-bs-theme="dark"][data-season-theme="new-year"] .ny-greeting {
    background: linear-gradient(110deg, #124c3b, #79213b);
}

/* Mobil görünüş */
@media (max-width: 767.98px) {
    .ny-greeting {
        display: none !important;
    }

    .ny-ornament {
        transform: scale(0.7);
    }

    .ny-ornament.left { left: 3px; }
    .ny-ornament.right { right: 3px; }

    .ny-lights {
        height: 24px;
    }
}

/* Hərəkət həssaslığı olan istifadəçilər */
@media (prefers-reduced-motion: reduce) {
    .ny-light,
    .ny-ornament {
        animation: none;
    }

    .ny-snow {
        display: none !important;
    }
}
