:root {
  --font-main: 'Noto Sans Arabic', 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  --font-nav: 'Droid Arabic Naskh', 'Noto Naskh Arabic', 'Noto Sans Arabic', serif;
  --font-serif: 'Droid Arabic Naskh', 'Noto Naskh Arabic', 'Amiri', serif;
  --font-num: 'DM Sans', 'Noto Sans Arabic', sans-serif;
  --nav-bg: #ffffff;
  --nav-text: #304254;
  --nav-active: #0b6e67;
  --theme-primary: #0b6e67;
  --theme-secondary: #0a2342;
  --theme-gold: #d4af37;
  --theme-page-bg: #f1f5f9;
  --theme-selection-bg: #0b6e67;
  --theme-selection-text: #ffffff;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

::selection {
  background-color: var(--theme-selection-bg, #0b6e67);
  color: var(--theme-selection-text, #ffffff);
}

::-moz-selection {
  background-color: var(--theme-selection-bg, #0b6e67);
  color: var(--theme-selection-text, #ffffff);
}

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

html, body {
  font-family: var(--font-main);
  background-color: var(--theme-page-bg, #f1f5f9);
  color: #1e293b;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea {
  font-family: inherit;
}

/* =========================================================
   الشريط العلوي (Canva Website Header + Global Bar)
   ========================================================= */
.canva-top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
}

.navbar-brand-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 24px;
  background: var(--header-grad, linear-gradient(90deg, #072f25 0%, #0d4b3c 52%, #152b3d 100%));
  color: #ffffff;
  font-size: 13px;
  gap: 12px;
  flex-wrap: wrap;
}

.moe-mini-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.moe-dots {
  color: #e5c57d;
  font-size: 16px;
  letter-spacing: 2px;
}

.brand-title {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.global-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-action-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.top-action-btn.theme-studio-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(212, 175, 55, 0.28));
  border-color: rgba(253, 230, 138, 0.65);
  color: #fef08a;
  font-weight: 800;
}

.top-action-btn.print-btn {
  background: #e5c57d;
  color: #0a2342;
  border-color: #e5c57d;
}

.top-action-btn.print-btn:hover {
  background: #f3d68e;
}

.canva-nav-bar-wrapper {
  position: relative;
  background: #ffffff;
}

.canva-nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: #ffffff;
}

.canva-nav-tabs::-webkit-scrollbar {
  height: 4px;
}

.canva-nav-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.canva-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #304254;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.canva-tab-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 24%;
  height: 52%;
  width: 1px;
  background: #e2e8f0;
}

.canva-tab-btn:hover {
  background: #f8fafc;
  color: var(--theme-primary, #0b6e67);
}

.canva-tab-btn.active {
  background: var(--theme-primary, #0d3b2e);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(13, 59, 46, 0.22);
}

.canva-tab-btn.active::after {
  display: none;
}

.canva-tab-btn .tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 800;
  background: rgba(48, 66, 84, 0.08);
  color: inherit;
}

.canva-tab-btn.active .tab-num {
  background: var(--theme-gold, #e5c57d);
  color: #0a2342;
  font-weight: 900;
}

/* =========================================================
   1. صفحة الغلاف (Exact Canva Cover Replication + Live Hub)
   ========================================================= */
.cover-page-wrapper {
  min-height: calc(100vh - 95px);
  background: #ebe5dc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 24px;
}

.cover-hero-stage {
  position: relative;
  width: 100%;
  max-width: 1366px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background-color: #f3eee6;
  background-image: url('../assets/cover_bg.png');
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(229, 197, 125, 0.55);
}

/* النصوص المتمركزة داخل القوس الذهبي بنفس إحداثيات وألوان وخط موقع Canva الأصلي (Droid Arabic Naskh) */
.cover-arch-overlay {
  position: absolute;
  top: 23%;
  left: 33%;
  width: 39%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 18px 22px;
  z-index: 5;
}

.cover-package-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 56, 39, 0.09);
  border: 1px solid rgba(5, 56, 39, 0.22);
  color: #053827;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 800;
}

.cover-school-title {
  font-family: 'Droid Arabic Naskh', 'Noto Naskh Arabic', serif;
  color: #053827;
  font-size: clamp(20px, 2.7vw, 40px);
  font-weight: 700;
  line-height: 1.38;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 4px 14px;
  border-radius: 12px;
  transition: background 0.2s;
}

.cover-school-title:hover,
.cover-principal-title:hover {
  background: rgba(255, 255, 255, 0.65);
  outline: 1px dashed #bd8a2b;
}

.cover-principal-title {
  font-family: 'Droid Arabic Naskh', 'Noto Naskh Arabic', serif;
  color: #661414;
  font-size: clamp(16px, 2vw, 29.33px);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 4px 14px;
  border-radius: 12px;
  transition: background 0.2s;
}

.cover-meta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cover-meta-chip {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(189, 138, 43, 0.4);
  color: #334155;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: clamp(11px, 0.95vw, 13.5px);
  font-weight: 700;
}

.cover-edit-hint {
  font-size: 11.5px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.75);
  padding: 3px 12px;
  border-radius: 999px;
}

/* دليل اللوحات السريع أسفل الغلاف */
.cover-quick-hub {
  width: 100%;
  max-width: 1366px;
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.cover-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.cover-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: right;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
  border-color: var(--card-accent, #0b7b7d);
  background: #ffffff;
}

.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  background: var(--card-accent, #0b7b7d);
}

.hub-card-count {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}

.hub-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.hub-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* =========================================================
   الهيكل المشترك للوحات الـ 11 (Sidebar + Main Area Layouts)
   ========================================================= */
.dashboard-shell {
  min-height: calc(100vh - 95px);
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--page-bg, #eef2f4);
  color: var(--text-main, #152b3d);
}

.dashboard-shell.no-sidebar {
  grid-template-columns: 1fr;
}

.dash-sidebar {
  background: var(--sidebar-bg, #0d2b45);
  color: var(--sidebar-text, #ffffff);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-box {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--kicker-color, #e5c57d);
  margin-bottom: 4px;
}

.sidebar-org-name {
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
}

.sidebar-org-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.sidebar-school-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
}

.sidebar-school-card .leader-lbl {
  font-size: 11.5px;
  color: var(--kicker-color, #f6c967);
  font-weight: 700;
}

.sidebar-school-card .leader-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: right;
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-nav-btn.active {
  background: var(--primary-accent, #0b7b7d);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.sidebar-nav-badge {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.sidebar-footer-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.sidebar-footer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--kicker-color, #e5c57d);
  margin-bottom: 4px;
}

.sidebar-footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* منطقة المحتوى الداخلي للوحة */
.dash-main {
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}

/* الشريط العلوي داخل اللوحة */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  flex-wrap: wrap;
  gap: 16px;
}

.dash-breadcrumb {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-accent, #0b7b7d);
  margin-bottom: 4px;
}

.dash-page-title {
  font-size: 23px;
  font-weight: 900;
  color: var(--heading-color, #152b3d);
}

.dash-page-subtitle {
  font-size: 13.5px;
  color: #647586;
  margin-top: 2px;
}

.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e7f5f2;
  color: #0b6e67;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.date-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #647586;
  font-weight: 700;
}

/* الأزرار القياسية */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-primary {
  background: var(--primary-accent, #0b7b7d);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 123, 125, 0.22);
}

.btn-navy {
  background: #0a2342;
  color: #ffffff;
}

.btn-secondary {
  background: #f1f5f9;
  color: #0d2b45;
  border-color: #cbd5e1;
}

.btn-gold {
  background: #d7742a;
  color: #ffffff;
}

.btn-danger {
  background: #fff0ed;
  color: #ad3b2f;
  border-color: #f5c2c7;
}

.btn-danger-solid {
  background: #be4b3d;
  color: #ffffff;
}

.btn-whatsapp {
  background: #11998e;
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* بطاقات المؤشرات السريعة (KPI Cards) */
.kpi-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: -8px;
  flex-wrap: wrap;
  gap: 8px;
}

.kpi-section-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--heading-color, #152b3d);
}

.kpi-section-sub {
  font-size: 13.5px;
  color: #647586;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-right: 5px solid var(--kpi-color, var(--primary-accent, #0b7b7d));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s;
}

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

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #647586;
}

.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(11, 123, 125, 0.1);
  color: var(--kpi-color, var(--primary-accent, #0b7b7d));
}

.kpi-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--heading-color, #152b3d);
  line-height: 1.1;
}

.kpi-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

/* البطاقات واللوحات البيضاء */
.panel-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-kicker {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--kicker-color, #bd8a2b);
  margin-bottom: 2px;
}

.panel-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--heading-color, #152b3d);
}

.panel-subtitle {
  font-size: 13.5px;
  color: #647586;
  margin-top: 2px;
}

/* أشرطة البحث والفلترة */
.filters-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334c5d;
}

.form-control {
  width: 100%;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-accent, #0b7b7d);
  box-shadow: 0 0 0 3px rgba(11, 123, 125, 0.14);
}

/* الجداول الاحترافية */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 13.5px;
}

.data-table th {
  background: #f8fafc;
  color: #53616d;
  font-weight: 800;
  font-size: 13.5px;
  padding: 13px 14px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  text-align: right;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* شارات الحالة والأولوية (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-purple  { background: #f3e8ff; color: #6b21a8; }
.badge-neutral { background: #f1f5f9; color: #475569; }
.badge-gold    { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }

/* أشرطة التقدم (Progress Bars) */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.progress-track {
  flex: 1;
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary-accent, #10b981);
  transition: width 0.4s ease;
}

.progress-pct {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  min-width: 36px;
}

/* الرسوم البيانية والإحصائيات */
.charts-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.charts-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 18px;
}

.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bar-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.donut-chart-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.donut-ring {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.donut-hole {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

.donut-hole .big-num {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.donut-hole .small-lbl {
  font-size: 12px;
  color: #667085;
  margin-top: 3px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

/* البطاقات الشبكية (اللجان، SWOT، التقويم الذاتي) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.entity-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s;
}

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

/* النوافذ المنبثقة (Modals) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.22s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  background: var(--modal-header-bg, #0d2b45);
  color: #ffffff;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #e5c57d;
  margin-bottom: 2px;
}

.modal-title {
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 800;
  color: #334c5d;
}

.modal-footer {
  padding: 16px 26px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* مصفوفة SWOT لتحليل الواقع */
.swot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.swot-box {
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  border-top: 6px solid var(--swot-color, #10b981);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
}

/* الإشعارات الفورية (Toast) */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border-right: 4px solid #10b981;
  animation: modalPop 0.2s ease-out;
}

/* =========================================================
/* =========================================================
   نظام الطباعة والفورمات الرسمية الوزارية الفاخرة (@media print & Official Forms)
   ========================================================= */
.only-print {
  display: none !important;
}

/* الإطار العام للوثيقة الرسمية الفاخرة */
.official-print-frame {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border: 3px double #0d3b2e;
  border-radius: 8px;
  padding: 22px 26px;
  box-sizing: border-box;
  font-family: var(--font-main, 'Noto Sans Arabic', sans-serif);
  line-height: 1.6;
  overflow: hidden;
}

/* إطار زخرفي داخلي رفيع */
.official-print-frame::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border: 1px solid rgba(13, 59, 46, 0.25);
  border-radius: 5px;
  pointer-events: none;
}

/* العلامة المائية الرسمية بالخلفية */
.official-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.038;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الترويسة الوزارية الرسمية الموحدة */
.official-letterhead {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid #0d3b2e;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.gov-hierarchy {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gov-line-main {
  font-family: var(--font-heading, 'Amiri', serif);
  font-size: 15px;
  font-weight: 800;
  color: #0d3b2e;
}

.gov-line-sub {
  font-size: 14px;
  font-weight: 800;
  color: #0d3b2e;
}

.gov-line-dept {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.gov-line-school {
  font-size: 14px;
  font-weight: 900;
  color: #0b6e67;
  margin-top: 2px;
}

.letterhead-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.official-emblem-box {
  margin-bottom: 2px;
}

.official-doc-badge {
  display: inline-block;
  padding: 3px 14px;
  background: #0d3b2e;
  color: #fef08a;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.official-doc-title {
  font-family: var(--font-heading, 'Amiri', serif);
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
  margin: 3px 0 0;
  line-height: 1.25;
}

.official-doc-sub {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.doc-admin-meta {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.meta-row span {
  color: #64748b;
  font-weight: 600;
}

.meta-row strong {
  color: #0f172a;
  font-weight: 800;
}

/* شبكة البيانات الإدارية المجدولة */
.official-meta-box {
  position: relative;
  z-index: 1;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.official-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 16px;
}

.meta-grid-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.meta-grid-label {
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}

.meta-grid-value {
  color: #0f172a;
  font-weight: 600;
}

/* المحتوى الأساسي والبيانات التفصيلية للوثيقة */
.official-doc-body {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

/* جداول النماذج الرسمية */
.official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 12px 0;
  background: #ffffff;
}

.official-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 900;
  border: 1.5px solid #94a3b8;
  padding: 8px 10px;
  text-align: right;
}

.official-table td {
  border: 1px solid #cbd5e1;
  padding: 7px 10px;
  color: #1e293b;
  text-align: right;
}

.official-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}

/* صندوق التوجيهات والتوصيات */
.official-decision-box {
  position: relative;
  z-index: 1;
  border: 1.5px solid #0b6e67;
  border-right: 6px solid #0b6e67;
  background: #f0fdfa;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.decision-box-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 6px;
}

.decision-box-content {
  font-size: 12.5px;
  color: #134e4a;
  line-height: 1.7;
  white-space: pre-line;
}

/* تذييل الاعتماد والتوقيعات الرسمية والأختام */
.official-signatures-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto;
  align-items: center;
  gap: 16px;
  border-top: 2px solid #0d3b2e;
  padding-top: 16px;
  margin-top: 20px;
}

.official-sig-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sig-role {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.sig-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0b6e67;
  min-height: 20px;
}

.sig-line {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 14px;
}

/* ختم المدرسة الرسمي المعتمد */
.official-stamp-seal {
  position: relative;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 2px dashed #0b6e67;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  transform: rotate(-5deg);
  background: rgba(11, 110, 103, 0.03);
}

.stamp-outer-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid #0b6e67;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.stamp-inner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dotted #0b6e67;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px;
}

.stamp-top-text {
  font-size: 7.5px;
  font-weight: 800;
  color: #0b6e67;
  line-height: 1;
}

.stamp-center-box {
  margin: 2px 0;
}

.stamp-stars {
  font-size: 7px;
  color: #d97706;
  line-height: 1;
}

.stamp-school-name {
  font-size: 8px;
  font-weight: 900;
  color: #0a2342;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stamp-title {
  font-size: 6.5px;
  font-weight: 700;
  color: #0b6e67;
}

.stamp-bottom-text {
  font-size: 6.5px;
  font-weight: 800;
  color: #0b6e67;
  line-height: 1;
}

/* شريط الأمان والباركود السفلي */
.official-security-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px dashed #cbd5e1;
  margin-top: 16px;
  padding-top: 8px;
  font-size: 10.5px;
  color: #64748b;
}

.security-barcode {
  display: flex;
  align-items: center;
  gap: 8px;
}

.barcode-lines {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: -2px;
  color: #0f172a;
  font-weight: 900;
}

.barcode-text {
  font-weight: 700;
}

/* شهادات الشكر والتقدير الملكية الفاخرة */
.official-print-frame.certificate-mode {
  border: 6px double #bd8a2b;
  background: #fffdfa;
  padding: 34px 38px;
  text-align: center;
}

.cert-header {
  margin-bottom: 24px;
}

.cert-gov-line {
  font-family: var(--font-heading, 'Amiri', serif);
  font-size: 16px;
  font-weight: 800;
  color: #064e3b;
}

.cert-dept-line {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  margin-top: 3px;
}

.cert-emblem-wrap {
  margin: 10px auto;
}

.cert-body {
  margin: 20px 0;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px solid #e2e8f0;
}

.cert-sig-box {
  text-align: center;
  font-size: 14px;
}

/* قواعد الطباعة الفعلية (@media print) لجميع المتصفحات والطابعات */
@page {
  size: A4 portrait;
  margin: 10mm 12mm 12mm 12mm;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* إخفاء عناصر التحكم والأزرار والملاحة أثناء الطباعة */
  .no-print,
  .canva-header,
  .canva-divided-dropdown,
  .canva-dropdown-backdrop,
  .modal-backdrop,
  .toast-container,
  .quick-theme-bar,
  .filters-bar,
  .section-dividers-wrapper,
  .dash-sidebar,
  .dash-topbar-actions,
  .btn,
  button,
  input,
  select {
    display: none !important;
  }

  /* نمط الطباعة المخصصة للوثائق (customPrintArea) */
  body.printing-custom #appViewport,
  body.printing-custom #printHeader,
  body.printing-custom #printFooter {
    display: none !important;
  }

  body.printing-custom #customPrintArea {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* نمط طباعة اللوحات التفاعلية الحالية */
  body:not(.printing-custom) #printHeader {
    display: block !important;
    margin-bottom: 16px;
  }

  body:not(.printing-custom) #printFooter {
    display: block !important;
    margin-top: 24px;
  }

  body:not(.printing-custom) #appViewport {
    display: block !important;
  }

  .dashboard-shell {
    display: block !important;
    background: #ffffff !important;
  }

  .dash-main {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .panel-card,
  .kpi-card,
  .official-meta-box,
  .official-decision-box,
  .official-signatures-wrap {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  table, tr, td, th {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .dash-main {
    padding: 16px;
  }
  .cover-arch-overlay {
    top: 18%;
    left: 25%;
    width: 50%;
  }
}

/* =========================================================================
   VIP EXECUTIVE EDITION UPGRADES (HOSTINGER CLOUD + EXECUTIVE COMMAND CENTER)
   ========================================================================= */
.moe-crown {
  display: inline-block;
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(201, 162, 77, 0.5));
}

.brand-live-clock {
  font-size: 11px;
  color: #e6c56f;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.vip-quick-search-wrap {
  position: relative;
  width: 240px;
}

.vip-quick-search-input {
  width: 100%;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.vip-quick-search-input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.vip-quick-search-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.vip-search-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 360px;
  max-height: 380px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
  z-index: 3000;
  padding: 8px;
  display: none;
}

.vip-search-dropdown.active {
  display: block;
}

.vip-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.vip-search-item:last-child {
  border-bottom: none;
}

.vip-search-item:hover {
  background: #f0fdf4;
}

.vip-search-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.vip-search-item-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.vip-search-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e3a5f;
  white-space: nowrap;
}

.sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.sync-status-badge.cloud-synced {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.55);
  color: #fde68a;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

.sync-status-badge.cloud-synced .pulse-dot {
  background: #fbbf24;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.vip-gold-btn {
  background: linear-gradient(135deg, #d4af37, #b58922) !important;
  border-color: #f3d266 !important;
  color: #091e18 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.vip-gold-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
}

/* Executive Command Center on Cover Page */
.exec-command-center {
  max-width: 1400px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

@media (max-width: 1080px) {
  .exec-command-center {
    grid-template-columns: 1fr;
  }
  .vip-quick-search-wrap {
    width: 170px;
  }
}

.readiness-gauge-card {
  background: linear-gradient(155deg, #072f25 0%, #0d4a3a 60%, #10375c 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 18px 40px rgba(7, 47, 37, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.readiness-gauge-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #e6c56f;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.readiness-gauge-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}

.readiness-ring-wrap {
  position: relative;
  width: 155px;
  height: 155px;
  margin: 4px auto 14px;
}

.readiness-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.readiness-ring-val {
  font-size: 34px;
  font-weight: 900;
  color: #fde68a;
  line-height: 1;
}

.readiness-ring-lbl {
  font-size: 12px;
  font-weight: 800;
  color: #a7f3d0;
  margin-top: 4px;
}

.readiness-mini-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.readiness-mini-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: right;
}

.readiness-mini-box span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.readiness-mini-box strong {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
}

.priority-radar-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid #d5e6df;
  box-shadow: 0 14px 36px rgba(10, 46, 36, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.priority-radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f6;
}

.priority-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.radar-alert-box {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radar-alert-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.radar-alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
}

.radar-alert-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.radar-alert-sub {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.exec-quick-actions-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-card-progress {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.hub-card-progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 5px;
}

/* =========================================================================
   CANVA DIVIDED MOBILE DROPDOWN MENU & RESPONSIVE NAVIGATION
   ========================================================================= */
.canva-mobile-nav-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  gap: 10px;
}

.canva-hamburger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--theme-primary, #0b6e67);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-nav);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 110, 103, 0.2);
  transition: all 0.2s ease;
}

.canva-hamburger-btn:hover {
  filter: brightness(1.08);
}

.hamburger-icon {
  font-size: 16px;
  line-height: 1;
}

.canva-mobile-active-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.mobile-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-primary, #0b6e67);
}

.canva-mobile-theme-btn {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

/* =========================================================================
   CANVA DIVIDED MEGA-DROPDOWN MENU (VIP EXECUTIVE EDITION)
   ========================================================================= */
.canva-dropdown-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2400;
  transition: opacity 0.2s ease;
}

.canva-dropdown-backdrop.active {
  display: block;
}

.canva-divided-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: #ffffff;
  border-bottom: 3px solid var(--theme-primary, #0b6e67);
  box-shadow: 0 24px 60px rgba(10, 46, 36, 0.22);
  z-index: 2500;
  max-height: 84vh;
  overflow-y: auto;
  animation: slideDownMenu 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.canva-divided-dropdown.open {
  display: block;
}

.divided-dropdown-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px 20px;
}

/* شريط رأس القائمة والتاريخ والساعة وسرعة الوصول */
.divided-dropdown-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 12px;
}

.divided-header-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.divided-header-title-text {
  font-family: var(--font-heading, 'Amiri', serif);
  font-size: 17px;
  font-weight: 800;
  color: var(--heading-color, #152b3d);
}

.divided-header-meta-pill {
  font-size: 11px;
  font-weight: 800;
  background: rgba(11, 110, 103, 0.1);
  color: var(--theme-primary, #0b6e67);
  padding: 4px 10px;
  border-radius: 999px;
}

.divided-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.divided-close-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
}

.divided-close-btn:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* شريط البحث والتصفية السريعة داخل القائمة */
.divided-search-and-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.divided-menu-search-wrap {
  position: relative;
  width: 100%;
}

.divided-menu-search-input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 40px 0 16px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.divided-menu-search-input:focus {
  border-color: var(--theme-primary, #0b6e67);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 110, 103, 0.14);
}

.divided-search-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.divided-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.divided-category-pill {
  white-space: nowrap;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.divided-category-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.divided-category-pill.active {
  background: var(--theme-primary, #0b6e67);
  border-color: var(--theme-primary, #0b6e67);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(11, 110, 103, 0.2);
}

/* أقسام المجالات الأربعة المنظمة بفواصل أنيقة */
.divided-domains-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
}

.divided-domain-card {
  background: #fbfcfd;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  border-top: 4px solid var(--dom-accent, #0b6e67);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.divided-domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.divided-domain-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, 'Amiri', serif);
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
}

.divided-domain-count {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

.divided-domain-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.divided-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  color: #1e293b;
  font-family: var(--font-nav, 'Cairo', sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: all 0.18s ease;
}

.divided-nav-item:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  transform: translateX(-3px);
  color: var(--theme-primary, #0b6e67);
}

.divided-nav-item.active {
  background: rgba(11, 110, 103, 0.09);
  color: var(--theme-primary, #0b6e67);
  border: 1.5px solid var(--theme-primary, #0b6e67);
  box-shadow: 0 4px 12px rgba(11, 110, 103, 0.12);
}

.divided-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.divided-nav-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.divided-nav-item.active .divided-nav-num {
  background: var(--theme-primary, #0b6e67);
  color: #ffffff;
}

.divided-nav-icon {
  font-size: 17px;
}

.divided-nav-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.divided-nav-main-title {
  font-size: 13.5px;
  font-weight: 800;
  color: inherit;
}

.divided-nav-sub-desc {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.divided-nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.divided-nav-badge {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.divided-nav-item.active .divided-nav-badge {
  background: var(--theme-gold, #e5c57d);
  color: #0a2342;
  font-weight: 800;
}

/* شريط الأدوات السريعة أسفل الفهرس */
.divided-dropdown-footer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1.5px solid #e2e8f0;
}

.dropdown-quick-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dropdown-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.dropdown-tool-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* عند تصغير الموقع أو العرض من الجوال والآيباد تتحول التبويبات تلقائياً إلى القائمة المنسدلة بفواصل */
@media (max-width: 1180px) {
  .canva-nav-tabs {
    display: none !important;
  }
  .canva-mobile-nav-header {
    display: flex !important;
  }
}

@media (max-width: 860px) {
  .desktop-only-btn,
  .desktop-only-badge,
  .desktop-only-clock {
    display: none !important;
  }
  .navbar-brand-area {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  .vip-quick-search-wrap {
    width: 160px !important;
  }
  .vip-quick-search-input {
    height: 32px !important;
    font-size: 11.5px !important;
    padding: 0 10px !important;
  }
  .brand-title {
    font-size: 13.5px !important;
  }
  .top-action-btn.vip-gold-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
}

/* =========================================================================
   ENHANCED KPI CARDS, CHARTS & COLOR HARMONY
   ========================================================================= */
.kpi-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-right: 5px solid var(--kpi-color, var(--primary-accent, #0b7b7d));
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--kpi-color, var(--primary-accent, #0b7b7d)), transparent);
  opacity: 0.35;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.kpi-value {
  font-family: var(--font-num);
  font-size: 31px;
  font-weight: 900;
  color: var(--heading-color, #152b3d);
  letter-spacing: -0.4px;
  margin: 4px 0 2px;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

/* شريط الألوان السريع داخل اللوحات + استوديو الألوان والثيمات */
.quick-theme-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  margin-bottom: 4px;
}

.quick-theme-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.swatch-dot:hover,
.swatch-dot.active {
  transform: scale(1.22);
  box-shadow: 0 0 0 2px #0f172a;
}

.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.theme-preset-card {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-preset-card:hover,
.theme-preset-card.active {
  border-color: var(--theme-primary, #0b6e67);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.theme-preset-preview {
  height: 36px;
  border-radius: 9px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-preset-preview span {
  flex: 1;
  height: 100%;
}

.theme-preset-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-customizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.color-picker-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.color-picker-box input[type="color"] {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.font-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.font-option-btn {
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  text-align: right;
  transition: all 0.2s;
}

.font-option-btn:hover,
.font-option-btn.active {
  border-color: var(--theme-primary, #0b6e67);
  background: #f0fdf4;
}

/* =========================================================================
   فواصل المحتوى الداخلية وبطاقات المجالات التفاعلية (Internal Dividers & Domain Cards)
   ========================================================================= */
.section-dividers-wrapper {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-dividers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.section-dividers-title {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-dividers-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section-divider-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-divider-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.section-divider-btn.active {
  background: var(--primary-accent, var(--theme-primary, #1e3a5f));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.section-divider-count {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.section-divider-btn.active .section-divider-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* بطاقات فواصل المجالات التفاعلية (Domain Divider Cards) */
.domain-dividers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.domain-divider-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 16px 18px;
  border: 2px solid #e2e8f0;
  border-top: 5px solid var(--dom-color, #1e3a5f);
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.domain-divider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
  border-color: var(--dom-color, #1e3a5f);
}

.domain-divider-card.active {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-color: var(--dom-color, #1e3a5f);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.domain-divider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.domain-divider-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.domain-divider-pct {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 900;
  color: var(--dom-color, #1e3a5f);
}

.domain-divider-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.domain-divider-meta {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* فواصل تفصيلية للمجالات والأهداف داخل الخطة */
.domain-showcase-section {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  border-right: 6px solid var(--dom-color, #1e3a5f);
  padding: 20px 22px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  margin-bottom: 16px;
}

.domain-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.domain-program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.domain-program-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

.domain-program-card:hover {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}



