/* Cool Dynamic Background for Daily Sales Dashboard */

.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Behind everything */
    background: #f0f2f5; /* Slightly lighter base */
    pointer-events: none; /* Don't interfere with clicks */
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px); /* Slightly reduced blur to make movement more visible */
    opacity: 0.6; /* Increased opacity slightly */
    will-change: transform; /* Performance optimization */
}

/* Sphere 1: Blue/Purple (Top Left) */
.sphere-1 {
    background: radial-gradient(circle, #667eea 0%, #764ba2 100%);
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
    animation: float-animation-1 20s infinite ease-in-out;
}

/* Sphere 2: Purple/Pink (Bottom Right) */
.sphere-2 {
    background: radial-gradient(circle, #764ba2 0%, #d53f8c 100%);
    width: 500px;
    height: 500px;
    bottom: -50px;
    right: -50px;
    animation: float-animation-2 25s infinite ease-in-out;
    animation-delay: -5s;
}

/* Sphere 3: Orange/Yellow Accent (Center-ish) */
.sphere-3 {
    background: radial-gradient(circle, #f97316 0%, #f59e0b 100%);
    width: 400px;
    height: 400px;
    top: 30%;
    left: 20%;
    opacity: 0.4;
    animation: float-animation-1 30s infinite ease-in-out;
    animation-delay: -15s;
}

/* Sphere 4: Cyan/Teal (Top Right) */
.sphere-4 {
    background: radial-gradient(circle, #06b6d4 0%, #3b82f6 100%);
    width: 350px;
    height: 350px;
    top: 10%;
    right: 10%;
    opacity: 0.5;
    animation: float-animation-2 22s infinite ease-in-out;
    animation-delay: -2s;
}

/* Aggressive Float Animation 1 */
@keyframes float-animation-1 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(300px, 150px) rotate(45deg) scale(1.2);
    }
    66% {
        transform: translate(100px, 400px) rotate(-20deg) scale(0.9);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Aggressive Float Animation 2 (Different path) */
@keyframes float-animation-2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-200px, 200px) rotate(-30deg) scale(1.3);
    }
    66% {
        transform: translate(-400px, 50px) rotate(15deg) scale(0.8);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Add a subtle grain/noise texture overlay for more professional look */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
