/* ============================================
   Page Loader Styles
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd 0%, #003b4f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader__content {
    text-align: center;
}

.loader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
    border-top-color: rgba(255, 255, 255, 0.9);
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: rgba(255, 255, 255, 0.7);
    width: 90px;
    height: 90px;
    top: 15px;
    left: 15px;
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.loader-text__main {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.loader-text__sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .loader-spinner {
        width: 90px;
        height: 90px;
    }

    .spinner-ring:nth-child(2) {
        width: 70px;
        height: 70px;
        top: 10px;
        left: 10px;
    }

    .spinner-ring:nth-child(3) {
        width: 50px;
        height: 50px;
        top: 20px;
        left: 20px;
    }

    .loader-text__main {
        font-size: 1.5rem;
    }

    .loader-text__sub {
        font-size: 0.875rem;
    }
}

