﻿[ng-cloak], .ng-cloak, [data-ng-cloak], [x-ng-cloak] {
    display: none !important;
}


/* Fullscreen Overlay Container */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85); /* اگر تم تاریک دارید: rgba(15, 23, 42, 0.85) */
    backdrop-filter: blur(4px); /* افکت بلار پشت صفحه */
    z-index: 99999; /* بالاتر از همه modalها و منوها */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    direction: rtl;
}

    /* نمایش انیمیشنی overlay */
    .loading-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* بخش لوگو و حلقه چرخنده دور آن */
.logo-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.loading-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    animation: logoPulse 1.8s infinite ease-in-out;
}

/* حلقه انیمیشن اطراف لوگو */
.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 123, 255, 0.15); /* رنگ کمرنگ اصلی */
    border-top: 3px solid #007bff; /* رنگ اصلی لودر */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* متن پایین لوگو */
.loading-text {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

/* Keyframes انیمیشن‌ها */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.92);
        opacity: 0.8;
    }
}
