/* Page Loader Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: pulse 2s ease-in-out infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    letter-spacing: 1px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

.loader-subtext {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.8;
}

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

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

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Dots Animation */
.loader-dots {
    display: inline-block;
}

.loader-dots span {
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* Alternative Spinner Styles */
.loader-spinner-alt {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    position: relative;
}

.loader-spinner-alt div {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-spinner-alt div:nth-child(2) {
    border-top-color: rgba(255, 255, 255, 0.6);
    animation-delay: 0.15s;
}

.loader-spinner-alt div:nth-child(3) {
    border-top-color: rgba(255, 255, 255, 0.3);
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .loader-logo {
        width: 80px;
        height: 80px;
    }
    
    .loader-text {
        font-size: 16px;
    }
    
    .loader-subtext {
        font-size: 12px;
    }
    
    .loader-progress {
        width: 150px;
    }
}
