/* تنسيقات خاصة بزائر ما قبل تسجيل الدخول — تكمل Page_layouts.css */

:root {
    --c-brand-alt: #850606;
    --c-success: rgb(24 135 83);
    --c-border: #e5e7eb;
    --c-text-main: #0f172a;
    --c-sidebar-bg: #f5f5f5;
}

/* إعادة لون النص داخل القائمة حتى لا يرث اللون الأبيض من الهيدر */
.sidebar {
    color: var(--c-text-main);
    background-color: var(--c-sidebar-bg);
}

.sb-hr {
    border: 0;
    border-top: 1px solid var(--c-border);
    margin: 12px 16px;
}

/* ===== Loading ===== */
.loading-screen {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-screen.is-visible {
    display: flex;
}

.spinner {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid #e8e8e8;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.spinner img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ===== بطاقة تسجيل الدخول في السايدبار ===== */
.sb-login-card {
    padding: 20px 16px 18px;
    background: #243B55;
    margin: 10px 12px;
    border-radius: 18px;
    text-align: center;
    color: #fff;
}

.sb-login-card__title {
    color: #fff;
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 800;
}

.sb-login-card__hint {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.sb-login-card__btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 25px;
    margin-bottom: 10px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.sb-login-card__google {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 8px;
    background: #fff;
    color: #333 !important;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;
}

.sb-login-card__google img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sb-nav__ico--home {
    color: var(--c-success);
}

.sb-nav__ico--about {
    color: #0ea5e9;
}

/* تمييز الصفحة الحالية في قائمة الزائر */
.sb-nav {
    padding: 12px 12px 20px;
}

.sb-nav__link--active {
    background: #dce8f0 !important;
    color: #0b3a5c;
    box-shadow: inset -3px 0 0 #0ea5e9;
}

/* ===== قسم المطور ===== */
.sb-developer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px 12px 100px;
    padding: 24px 16px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
}

.sb-developer__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.sb-developer__logo {
    height: 88px;
    width: 88px;
    margin-bottom: 12px;
    object-fit: contain;
    background: transparent;
}

.sb-developer__text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    direction: ltr;
    font-size: 14px;
    line-height: 1.4;
}

.sb-developer__brand {
    font-size: 14px;
    color: #2196f3;
    font-weight: 700;
}

.sb-developer__tagline {
    color: #555555;
    font-size: 14px;
    font-weight: 500;
}

.sb-developer__copy {
    color: #555555;
    font-size: 13px;
    margin-top: 6px;
}

/* أيقونة المستخدم في هيدر الزائر */
.hdr-user {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 4px;
}

.hdr-user:hover {
    opacity: 0.85;
}

.category-item--link {
    text-decoration: none;
    color: inherit;
}
