:root {
    --loader-primary: #1c6bb5;
    --loader-secondary: #b62829;
    --loader-bg: #ffffff;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--loader-bg);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.logo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    height: 160px;
    width: auto;
    z-index: 2;
    animation: pulseLogo 2s infinite ease-in-out;
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--loader-primary);
    border-bottom-color: var(--loader-secondary);
    animation: spinRing 1.5s linear infinite;
}

.loader-ring::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-left-color: var(--loader-secondary);
    border-right-color: var(--loader-primary);
    opacity: 0.5;
    animation: spinRingInverse 2s linear infinite;
}

.loader-text-area {
    text-align: center;
}

.loading-dots {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3556;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.loading-dots::after {
    content: '...';
    position: absolute;
    width: 20px;
    text-align: left;
    animation: dots 1.5s infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinRingInverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Prevent scrolling while loading */
body.is-loading {
    overflow: hidden;
}
