body.page-loading {
    margin: 0; 
    height: 100%; 
    overflow: hidden;
}

.splash-screen {
    display: none;
}

.page-loading .splash-screen {
    position: fixed;
    z-index: 10000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Varela Round', Inter, Helvetica, "sans-serif";
    background: linear-gradient(135deg, #1e1e2d 0%, #2a2a3e 100%);
    color: #ffffff;
    line-height: 1;
    font-size: 16px;
    font-weight: 500;
}

/* Logo container */
.splash-screen .logo-container {
    margin-bottom: 40px;
    text-align: center;
}

.splash-screen .logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.splash-screen .logo-subtitle {
    font-size: 14px;
    color: #eaff48;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Loading spinner */
.splash-screen .loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #eaff48;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

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

/* Loading text */
.splash-screen .loading-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Loading dots animation */
.splash-screen .loading-dots {
    display: inline-block;
    width: 40px;
    text-align: left;
}

.splash-screen .loading-dots::after {
    content: '';
    animation: dots 2s linear infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    25%, 45% { content: '.'; }
    50%, 70% { content: '..'; }
    75%, 95% { content: '...'; }
}

/* Progress bar */
.splash-screen .progress-container {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.splash-screen .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #eaff48 0%, #c4e619 100%);
    border-radius: 2px;
    animation: progress 2s ease-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    25% { width: 30%; }
    50% { width: 60%; }
    75% { width: 85%; }
    100% { width: 100%; }
}

/* Fade out animation */
.splash-screen.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Legacy support */
.page-loading .splash-screen span {
    color: #ffffff;
    transition: none !important;
    -webkit-font-smoothing: antialiased;
}

.page-loading .splash-screen img {
    margin-bottom: 30px;
    height: 40px !important;
    max-width: 200px;
}

/* Dark theme (keeping for compatibility) */
html[data-bs-theme="dark"] .page-loading .splash-screen {
    background: linear-gradient(135deg, #1e1e2d 0%, #2a2a3e 100%);
    color: #ffffff;
}

.splash-screen .dark-logo {
    display: none;
}

.splash-screen .light-logo {
    display: block;
}

html[data-bs-theme="dark"] .splash-screen .light-logo {
    display: none;
}

html[data-bs-theme="dark"] .splash-screen .dark-logo {
    display: block;
}
