/* Optimized Page Loader Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-wrapper {
    text-align: center;
}

.loader-content {
    position: relative;
    display: inline-block;
}

.loader-circle {
    width: 120px;
    height: 120px;
    border: 3px solid #f1f1f1;
    border-top: 3px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-logo {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.loader-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: calc(50% + 70px);
    left: 50%;
    transform: translateX(-50%);
    color: #333333;
    font-size: 16px;
    font-weight: 500;
}

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

/* Hide loader when page is loaded */
body.loaded .page-loader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
