.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.loader-circle:nth-child(1) {
    border-top-color: #8BC34A;
    animation-delay: 0s;
}

.loader-circle:nth-child(2) {
    border-right-color: #3498db;
    animation-delay: 0.5s;
}

.loader-circle:nth-child(3) {
    border-bottom-color: #e74c3c;
    animation-delay: 1s;
}

.loader-circle:nth-child(4) {
    border-left-color: #f1c40f;
    animation-delay: 1.5s;
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: particle 2s ease-in-out infinite;
}

.particle:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.particle:nth-child(2) { top: 50%; right: 0; animation-delay: 0.5s; }
.particle:nth-child(3) { bottom: 0; left: 50%; animation-delay: 1s; }
.particle:nth-child(4) { top: 50%; left: 0; animation-delay: 1.5s; }

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes particle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .loader {
        width: 80px;
        height: 80px;
    }
    
    .loader-text {
        font-size: 1rem;
    }
    
    .particle {
        width: 6px;
        height: 6px;
    }
} 