/* V65 — Shared visual experience layer.
   هدفه توحيد الإحساس البصري في صفحات الطالب/المعلم/المسؤول/المحاسب دون تغيير منطق الصفحات. */
:root{
  --jx-navy:#122951;
  --jx-blue:#355efc;
  --jx-blue-2:#4f83ff;
  --jx-sky:#eaf2ff;
  --jx-surface:#ffffff;
  --jx-line:#dfe7f5;
  --jx-muted:#687a98;
  --jx-shadow:0 14px 34px rgba(18,41,81,.08);
  --jx-shadow-hover:0 18px 38px rgba(33,73,157,.14);
}

/* حركة موحدة وهادئة للعناصر التفاعلية. */
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page,.community-page)
:is(.btn,button,a,.soft-card,.academic-card,.acc-card,.room,.sn-link){
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease,filter .18s ease;
}
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page)
:is(.btn:not(:disabled),button:not(:disabled)):active{transform:translateY(1px)}

/* بطاقات أنظف، عمق بصري بسيط، وحدود موحدة. */
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page)
:is(.soft-card,.academic-card,.acc-card,.project-card,.request-card,.billing-card){
  border-color:var(--jx-line);
  box-shadow:var(--jx-shadow);
}
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page)
:is(.soft-card,.academic-card,.acc-card,.project-card,.request-card,.billing-card):hover{
  border-color:#cfdbf3;
}

/* حقول الإدخال: وضوح أكبر مع تركيز بصري موحد. */
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page,.community-page)
:is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select){
  border-color:#d7e1f1;
}
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page,.community-page)
:is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.form-control,.form-select):focus{
  border-color:#7fa2ff;
  box-shadow:0 0 0 .22rem rgba(53,94,252,.11);
  outline:0;
}

/* أزرار رئيسية بعمق خفيف أقرب لأسلوب الأيقونات ثلاثية الأبعاد. */
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page,.community-page)
.btn-primary{
  border-color:#2b50d1;
  background:linear-gradient(145deg,var(--jx-blue-2),#294fcf);
  box-shadow:0 5px 0 #203fa9,0 10px 20px rgba(38,77,181,.16);
}
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page,.community-page)
.btn-primary:hover{filter:brightness(1.035);transform:translateY(-1px);box-shadow:0 6px 0 #203fa9,0 13px 24px rgba(38,77,181,.2)}

/* أيقونات الهيدر الصغيرة: سطح زجاجي/ثلاثي الأبعاد موحد بدون تغيير مقاسات التخطيط. */
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page)
:is(.student-notification-btn,.teacher-header-alert,.acc-menu-toggle,.staff-header-menu-toggle,.jawda-menu-toggle){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 6px 14px rgba(18,41,81,.1);
}
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page)
:is(.student-notification-btn,.teacher-header-alert):hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 9px 18px rgba(18,41,81,.15)}

/* الأيقونات ثلاثية الأبعاد الفعلية (SVG sprites) تحصل على نفس الظل والرفع. */
:where(.sn-icon,.tw-icon,.jw-head-ico,.pfv-head-title svg,.pfv-title svg,.academic-icon-3d){
  filter:drop-shadow(0 8px 8px rgba(21,61,128,.16));
}
:where(.sn-link,.rw-menu-link,.rw-dashboard-link,.acc-sidebar a):hover :where(.sn-icon,.tw-icon){
  transform:translateY(-2px) rotate(-1deg);
}
.sn-icon,.tw-icon{transition:transform .18s ease,filter .18s ease}

/* Bootstrap icons التي تظهر كأيقونة بطاقة/ملخص فقط، وليس كل أيقونات النصوص. */
:where(.academic-art,.exam-tab-art,.exam-summary-art,.exam-day-art,.exam-time-art,.exam-search-art,.room-icon,.acc-sidebar-head-icon)
.bi{
  filter:drop-shadow(0 2px 0 rgba(255,255,255,.35));
}

/* Hover موحد للروابط الكبيرة في القوائم الجانبية. */
:where(.sn-link,.rw-menu-link,.acc-sidebar a,.responsible-nav-dropdown a,.jawda-nav-tile):hover{
  transform:translateY(-2px);
}

/* تحسين الجداول بدون تغيير بنية البيانات. */
:where(.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page)
.table{--bs-table-bg:transparent;vertical-align:middle}
:where(.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page)
.table thead th{font-weight:800;color:#24467e;background:#eef3fd;border-bottom-color:#dbe5f5}
:where(.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page)
.table tbody tr:hover{background:#f8faff}

/* تحسين الوصول بالكيبورد. */
:where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page,.community-page)
:focus-visible{outline:3px solid #93b2ff;outline-offset:3px}

@media(max-width:767.98px){
  :where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page)
  :is(.soft-card,.academic-card,.acc-card){border-radius:18px}
}
@media(prefers-reduced-motion:reduce){
  :where(.jawda-unified-ui-v25,.teacher-portal-page,.responsible-portal-page,.accountant-portal-page,.academic-page,.community-page) *{transition:none!important}
}

/* لوحات الملخص القديمة: استبدال إحساس الإيموجي بأيقونات SVG ثلاثية الأبعاد موحدة. */
:where(.teacher-portal-page,.responsible-portal-page) .ov-stat-icon{
  display:grid;place-items:center;width:58px;height:58px;margin:0 auto 8px;
}
:where(.teacher-portal-page,.responsible-portal-page) .ov-stat-icon :where(.tw-icon,svg){width:54px;height:54px;filter:drop-shadow(0 8px 8px rgba(21,61,128,.16))}
:where(.teacher-portal-page,.responsible-portal-page) .ov-stat-card:hover .ov-stat-icon :where(.tw-icon,svg){transform:translateY(-3px) rotate(-1deg);filter:drop-shadow(0 11px 10px rgba(21,61,128,.2))}
:where(.teacher-portal-page,.responsible-portal-page) .ov-stat-icon :where(.tw-icon,svg){transition:transform .18s ease,filter .18s ease}
