/**
 * كلية الشمال للتمريض الأهلية - الرموز التصميمية Enterprise
 * نظام الاستعلام عن قرارات مجلس الكلية
 */

:root {
  --primary: #072C2C;
  --primary-light: #0d4a4a;
  --secondary: #FF5F03;
  --secondary-hover: #e05300;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --surface: #EDEADE;
  --surface-light: #F7F5F0;
  --text: #111827;
  --text-muted: #4B5563;
  --border: #D1D5DB;
  --card-bg: #FFFFFF;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', 'Ubuntu', sans-serif;
  background-color: var(--surface-light);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* روابط */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--secondary-hover);
}

/* الهيدر وشريط التنقل */
.navbar {
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-bottom: 3px solid var(--secondary);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #ffffff;
}

.logo-img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.logo-img.on-light {
  filter: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-nav-login {
  background-color: var(--secondary);
  color: #ffffff !important;
}
.btn-nav-login:hover {
  background-color: var(--secondary-hover);
}

/* قسم Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 3rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 95, 3, 0.18);
  border: 1px solid var(--secondary);
  color: #ffd6be;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* نموذج البحث العائم في Hero */
.search-card-hero {
  background: var(--card-bg);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  margin: -2.5rem auto 2rem;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-input-group {
  flex: 1 1 300px;
  position: relative;
}

.search-input-group i {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 1rem;
  font-size: 1.05rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background-color: #FAFAFA;
  transition: border-color 0.2s, background-color 0.2s;
}

.search-input:focus {
  border-color: var(--secondary);
  background-color: #ffffff;
}

.filter-select {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background-color: #FAFAFA;
  color: var(--text);
  min-width: 180px;
}

.btn-search {
  background-color: var(--secondary);
  color: #ffffff;
  border: none;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-search:hover {
  background-color: var(--secondary-hover);
}

.btn-search:active {
  transform: scale(0.98);
}

/* بطاقات الإحصائيات العائمة */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.primary { background: rgba(7, 44, 44, 0.1); color: var(--primary); }
.stat-icon.secondary { background: rgba(255, 95, 3, 0.1); color: var(--secondary); }
.stat-icon.success { background: rgba(22, 163, 74, 0.1); color: var(--success); }

.stat-info .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.stat-info .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* الحاوية الرئيسية */
.main-container {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

/* الشارات والأوسمة */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-graduation {
  background-color: #EBF5FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.badge-internship {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-approved {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.badge-admin {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.badge-editor {
  background-color: #E0E7FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
}

.badge-viewer {
  background-color: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

/* بطاقة نتيجة استعلام الطالب - الإفادة الرسمية */
.verification-box {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.verification-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.verification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.verification-title-area h3 {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verification-title-area p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.75rem;
}

.verification-item {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.verification-item .item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  display: block;
}

.verification-item .item-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.verification-decision-panel {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.verification-decision-panel h4 {
  color: #166534;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verification-decision-panel p {
  color: #14532D;
  font-size: 0.95rem;
}

.verification-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.btn-print {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.btn-print:hover {
  background-color: var(--primary-light);
}

/* جدول القرارات والنتائج */
.section-header {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.data-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

.custom-table th {
  background-color: #F9FAFB;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.custom-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background-color: #F8FAFC;
}

/* أزرار الإجراءات */
.btn-action {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-action-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-action-primary:hover { background-color: var(--primary-light); color: #fff; }

.btn-action-secondary {
  background-color: var(--secondary);
  color: #fff;
}
.btn-action-secondary:hover { background-color: var(--secondary-hover); color: #fff; }

.btn-action-danger {
  background-color: #FEE2E2;
  color: var(--danger);
  border-color: #FECACA;
}
.btn-action-danger:hover { background-color: var(--danger); color: #fff; }

/* بطاقات القرارات (Decision Grid) */
.decisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.decision-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--primary);
}

.decision-card.internship {
  border-top-color: var(--secondary);
}

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

.decision-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.decision-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.decision-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.decision-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* تبويبات لوحة التحكم Admin */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* تبويبات فرعية Sub-tabs */
.sub-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--surface-light);
  padding: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* نماذج الإدخال (Forms) */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--secondary);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.btn-submit {
  background-color: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: var(--secondary-hover);
}

/* تنبيهات الفلاش */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.alert-danger {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-warning {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.alert-info {
  background-color: #E0F2FE;
  color: #075985;
  border: 1px solid #BAE6FD;
}

/* صندوق الدخول */
.login-container {
  max-width: 440px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.login-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 5px solid var(--primary);
}

.login-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.login-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* تذييل الصفحة Footer */
.footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--secondary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer-links h5, .footer-contact h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Modal نافذة تفاصيل القرار والطلاب */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* أنماط الطباعة الرسمية للوثيقة */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }
  .navbar, .hero, .search-card-hero, .stats-grid, .btn-print, .footer, .no-print, .decisions-grid, .section-header {
    display: none !important;
  }
  .main-container {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  .verification-box {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    padding: 2rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .verification-box::before {
    display: none;
  }
  .print-only-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }
  .print-only-header img {
    height: 75px;
    filter: none !important;
  }
  .print-signatures {
    display: flex !important;
    justify-content: space-between;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ccc;
  }
  .signature-block {
    text-align: center;
    width: 200px;
  }
  .signature-line {
    margin-top: 40px;
    border-bottom: 1px dotted #000;
  }
}

.print-only-header, .print-signatures {
  display: none;
}

/* ==========================================================
   تحسينات وتحديثات تجربة الجوال والشاشات الذكية (Mobile Experience)
   ========================================================== */

/* مؤشر السحب الأفقي للجداول في شاشات الجوال */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  position: relative;
}

@media (max-width: 768px) {
  /* منع تقريب الشاشة التلقائي المزعج في متصفحات الهواتف (iOS Safari / Android Chrome) */
  input[type="text"],
  input[type="password"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* 1. شريط التنقل والهيدر العلوي */
  .navbar-container {
    flex-direction: column;
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
    align-items: stretch;
  }

  .brand {
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .logo-img {
    height: 38px;
    width: auto;
  }

  .brand-title {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  /* روابط وشارات التنقل كشريط حبوب أفقي قابل للسحب السلس */
  .nav-links {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 0;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-link.active {
    background: var(--secondary);
    color: #ffffff;
  }

  /* 2. منطقة الترويسة الرئيسية والبحث */
  .hero {
    padding: 2rem 1rem 3.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.6rem;
    max-width: 100%;
    line-height: 1.4;
  }

  .hero-title {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
    line-height: 1.5;
  }

  /* بطاقة البحث العائمة */
  .search-card-hero {
    margin: -2.25rem 0.75rem 1.5rem;
    padding: 1.15rem 0.85rem;
    border-radius: 12px;
  }

  .search-form {
    flex-direction: column;
    gap: 0.65rem;
  }

  .search-input-group {
    flex: 1 1 auto;
    width: 100%;
  }

  .search-input {
    padding: 0.85rem 2.65rem 0.85rem 0.85rem;
    font-size: 16px;
    min-height: 48px;
    border-radius: 8px;
  }

  .search-input-group i {
    right: 0.85rem;
  }

  .filter-select {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    border-radius: 8px;
  }

  .btn-search {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
  }

  /* 3. شبكة الإحصائيات */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0 0.75rem;
    margin: 1rem auto 1.5rem;
  }

  .stat-card {
    padding: 0.75rem 0.6rem;
    gap: 0.5rem;
    border-radius: 8px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .stat-info h3 {
    font-size: 1.15rem;
  }

  .stat-info p {
    font-size: 0.72rem;
  }

  /* 4. بطاقة نتيجة استعلام الطالب (الإفادة الرسمية) */
  .verification-box {
    padding: 1.25rem 0.85rem;
    border-radius: 12px;
    margin: 0 0.75rem 1.5rem;
  }

  .verification-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
  }

  .verification-title-area h3 {
    font-size: 1.15rem;
  }

  .verification-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .verification-item {
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
  }

  .verification-item .item-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
  }

  .verification-item .item-value {
    font-size: 0.88rem;
    word-break: break-word;
  }

  .verification-decision-panel {
    padding: 0.85rem;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .verification-decision-panel h4 {
    font-size: 0.95rem;
  }

  .verification-decision-panel p {
    font-size: 0.85rem;
  }

  .verification-footer-actions {
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1rem;
  }

  .verification-footer-actions .btn-print,
  .verification-footer-actions .btn-action,
  .verification-footer-actions a {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    border-radius: 8px;
  }

  /* 5. شبكة وبطاقات القرارات */
  .decisions-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0 0.75rem;
    margin-bottom: 1.75rem;
  }

  .decision-card {
    padding: 1.1rem 0.85rem;
    border-radius: 10px;
  }

  .decision-card-title {
    font-size: 1.05rem;
  }

  .decision-card a.btn-action {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
  }

  /* 6. الجداول وتلميح السحب الأفقي */
  .table-responsive::after {
    content: '⟵ اسحب أفقياً لعرض كامل بيانات الجدول ⟶';
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    background: #F8FAFC;
    border-top: 1px dashed var(--border);
  }

  .custom-table th,
  .custom-table td {
    padding: 0.65rem 0.6rem;
    font-size: 0.82rem;
  }

  /* 7. لوحة التحكم والتبويبات في الجوال */
  .main-container {
    padding: 0 0.75rem;
    margin-top: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .admin-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    scrollbar-width: none;
    margin-bottom: 1.2rem;
    padding-bottom: 4px;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .sub-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
  }

  .sub-tabs::-webkit-scrollbar {
    display: none;
  }

  .sub-tabs .tab-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.85rem !important;
  }

  /* النماذج والإدخال في الجوال */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-control {
    min-height: 46px;
    border-radius: 8px;
  }

  .btn-submit {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
  }

  .data-card {
    border-radius: 10px;
    margin-bottom: 1.5rem;
  }

  /* 8. النوافذ المنبثقة (Modals) في الجوال */
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-box {
    width: 100%;
    max-height: 94vh;
    border-radius: 12px;
  }

  .modal-header {
    padding: 0.85rem 1rem;
  }

  .modal-header h3 {
    font-size: 1rem;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .modal-body {
    padding: 1rem 0.75rem;
  }

  .modal-box form > div:last-child {
    flex-direction: column-reverse;
    gap: 0.5rem !important;
  }

  .modal-box form > div:last-child button {
    width: 100% !important;
    min-height: 46px;
    justify-content: center;
  }

  /* 9. صندوق تسجيل الدخول */
  .login-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .login-card {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }

  .login-logo {
    height: 50px;
  }

  .login-title {
    font-size: 1.25rem;
  }

  /* 10. الفوتر في الجوال */
  .footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* الشاشات بالغة الصغر (أقل من 420px) */
@media (max-width: 420px) {
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .brand-title {
    font-size: 0.95rem;
  }
}

