/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ==========================================================================
   ۱. پایه‌ها و مخفی‌سازی پیش‌فرض المان‌ها
   ========================================================================== */

/* دیالوگ در حالت عادی کاملاً مخفی است */
#components-reconnect-modal[b-a18wr8hxx4] {
    display: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    direction: rtl;
    font-family: inherit;
    z-index: 100000;
    outline: none;
}

/* تمام متن‌ها، دکمه‌ها و کانتینرها در حالت پیش‌فرض مخفی هستند */
.components-reconnect-first-attempt-visible[b-a18wr8hxx4],
.components-reconnect-repeated-attempt-visible[b-a18wr8hxx4],
.components-reconnect-failed-visible[b-a18wr8hxx4],
.components-pause-visible[b-a18wr8hxx4],
.components-resume-failed-visible[b-a18wr8hxx4],
.reconnect-badge[b-a18wr8hxx4],
.components-reconnect-container[b-a18wr8hxx4] {
    display: none;
}


/* ==========================================================================
   ۲. وضعیت در حال تلاش برای اتصال (کلاس components-reconnect-show)
      -> تبدیل به بج شناور کوچک در گوشه صفحه بدون قفل کردن کاربر
   ========================================================================== */

#components-reconnect-modal.components-reconnect-show[b-a18wr8hxx4] {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    max-width: 90vw;
    background-color: transparent !important;
    box-shadow: none;
    pointer-events: none; /* تا روی دکمه‌های زیرین مانع ایجاد نکند */
}

/* در این وضعیت فقط بج گوشه نمایش داده شود */
#components-reconnect-modal.components-reconnect-show .reconnect-badge[b-a18wr8hxx4] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(24, 24, 27, 0.92);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 9999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    font-size: 13.5px;
    line-height: 1;
}

/* تلاش اول: فقط متن تلاش اول فعال باشد */
#components-reconnect-modal.components-reconnect-show:not(.components-reconnect-repeated-attempt) .components-reconnect-first-attempt-visible[b-a18wr8hxx4] {
    display: inline;
}

/* تلاش‌های مکرر: متن تلاش اول مخفی و متن شمارنده فعال شود */
#components-reconnect-modal.components-reconnect-show.components-reconnect-repeated-attempt .components-reconnect-repeated-attempt-visible[b-a18wr8hxx4] {
    display: inline;
}

/* اسپینر انیمیشنی کوچک */
.reconnect-spinner[b-a18wr8hxx4] {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: reconnect-spin-b-a18wr8hxx4 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes reconnect-spin-b-a18wr8hxx4 {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   ۳. وضعیت شکست نهایی یا توقف (Failed / Suspended / Rejected)
      -> تبدیل به مدال کامل وسط صفحه همراه با پس‌زمینه تیره
   ========================================================================== */

#components-reconnect-modal.components-reconnect-failed[b-a18wr8hxx4],
#components-reconnect-modal.components-reconnect-rejected[b-a18wr8hxx4],
#components-reconnect-modal.components-reconnect-paused[b-a18wr8hxx4],
#components-reconnect-modal.components-reconnect-resume-failed[b-a18wr8hxx4] {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.65) !important;
    pointer-events: auto;
}

/* نمایش کانتینر دیالوگ وسط صفحه */
#components-reconnect-modal.components-reconnect-failed .components-reconnect-container[b-a18wr8hxx4],
#components-reconnect-modal.components-reconnect-rejected .components-reconnect-container[b-a18wr8hxx4],
#components-reconnect-modal.components-reconnect-paused .components-reconnect-container[b-a18wr8hxx4],
#components-reconnect-modal.components-reconnect-resume-failed .components-reconnect-container[b-a18wr8hxx4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    color: #1e293b;
    padding: 24px 32px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    text-align: center;
    max-width: 400px;
    margin: 16px;
}

/* نمایش پیام شکست */
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-a18wr8hxx4] {
    display: block;
}

/* نمایش پیام توقف */
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-a18wr8hxx4] {
    display: block;
}

/* نمایش پیام خطای از سرگیری */
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-a18wr8hxx4] {
    display: block;
}

/* آیکون و دکمه دیالوگ */
.reconnect-modal-icon[b-a18wr8hxx4] {
    font-size: 34px;
    margin-bottom: 8px;
}

.reconnect-btn[b-a18wr8hxx4] {
    margin-top: 16px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.reconnect-btn:hover[b-a18wr8hxx4] {
    background-color: #1d4ed8 !important;
}
/* /Components/Pages/Auth/Login.razor.rz.scp.css */
