/* تنسيقات خاصة بمشروع الاستضافة (Client) فقط: شاشة الإقلاع وواجهة الأخطاء غير المعالجة.
   بقية تنسيقات النظام موجودة في مكتبة NocPortal.UI (_content/NocPortal.UI/css/app.css). */

html, body { margin: 0; padding: 0; }

.boot-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: linear-gradient(135deg, #0d2b4e 0%, #163b66 60%, #0f6674 140%);
    color: #fff;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    z-index: 9999;
}
.boot-emblem {
    width: 64px; height: 64px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c9a227, #8f7315 78%);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #0d2b4e; font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,.65);
}
.boot-title { font-weight: 800; font-size: 1.2rem; }
.boot-sub { font-size: .85rem; opacity: .8; }

.loading-progress {
    position: relative;
    display: block;
    width: 6rem;
    height: 6rem;
    margin-top: .5rem;
}
.loading-progress circle {
    fill: none;
    stroke: rgba(255,255,255,.25);
    stroke-width: 0.5rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #c9a227;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: #fff;
}
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "جارٍ التحميل");
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff6e2;
    color: #7a5600;
    bottom: 0;
    box-shadow: 0 -1px 6px rgba(0,0,0,.15);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 10000;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    left: 1rem;
    top: 0.6rem;
}
#blazor-error-ui .reload { font-weight: 700; margin-inline-start: .5rem; }

.blazor-error-boundary {
    background: #fbe7e7;
    color: #7a2323;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}
.blazor-error-boundary::after {
    content: "حدث خطأ أثناء عرض هذا الجزء من الصفحة.";
}
