/* preloader.css */

/* Preloader Base Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
    overflow: hidden;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    height: 0;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 0.2rem;
}

/* Progress Bar Container */
.progress-bar-container {
    width: 100vw;
    height: 3vh;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    position: fixed;
    top: 48.5vh;
    left: 0;
    z-index: 15;
}

.progress-bar-fill {
    height: 100%;
    background: rgba(255, 252, 56, 0.9);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Progress Percentage */
.progress-text {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
    min-width: 80px;
    text-align: center;
}

.progress-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Loading Status Text */
.loader-status {
    margin-top: 0rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    min-height: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loader-content {
        max-width: 300px;
        padding: 0 1.5rem;
    }
    
    .progress-bar-container {
        margin-bottom: 0rem;
    }
    
    .progress-text {
        font-size: 1.5rem;
    }
    
    .progress-label {
        font-size: 0.75rem;
    }
}

/* Prevent scrolling while loading */
body.loading {
    overflow: hidden;
}

/* Animation for completion */
@keyframes mergeIn {
    from {
        opacity: 1;
        transform: scaleY(1);
    }
    to {
        opacity: 0;
        transform: scaleY(0);
    }
}
