/* === PAGE LOADER MODAL === */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dark #pageLoader {
    background: rgba(26, 32, 44, 0.98);
}

#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    transform: translateY(-20px);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 40px auto 40px 40px;
}

.loader-spinner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #e5e7eb;
    border-radius: 50%;
}

.dark .loader-spinner::before {
    border-color: #4a5568;
}

.loader-spinner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin-loader 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin: 20px auto;
}

.dark .loader-progress {
    background: #4a5568;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    animation: progress-loader 1.5s ease-in-out infinite;
}

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

.loader-text {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
}

.dark .loader-text {
    color: #9ca3af;
}

.loader-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    animation: pulse-loader 2s ease-in-out infinite;
}

.loader-logo svg {
    width: 32px;
    height: 32px;
    display: block;
}

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

