/* Loading Screen Styles - Light Theme (matches MainLayout palette) */
html, body {
    margin: 0;
    padding: 0;
    background: #F3F3F3;
    color-scheme: light;
}

#app {
    min-height: 100vh;
    background: #F3F3F3;
}

/* Only apply loading background when loader-container is present */
#app:has(.loader-container) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #F3F3F3;
}

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

.modern-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.modern-loader::before,
.modern-loader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
}

.modern-loader::before {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(45, 122, 192, 0.2);
    animation: spin-loader 1.5s linear infinite;
    top: 0;
    left: 0;
}

.modern-loader::after {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border: 4px solid transparent;
    border-top-color: #2D7AC0;
    border-right-color: #2D7AC0;
    animation: spin-loader 1s linear infinite reverse;
}

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

.loading-text {
    color: #373A3B;
    font-size: 24px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 10px;
    animation: fadeInOut-loader 2s ease-in-out infinite;
}

.loading-subtext {
    color: rgba(103, 109, 111, 0.8);
    font-size: 14px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

@keyframes fadeInOut-loader {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading-dots::after {
    content: '';
    animation: dots-loader 1.5s steps(4, end) infinite;
}

@keyframes dots-loader {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}
