/* ============================================
   App Loader - لودینگ اولیه برنامه
   ============================================ */

#app-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#app-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-loader-inner {
    text-align: center;
    color: #fff;
    padding: 24px;
}

.app-loader-logo {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #c4b5fd, #818cf8, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-loader-tagline {
    font-size: 0.92rem;
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 28px;
}

.app-loader-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #a5b4fc;
    border-radius: 50%;
    animation: app-loader-spin 0.8s linear infinite;
}

.app-loader-text {
    font-size: 0.88rem;
    color: rgba(203, 213, 225, 0.85);
}

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

@media (prefers-reduced-motion: reduce) {
    .app-loader-spinner {
        animation: none;
        border-top-color: #a5b4fc;
        opacity: 0.8;
    }
}
