/* Loading Screen - Advanced Design */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: none;
    animation: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

@keyframes loaderAutoDismiss {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto;
}

.loader-circle {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loader-text {
    color: white;
    font-size: 16px;
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: progress 2s ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

