/* ============================================================
   نظام الأرشفة والبريد الإلكتروني — جامعة الحدباء الأهلية
   نظام التصميم الموحد (Design System)
   يُحمَّل بعد Bootstrap / Bootlab ليوحّد شكل كل الصفحات
   ============================================================ */

/* ---------- الخطوط ---------- */
@font-face {
    font-family: 'Tajawal';
    src: url('/fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- المتغيرات ---------- */
:root {
    /* الألوان الأساسية */
    --hr-primary: #1b3a6b;
    --hr-primary-dark: #0e2545;
    --hr-primary-darker: #081833;
    --hr-primary-light: #eef3fb;
    --hr-primary-100: #dbe7f7;

    /* اللون الذهبي (هوية الجامعة) */
    --hr-gold: #d4a537;
    --hr-gold-light: #eec96a;
    --hr-gold-soft: #fdf6e3;

    /* الحالات */
    --hr-success: #128462;
    --hr-success-soft: #e2f5ee;
    --hr-danger: #c23434;
    --hr-danger-soft: #fdeaea;
    --hr-warning: #b97d10;
    --hr-warning-soft: #fdf3dd;
    --hr-info: #1c7ca8;
    --hr-info-soft: #e5f4fa;

    /* المحايد */
    --hr-bg: #f2f5fa;
    --hr-card: #ffffff;
    --hr-border: #e4e9f2;
    --hr-text: #1f2937;
    --hr-muted: #64748b;

    /* الأبعاد */
    --hr-radius-lg: 1rem;
    --hr-radius: 0.75rem;
    --hr-radius-sm: 0.55rem;
    --hr-shadow: 0 2px 10px rgba(14, 37, 69, 0.06);
    --hr-shadow-lg: 0 10px 34px rgba(14, 37, 69, 0.12);

    --hr-font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- الأساسيات ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--hr-font) !important;
    background-color: var(--hr-bg);
    color: var(--hr-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.fw-bold, th, .btn, .badge, .sidebar-brand {
    font-family: var(--hr-font);
}

/* شريط التمرير */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c3cede;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9fb0c9;
}

/* ============================================================
   القائمة الجانبية (Sidebar)
   ============================================================ */
.sidebar {
    background: linear-gradient(180deg, var(--hr-primary) 0%, var(--hr-primary-dark) 55%, var(--hr-primary-darker) 100%) !important;
    color: #fff;
}

.sidebar-content {
    background: transparent !important;
}

.sidebar-brand {
    padding: 0.5rem 0.25rem 1rem !important;
    text-align: center;
}

.sidebar-brand .brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 0 0 3px rgba(212, 165, 55, 0.55);
}

.sidebar-brand .brand-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.sidebar-brand .brand-subtitle {
    color: var(--hr-gold-light);
    font-size: 0.72rem;
    opacity: 0.95;
}

.sidebar-header {
    font-size: 0.72rem !important;
    letter-spacing: 1px;
    color: var(--hr-gold-light) !important;
    opacity: 0.9;
    margin: 1rem 0.35rem 0.35rem !important;
    text-transform: none !important;
}

.sidebar-nav .sidebar-item {
    margin-bottom: 0.2rem;
}

.sidebar-link {
    color: #cdd8ea !important;
    font-size: 0.9rem;
    border-radius: var(--hr-radius-sm) !important;
    padding: 0.55rem 0.8rem !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    position: relative;
    background: transparent !important;
}

.sidebar-link i,
.sidebar-link svg {
    opacity: 0.85;
    width: 18px;
    height: 18px;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    text-decoration: none;
    transform: translateX(-3px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(212, 165, 55, 0.18), rgba(212, 165, 55, 0.05)) !important;
    color: #fff !important;
    font-weight: 700;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    right: -0.35rem;
    top: 18%;
    bottom: 18%;
    width: 4px;
    border-radius: 99px;
    background: var(--hr-gold);
    box-shadow: 0 0 8px rgba(212, 165, 55, 0.8);
}

.sidebar-link.active i,
.sidebar-link.active svg {
    color: var(--hr-gold-light);
    opacity: 1;
}

/* فاصل الخروج */
.sidebar-logout {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.sidebar-logout .sidebar-link:hover {
    background: rgba(194, 52, 52, 0.35) !important;
}

/* ============================================================
   الشريط العلوي (Topbar)
   ============================================================ */
.navbar-custom {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hr-border) !important;
    min-height: 60px;
}

.navbar-custom .navbar-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--hr-primary);
}

.navbar-custom .dept-name {
    font-size: 0.8rem;
    color: var(--hr-muted);
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--hr-primary-light);
    color: var(--hr-primary);
    border-radius: 99px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user i {
    color: var(--hr-gold);
}

.navbar-custom .btn {
    border-radius: 99px;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
}

/* ============================================================
   ترويسة الصفحة (Page head)
   ============================================================ */
.page-head {
    background: linear-gradient(120deg, var(--hr-primary) 0%, var(--hr-primary-dark) 70%);
    color: #fff;
    border-radius: var(--hr-radius-lg);
    padding: 1.15rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--hr-shadow-lg);
    position: relative;
    overflow: hidden;
}

.page-head::after {
    content: '';
    position: absolute;
    inset-inline-start: -60px;
    top: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 55, 0.28), transparent 70%);
    pointer-events: none;
}

.page-head h1,
.page-head h2,
.page-head .page-head-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.page-head .page-head-subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.page-head .page-head-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--hr-radius);
    background: rgba(212, 165, 55, 0.2);
    color: var(--hr-gold-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================================
   البطاقات
   ============================================================ */
.hr-card,
.card {
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg) !important;
    box-shadow: var(--hr-shadow);
    background: var(--hr-card);
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--hr-border) !important;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    border-radius: var(--hr-radius-lg) var(--hr-radius-lg) 0 0 !important;
}

.card-footer {
    background: transparent !important;
    border-top: 1px solid var(--hr-border) !important;
    border-radius: 0 0 var(--hr-radius-lg) var(--hr-radius-lg) !important;
}

/* بطاقات الإحصائيات */
.stat-card {
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    background: var(--hr-card);
    box-shadow: var(--hr-shadow);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--stat-color, var(--hr-primary));
    border-radius: 0 99px 99px 0;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hr-shadow-lg);
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--hr-muted);
    margin-bottom: 0.3rem;
}

.stat-card .stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--hr-text);
    line-height: 1;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--hr-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--stat-color, var(--hr-primary));
    background: var(--stat-bg, var(--hr-primary-light));
    flex-shrink: 0;
}

.stat-primary { --stat-color: var(--hr-primary); --stat-bg: var(--hr-primary-light); }
.stat-gold    { --stat-color: var(--hr-gold);    --stat-bg: var(--hr-gold-soft); }
.stat-success { --stat-color: var(--hr-success); --stat-bg: var(--hr-success-soft); }
.stat-danger  { --stat-color: var(--hr-danger);  --stat-bg: var(--hr-danger-soft); }
.stat-info    { --stat-color: var(--hr-info);    --stat-bg: var(--hr-info-soft); }
.stat-warning { --stat-color: var(--hr-warning); --stat-bg: var(--hr-warning-soft); }

/* بطاقة رابط سريع */
.quick-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    background: var(--hr-card);
    box-shadow: var(--hr-shadow);
    padding: 1rem 1.15rem;
    height: 100%;
    text-decoration: none;
    color: var(--hr-text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hr-shadow-lg);
    border-color: var(--hr-gold);
    color: var(--hr-text);
}

.quick-card .quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--stat-color, var(--hr-primary));
    background: var(--stat-bg, var(--hr-primary-light));
    flex-shrink: 0;
}

.quick-card .quick-title {
    font-weight: 700;
    font-size: 0.92rem;
}

.quick-card .quick-subtitle {
    font-size: 0.78rem;
    color: var(--hr-muted);
}

/* ============================================================
   الجداول
   ============================================================ */
.table {
    --bs-table-hover-bg: var(--hr-primary-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.table thead th {
    background: var(--hr-primary) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    border: none !important;
    padding: 0.8rem 0.75rem;
    white-space: nowrap;
    vertical-align: middle;
}

.table thead.table-light th,
.table thead.table-dark th {
    background: var(--hr-primary) !important;
    color: #fff !important;
}

.table tbody td {
    padding: 0.7rem 0.75rem;
    vertical-align: middle;
    border-color: var(--hr-border);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* صف غير مقروء */
.table tbody tr.row-unread,
.table tbody tr.table-primary {
    --bs-table-bg: var(--hr-gold-soft);
    background: var(--hr-gold-soft) !important;
    font-weight: 700;
}

.table tbody tr.row-unread td:first-child {
    box-shadow: inset 4px 0 0 var(--hr-gold);
}

/* حاوية الجدول داخل بطاقة */
.table-card {
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    background: var(--hr-card);
    box-shadow: var(--hr-shadow);
    overflow: hidden;
}

.table-card .table-responsive {
    border-radius: 0;
}

/* ============================================================
   الأزرار
   ============================================================ */
.btn {
    border-radius: var(--hr-radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.45rem 1.1rem;
    transition: all 0.18s ease;
}

.btn-sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.6rem 1.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hr-primary), var(--hr-primary-dark));
    border: none;
    box-shadow: 0 4px 14px rgba(27, 58, 107, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--hr-primary-dark), var(--hr-primary-darker));
    box-shadow: 0 6px 18px rgba(27, 58, 107, 0.4);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--hr-gold), #b8891f);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 165, 55, 0.35);
}

.btn-gold:hover,
.btn-gold:focus {
    background: linear-gradient(135deg, #c1932a, #a1771a);
    color: #fff;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--hr-success);
    border-color: var(--hr-success);
}

.btn-danger {
    background: var(--hr-danger);
    border-color: var(--hr-danger);
}

.btn-outline-primary {
    color: var(--hr-primary);
    border-color: var(--hr-primary-100);
}

.btn-outline-primary:hover {
    background: var(--hr-primary);
    border-color: var(--hr-primary);
}

/* ============================================================
   النماذج
   ============================================================ */
.form-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hr-primary-dark);
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-radius: var(--hr-radius-sm);
    border: 1.5px solid var(--hr-border);
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-family: var(--hr-font);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    background-color: #fbfcfe;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hr-primary);
    box-shadow: 0 0 0 0.2rem rgba(27, 58, 107, 0.12);
    background-color: #fff;
}

.form-check-input {
    border: 1.5px solid #b8c4d6;
    width: 1.05em;
    height: 1.05em;
}

.form-check-input:checked {
    background-color: var(--hr-primary);
    border-color: var(--hr-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(27, 58, 107, 0.12);
}

/* لوحة اختيار الأقسام */
.dept-panel {
    border: 1.5px solid var(--hr-border);
    border-radius: var(--hr-radius);
    background: #fbfcfe;
    max-height: 460px;
    overflow-y: auto;
    padding: 0.75rem;
}

.dept-group {
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-sm);
    background: #fff;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.dept-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--hr-primary-light);
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hr-primary-dark);
}

.dept-group-body {
    padding: 0.6rem 0.85rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.25rem 0.75rem;
}

.dept-group-body .form-check {
    margin-bottom: 0.2rem;
}

.dept-group-body .form-check-label {
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============================================================
   الشارات (Badges)
   ============================================================ */
.badge {
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4em 0.75em;
    border-radius: 99px;
}

.badge-soft-primary { background: var(--hr-primary-light); color: var(--hr-primary); }
.badge-soft-gold    { background: var(--hr-gold-soft);     color: var(--hr-warning); }
.badge-soft-success { background: var(--hr-success-soft);  color: var(--hr-success); }
.badge-soft-danger  { background: var(--hr-danger-soft);   color: var(--hr-danger); }
.badge-soft-info    { background: var(--hr-info-soft);     color: var(--hr-info); }
.badge-soft-muted   { background: #eef1f6;                 color: var(--hr-muted); }

/* ============================================================
   التنبيهات
   ============================================================ */
.alert {
    border: none;
    border-radius: var(--hr-radius);
    font-size: 0.9rem;
    box-shadow: var(--hr-shadow);
    border-inline-start: 5px solid transparent;
}

.alert-success {
    background: var(--hr-success-soft);
    color: var(--hr-success);
    border-inline-start-color: var(--hr-success);
}

.alert-danger {
    background: var(--hr-danger-soft);
    color: var(--hr-danger);
    border-inline-start-color: var(--hr-danger);
}

.alert-info {
    background: var(--hr-info-soft);
    color: var(--hr-info);
    border-inline-start-color: var(--hr-info);
}

.alert-warning {
    background: var(--hr-warning-soft);
    color: var(--hr-warning);
    border-inline-start-color: var(--hr-warning);
}

/* ============================================================
   ترقيم الصفحات
   ============================================================ */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: var(--hr-radius-sm) !important;
    border: 1px solid var(--hr-border);
    color: var(--hr-primary);
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    transition: all 0.15s ease;
}

.pagination .page-link:hover {
    background: var(--hr-primary-light);
    border-color: var(--hr-primary-100);
}

.pagination .page-item.active .page-link {
    background: var(--hr-primary);
    border-color: var(--hr-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(27, 58, 107, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #b3bfd0;
    background: #f6f8fb;
}

/* ============================================================
   التذييل
   ============================================================ */
.footer1 {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 46px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--hr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    font-size: 0.78rem;
    z-index: 1030;
    color: var(--hr-muted);
}

.footer1 .links a {
    margin-inline-start: 1rem;
    text-decoration: none;
    color: var(--hr-primary);
    font-weight: 700;
}

.footer1 .links a:hover {
    color: var(--hr-gold);
}

/* ============================================================
   حالة فارغة (Empty state)
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hr-muted);
}

.empty-state .empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--hr-primary-light);
    color: var(--hr-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
}

/* ============================================================
   صفحات المصادقة (Login / Forgot / Reset)
   ============================================================ */
.auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(1100px circle at 85% -10%, rgba(212, 165, 55, 0.16), transparent 45%),
        radial-gradient(900px circle at 10% 110%, rgba(27, 58, 107, 0.5), transparent 55%),
        linear-gradient(150deg, var(--hr-primary-dark) 0%, var(--hr-primary-darker) 100%);
    color: var(--hr-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border-radius: 1.4rem;
    box-shadow: 0 30px 70px rgba(3, 12, 27, 0.5);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

/* لوحة الهوية */
.auth-brand {
    flex: 1 1 360px;
    background:
        radial-gradient(400px circle at 110% 0%, rgba(212, 165, 55, 0.25), transparent 55%),
        linear-gradient(160deg, var(--hr-primary) 0%, var(--hr-primary-dark) 55%, var(--hr-primary-darker) 100%);
    color: #fff;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -70px;
    inset-inline-start: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 30px solid rgba(212, 165, 55, 0.1);
    pointer-events: none;
}

.auth-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 0 0 4px rgba(212, 165, 55, 0.55), 0 10px 26px rgba(0, 0, 0, 0.35);
}

.auth-brand-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1rem;
}

.auth-brand-subtitle {
    color: var(--hr-gold-light);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 99px;
    background: rgba(212, 165, 55, 0.16);
    color: var(--hr-gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(212, 165, 55, 0.35);
    margin-top: 1.25rem;
    width: fit-content;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.86rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.92;
}

.auth-features li i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--hr-gold-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.auth-brand-footer {
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 2rem;
}

/* لوحة النموذج */
.auth-form {
    flex: 1 1 420px;
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hr-primary-dark);
    margin-bottom: 0.25rem;
}

.auth-form-subtitle {
    font-size: 0.87rem;
    color: var(--hr-muted);
    margin-bottom: 1.5rem;
}

.auth-form .input-icon {
    position: relative;
}

.auth-form .input-icon .form-control {
    padding-inline-start: 2.6rem;
    height: 48px;
}

.auth-form .input-icon > .icon {
    position: absolute;
    inset-inline-start: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.18s ease;
}

.auth-form .input-icon:focus-within > .icon {
    color: var(--hr-primary);
}

.auth-form .toggle-password {
    position: absolute;
    inset-inline-end: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.4rem;
    cursor: pointer;
}

.auth-form .toggle-password:hover {
    color: var(--hr-primary);
}

.btn-auth {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--hr-radius);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--hr-primary), var(--hr-primary-dark));
    box-shadow: 0 8px 22px rgba(27, 58, 107, 0.4);
    transition: all 0.2s ease;
}

.btn-auth:hover,
.btn-auth:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--hr-primary-dark), var(--hr-primary-darker));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 58, 107, 0.5);
}

.auth-help {
    font-size: 0.78rem;
    color: var(--hr-muted);
    background: var(--hr-primary-light);
    border-radius: var(--hr-radius-sm);
    padding: 0.6rem 0.9rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    line-height: 1.7;
}

.auth-link {
    color: var(--hr-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
}

.auth-link:hover {
    color: var(--hr-gold);
}

.validation-summary-errors ul {
    margin: 0;
    padding-inline-start: 1.1rem;
}

@media (max-width: 767.98px) {
    .auth-brand {
        display: none;
    }

    .auth-form {
        padding: 2rem 1.5rem;
    }
}

/* ============================================================
   تحسينات طباعة
   ============================================================ */
@media print {
    .sidebar,
    .navbar-custom,
    .footer1,
    .btn,
    .pagination {
        display: none !important;
    }

    body {
        background: #fff;
    }
}
