/* File: /loader/loader.css */

#page-loader {
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    background-color: #ffffff;
    display: flex; 
    flex-direction: column; /* Stacks the orbit rings and text vertically */
    justify-content: center; 
    align-items: center;
    z-index: 999999; /* Highest priority */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-hidden { 
    opacity: 0; 
    visibility: hidden; 
}

.orbit-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
}

.center-logo {
    width: 70px; 
    z-index: 10;
}

/* Deep Blue Ring */
.ring-dual-1 {
    position: absolute; 
    width: 120px; 
    height: 120px;
    border-radius: 50%; 
    border: 3px solid transparent;
    border-top-color: #2b2a66; 
    border-bottom-color: #2b2a66; 
    animation: spin 1.5s linear infinite;
}

/* Bright Red Ring */
.ring-dual-2 {
    position: absolute; 
    width: 95px; 
    height: 95px;
    border-radius: 50%; 
    border: 3px solid transparent;
    border-left-color: #e31e24; 
    border-right-color: #e31e24; 
    animation: spin-reverse 2s linear infinite;
}

/* Loading Text Style & Animation */
.loading-text {
    margin-top: 25px;
    color: #2b2a66; /* Matches the Deep Blue ring */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}