/* ===================================
   LOADING SCREEN STYLES
   =================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-default);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-gray400);
    border-top: 4px solid var(--emerald500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-text {
    color: var(--bg-gray900);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.loading-subtitle {
    color: var(--bg-gray600);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.loading-dots {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.progress-container {
    width: 240px;
    height: 4px;
    background: var(--bg-gray300);
    border-radius: 2px;
    margin-top: 24px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--emerald500);
    border-radius: 2px;
    animation: progress 3s ease-in-out;
}

@keyframes progress {
    0% { width: 0%; }
    30% { width: 30%; }
    70% { width: 70%; }
    100% { width: 100%; }
}

/* Responsive */
@media (max-width: 640px) {
    .loader {
        width: 50px;
        height: 50px;
    }

    .loading-text {
        font-size: 16px;
    }

    .loading-subtitle {
        font-size: 12px;
    }

    .progress-container {
        width: 200px;
    }
}