/* Loading Screen Component */
/* ========================= */

/* Loading Container */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-gray);
    border-top: 4px solid var(--primary-gray);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Loading Progress Bar */
.loading-progress {
    width: 300px;
    height: 6px;
    background: var(--border-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress-bar {
    height: 100%;
    background: var(--primary-gray);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Loading Text */
.loading-container h4 {
    color: var(--dark-gray);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Dashboard Loading Overlay - HIDDEN BY DEFAULT */
.dashboard-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.dashboard-loading-overlay.show {
    display: flex; /* Only show when .show class is added */
}

.dashboard-loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-gray);
    border-top: 3px solid var(--primary-gray);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.dashboard-loading-text {
    color: var(--dark-gray);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.dashboard-loading-subtext {
    color: var(--medium-gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .loading-container h4 {
        font-size: 1rem;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .dashboard-loading-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .dashboard-loading-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .loading-container h4 {
        font-size: 0.875rem;
    }
    
    .loading-progress {
        width: 200px;
    }
    
    .loading-spinner {
        width: 35px;
        height: 35px;
    }
    
    .dashboard-loading-spinner {
        width: 35px;
        height: 35px;
    }
    
    .dashboard-loading-text {
        font-size: 0.9rem;
    }
    
    .dashboard-loading-subtext {
        font-size: 0.8rem;
    }
} 