
/* Modern Premium Loader */
.loading_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f1015;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1), visibility 1.2s !important;
}

.loading_overlay.state-done {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important; /* Prevent the scaleY(0) animation from main.css */
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.loader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-circle {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(69, 95, 255, 0.1);
    border-top: 2px solid #455fff;
    border-radius: 50%;
    animation: loaderRotate 1.5s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

.loader-progress-bar {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #455fff, #00d2ff);
    box-shadow: 0 0 10px rgba(69, 95, 255, 0.5);
    animation: loaderProgress 3s forwards cubic-bezier(0.1, 0.7, 1, 0.1);
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

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

@keyframes loaderProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 95%; }
}
