/* =============================================
   admin-animated-bg.css - پس‌زمینه متحرک داشبورد
   ============================================= */

/* ===== کانتینر پس‌زمینه ===== */
.admin-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ===== گرادیانت‌های متحرک ===== */
.admin-bg-container .bg-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatGradient 20s ease-in-out infinite;
}

.admin-bg-container .bg-gradient-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6C5CE7, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.admin-bg-container .bg-gradient-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00CEC9, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: -5s;
}

.admin-bg-container .bg-gradient-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #FDCB6E, transparent 70%);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
    opacity: 0.15;
}

.admin-bg-container .bg-gradient-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #E17055, transparent 70%);
    bottom: 30%;
    right: 20%;
    animation-delay: -15s;
    opacity: 0.15;
}

.admin-bg-container .bg-gradient-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #A29BFE, transparent 70%);
    top: 10%;
    left: 40%;
    animation-delay: -7s;
    opacity: 0.1;
}

.admin-bg-container .bg-gradient-6 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #55EFC4, transparent 70%);
    bottom: 10%;
    right: 40%;
    animation-delay: -12s;
    opacity: 0.1;
}

/* ===== انیمیشن شناور ===== */
@keyframes floatGradient {
    0% {
        transform: translate(0, 0) scale(1);
    }
    20% {
        transform: translate(30px, -20px) scale(1.05);
    }
    40% {
        transform: translate(-20px, 40px) scale(0.95);
    }
    60% {
        transform: translate(40px, 20px) scale(1.02);
    }
    80% {
        transform: translate(-30px, -30px) scale(0.98);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ===== ذرات متحرک ===== */
.admin-bg-container .bg-particles {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: floatParticle 15s ease-in-out infinite;
}

.admin-bg-container .bg-particles:nth-child(1) {
    top: 10%;
    left: 20%;
    background: #6C5CE7;
    width: 6px;
    height: 6px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.admin-bg-container .bg-particles:nth-child(2) {
    top: 30%;
    left: 80%;
    background: #00CEC9;
    width: 4px;
    height: 4px;
    animation-delay: -3s;
    animation-duration: 14s;
}

.admin-bg-container .bg-particles:nth-child(3) {
    top: 60%;
    left: 10%;
    background: #FDCB6E;
    width: 5px;
    height: 5px;
    animation-delay: -6s;
    animation-duration: 20s;
}

.admin-bg-container .bg-particles:nth-child(4) {
    top: 80%;
    left: 70%;
    background: #E17055;
    width: 3px;
    height: 3px;
    animation-delay: -9s;
    animation-duration: 16s;
}

.admin-bg-container .bg-particles:nth-child(5) {
    top: 45%;
    left: 50%;
    background: #A29BFE;
    width: 5px;
    height: 5px;
    animation-delay: -12s;
    animation-duration: 22s;
}

.admin-bg-container .bg-particles:nth-child(6) {
    top: 15%;
    left: 60%;
    background: #55EFC4;
    width: 4px;
    height: 4px;
    animation-delay: -2s;
    animation-duration: 17s;
}

.admin-bg-container .bg-particles:nth-child(7) {
    top: 70%;
    left: 30%;
    background: #FD79A8;
    width: 6px;
    height: 6px;
    animation-delay: -8s;
    animation-duration: 19s;
}

.admin-bg-container .bg-particles:nth-child(8) {
    top: 90%;
    left: 55%;
    background: #74B9FF;
    width: 3px;
    height: 3px;
    animation-delay: -14s;
    animation-duration: 21s;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -30px) scale(1.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 40px) scale(0.8);
        opacity: 0.2;
    }
    75% {
        transform: translate(30px, -10px) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

/* ===== امواج نورانی ===== */
.admin-bg-container .bg-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.admin-bg-container .bg-waves .wave {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(108, 92, 231, 0.03);
    animation: waveExpand 25s ease-in-out infinite;
}

.admin-bg-container .bg-waves .wave-1 {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    border-color: rgba(108, 92, 231, 0.05);
    animation-delay: 0s;
}

.admin-bg-container .bg-waves .wave-2 {
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    border-color: rgba(0, 206, 201, 0.04);
    animation-delay: -8s;
    animation-duration: 30s;
}

.admin-bg-container .bg-waves .wave-3 {
    width: 400px;
    height: 400px;
    top: 20%;
    left: 30%;
    border-color: rgba(253, 203, 110, 0.03);
    animation-delay: -15s;
    animation-duration: 35s;
}

@keyframes waveExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* ===== المان‌های محتوایی ===== */
.admin-content-premium {
    position: relative;
    z-index: 1;
}

/* ===== تم روشن - تنظیمات پس‌زمینه ===== */
[data-theme="light"] .admin-bg-container .bg-gradient {
    opacity: 0.15;
}

[data-theme="light"] .admin-bg-container .bg-gradient-1 {
    opacity: 0.12;
}

[data-theme="light"] .admin-bg-container .bg-gradient-2 {
    opacity: 0.10;
}

[data-theme="light"] .admin-bg-container .bg-gradient-3 {
    opacity: 0.08;
}

[data-theme="light"] .admin-bg-container .bg-gradient-4 {
    opacity: 0.08;
}

[data-theme="light"] .admin-bg-container .bg-particles {
    opacity: 0.4;
}

[data-theme="light"] .admin-bg-container .bg-waves .wave {
    border-color: rgba(0, 0, 0, 0.03);
}

/* ========================================== */
/* ریسپانسیو                                */
/* ========================================== */

@media (max-width: 768px) {
    .admin-bg-container .bg-gradient-1 {
        width: 300px;
        height: 300px;
        top: -5%;
        right: -10%;
    }
    
    .admin-bg-container .bg-gradient-2 {
        width: 250px;
        height: 250px;
        bottom: -5%;
        left: -10%;
    }
    
    .admin-bg-container .bg-gradient-3 {
        width: 200px;
        height: 200px;
    }
    
    .admin-bg-container .bg-gradient-4 {
        width: 180px;
        height: 180px;
    }
    
    .admin-bg-container .bg-gradient-5 {
        width: 150px;
        height: 150px;
    }
    
    .admin-bg-container .bg-gradient-6 {
        width: 200px;
        height: 200px;
    }
    
    .admin-bg-container .bg-waves .wave-1 {
        width: 400px;
        height: 400px;
    }
    
    .admin-bg-container .bg-waves .wave-2 {
        width: 300px;
        height: 300px;
    }
    
    .admin-bg-container .bg-waves .wave-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .admin-bg-container .bg-gradient {
        filter: blur(60px);
    }
    
    .admin-bg-container .bg-gradient-1 {
        width: 200px;
        height: 200px;
    }
    
    .admin-bg-container .bg-gradient-2 {
        width: 180px;
        height: 180px;
    }
    
    .admin-bg-container .bg-particles {
        display: none;
    }
    
    .admin-bg-container .bg-waves .wave {
        display: none;
    }
}