/* ============================================
   LOADING SCREEN STYLES
   ============================================ */

html {
    background: #ffffff !important;
}

body {
    background: #ffffff !important;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.2s ease-out;
    will-change: opacity;
}

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

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #14b8a6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-text {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hide main content during loading */
.page-content {
    opacity: 0;
    transition: opacity 0.15s ease-in;
    will-change: opacity;
}

body.loaded .page-content {
    opacity: 1;
}
