/* ============================================
   EAiqu - Glass Boost
   Lapisan tambahan untuk memperkuat kesan glassmorphism
   di halaman index & dashboard tanpa mengubah struktur HTML.
   ============================================ */

html {
    position: relative;
}

/* Ambient floating orbs behind the glass container, purely decorative */
html::before,
html::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(2px);
    animation: glassBoostFloat 14s ease-in-out infinite;
}

html::before {
    width: 380px;
    height: 380px;
    top: -140px;
    left: -120px;
    background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.28), transparent 70%);
}

html::after {
    width: 320px;
    height: 320px;
    bottom: -120px;
    right: -100px;
    background: radial-gradient(circle at 60% 40%, rgba(56, 189, 248, 0.24), transparent 70%);
    animation-delay: -6s;
}

[data-theme="dark"] html::before {
    background: radial-gradient(circle at 30% 30%, rgba(45, 166, 153, 0.18), transparent 70%);
}

[data-theme="dark"] html::after {
    background: radial-gradient(circle at 60% 40%, rgba(137, 180, 250, 0.16), transparent 70%);
}

@keyframes glassBoostFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-26px) translateX(16px); }
}

/* Subtle top sheen on the main glass container, echoes the login card */
.container {
    position: relative;
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
    pointer-events: none;
}

/* A touch more lift on cards so the glass feels tactile */
.card,
.stat-card,
.filter-box,
.chart-card,
.form-section {
    transition: transform var(--transition-normal, 250ms ease), box-shadow var(--transition-normal, 250ms ease), background var(--transition-normal, 250ms ease);
}

@media (prefers-reduced-motion: reduce) {
    html::before,
    html::after {
        animation: none;
    }
}

@media (max-width: 640px) {
    html::before,
    html::after {
        display: none;
    }
}
