/* Modern Page Loader Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Loader Animation Container */
.loader-content {
    text-align: center;
}

/* Spinner Animation */
.spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 30px;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.spinner-circle:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 15%;
    height: 15%;
    background-color: #fff;
    border-radius: 100%;
    animation: spinner-bounce 1.2s infinite ease-in-out both;
}

.spinner-circle:nth-child(2) {
    transform: rotate(30deg);
}

.spinner-circle:nth-child(3) {
    transform: rotate(60deg);
}

.spinner-circle:nth-child(4) {
    transform: rotate(90deg);
}

.spinner-circle:nth-child(5) {
    transform: rotate(120deg);
}

.spinner-circle:nth-child(6) {
    transform: rotate(150deg);
}

.spinner-circle:nth-child(7) {
    transform: rotate(180deg);
}

.spinner-circle:nth-child(8) {
    transform: rotate(210deg);
}

.spinner-circle:nth-child(9) {
    transform: rotate(240deg);
}

.spinner-circle:nth-child(10) {
    transform: rotate(270deg);
}

.spinner-circle:nth-child(11) {
    transform: rotate(300deg);
}

.spinner-circle:nth-child(12) {
    transform: rotate(330deg);
}

.spinner-circle:nth-child(2):before {
    animation-delay: -1.1s;
}

.spinner-circle:nth-child(3):before {
    animation-delay: -1s;
}

.spinner-circle:nth-child(4):before {
    animation-delay: -0.9s;
}

.spinner-circle:nth-child(5):before {
    animation-delay: -0.8s;
}

.spinner-circle:nth-child(6):before {
    animation-delay: -0.7s;
}

.spinner-circle:nth-child(7):before {
    animation-delay: -0.6s;
}

.spinner-circle:nth-child(8):before {
    animation-delay: -0.5s;
}

.spinner-circle:nth-child(9):before {
    animation-delay: -0.4s;
}

.spinner-circle:nth-child(10):before {
    animation-delay: -0.3s;
}

.spinner-circle:nth-child(11):before {
    animation-delay: -0.2s;
}

.spinner-circle:nth-child(12):before {
    animation-delay: -0.1s;
}

@keyframes spinner-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Loading Text */
.loader-text {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
}

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

/* Loading Progress Bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto 0;
}

.loader-progress-bar {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
        margin-left: 0;
    }
    50% {
        width: 75%;
        margin-left: 0;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}
