/* ألوان منصة أصل الموحدة: مصدر واحد للمنصة والتقييم وبوابة الموظفين.
   الأسماء دلالية (نص، سطح، إجراء...) لا لونية، فيتبدل الفاتح والداكن وهوية الشركة دون لمس المكونات.
   النصوص كلها لا تقل عن تباين 4.5:1 على أسطحها، في الوضعين.
   الوضع يُختار من حساب المستخدم ويُكتب على <html data-theme="light|dark">، والشركة على data-company. */

:root {
  color-scheme: light;
  /* الهوية */
  --one-brand: #071949;
  --one-brand-2: #0d2b67;
  --one-brand-3: #133775;
  --one-accent: #29a9e1;
  --one-on-brand: #ffffff;
  --one-on-brand-2: #c8d4ea;
  --one-on-brand-3: #93a6c9;
  --one-sidebar: linear-gradient(180deg, #04102f 0%, #071949 100%);
  --one-hero: linear-gradient(135deg, #0b2d6b 0%, #071949 62%, #061638 100%);

  /* الأسطح */
  --one-bg: #f4f7fb;
  --one-surface: #ffffff;
  --one-surface-2: #f8fafc;
  --one-surface-3: #eef3f8;
  --one-border: #e2e9f1;
  --one-border-strong: #cdd8e5;
  --one-overlay: rgba(4, 16, 47, .45);

  /* النصوص */
  --one-heading: #071949;
  --one-text: #12203a;
  --one-text-2: #4a5872;
  --one-text-3: #5f6c86;

  /* الإجراءات والروابط */
  --one-primary: #12709c;
  --one-primary-hover: #0e5d82;
  --one-primary-soft: #e3f2fa;
  --one-on-primary: #ffffff;
  --one-focus: rgba(41, 169, 225, .35);

  /* تعبئة صلبة بنص أبيض (شارات العدد، الحالة الحالية، الأولوية العاجلة): ثابتة التباين في الوضعين */
  --one-fill: #12709c;
  --one-on-fill: #ffffff;
  --one-ok-fill: #157a4c;
  --one-bad-fill: #bf323b;
  --one-warn-fill: #94590a;

  /* الحالات: لون النص على خلفيته الخفيفة */
  --one-ok: #157a4c;      --one-ok-soft: #e5f6ee;
  --one-warn: #94590a;    --one-warn-soft: #fff2db;
  --one-bad: #bf323b;     --one-bad-soft: #fdecec;
  --one-info: #12709c;    --one-info-soft: #e3f2fa;
  --one-muted: #5f6c82;   --one-muted-soft: #eef2f6;

  /* الرسوم البيانية: سلسلة واحدة بدرجات الهوية */
  --one-chart-1: #12709c;
  --one-chart-2: #29a9e1;
  --one-chart-3: #133775;
  --one-chart-4: #7cc6ea;

  --one-shadow-sm: 0 1px 2px rgba(7, 25, 73, .05), 0 6px 20px rgba(7, 25, 73, .05);
  --one-shadow-lg: 0 18px 50px rgba(7, 25, 73, .18);
  --one-radius-sm: 10px;
  --one-radius-md: 14px;
  --one-radius-lg: 20px;
}

/* هوية يدير: فحمي وتركواز */
:root[data-company="yadir"] {
  --one-brand: #303032;
  --one-brand-2: #3c3c3f;
  --one-brand-3: #515155;
  --one-accent: #00a593;
  --one-sidebar: linear-gradient(180deg, #1f1f21 0%, #303032 100%);
  --one-hero: linear-gradient(135deg, #3c3c3f 0%, #303032 60%, #232325 100%);
  --one-heading: #2a2a2c;
  --one-primary: #00776c;
  --one-primary-hover: #00645b;
  --one-primary-soft: #e2f4f1;
  --one-fill: #00776c;
  --one-info: #00776c;
  --one-info-soft: #e2f4f1;
  --one-chart-1: #00776c;
  --one-chart-2: #00a593;
  --one-chart-3: #3c3c3f;
  --one-chart-4: #7fd3c8;
  --one-focus: rgba(0, 165, 147, .35);
}

/* الوضع الداكن: أزرق ليلي من درجات الهوية نفسها */
:root[data-theme="dark"] {
  color-scheme: dark;
  --one-on-brand-2: #c4cfe4;
  --one-on-brand-3: #8d9fc2;
  --one-sidebar: linear-gradient(180deg, #050a17 0%, #0a1430 100%);
  --one-hero: linear-gradient(135deg, #0f2a5c 0%, #0b1a3d 62%, #081230 100%);

  --one-bg: #0a1122;
  --one-surface: #111a2e;
  --one-surface-2: #0e1628;
  --one-surface-3: #1a2540;
  --one-border: #23324f;
  --one-border-strong: #314469;
  --one-overlay: rgba(2, 6, 16, .62);

  --one-heading: #f1f5fc;
  --one-text: #e4ebf7;
  --one-text-2: #b0bcd2;
  --one-text-3: #8c99b3;

  --one-primary: #4db8ea;
  --one-primary-hover: #73c8f0;
  --one-primary-soft: rgba(77, 184, 234, .15);
  --one-on-primary: #04132a;
  --one-focus: rgba(77, 184, 234, .45);
  --one-fill: #1a7aa8;

  --one-ok: #4fd49e;      --one-ok-soft: rgba(79, 212, 158, .14);
  --one-warn: #f3bd5a;    --one-warn-soft: rgba(243, 189, 90, .14);
  --one-bad: #ff8d95;     --one-bad-soft: rgba(255, 141, 149, .14);
  --one-info: #4db8ea;    --one-info-soft: rgba(77, 184, 234, .15);
  --one-muted: #a3b0c8;   --one-muted-soft: #1c2742;

  --one-chart-1: #4db8ea;
  --one-chart-2: #8fd3f3;
  --one-chart-3: #2f7fb0;
  --one-chart-4: #c2e7f8;

  --one-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
  --one-shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"][data-company="yadir"] {
  --one-sidebar: linear-gradient(180deg, #121213 0%, #1d1d1f 100%);
  --one-hero: linear-gradient(135deg, #2b2b2e 0%, #1f1f21 62%, #161618 100%);
  --one-bg: #111213;
  --one-surface: #1a1b1d;
  --one-surface-2: #161719;
  --one-surface-3: #242528;
  --one-border: #2e3033;
  --one-border-strong: #3d4043;
  --one-primary: #3fcfbe;
  --one-primary-hover: #6edbcd;
  --one-primary-soft: rgba(63, 207, 190, .15);
  --one-on-primary: #04201c;
  --one-fill: #007f73;
  --one-info: #3fcfbe;
  --one-info-soft: rgba(63, 207, 190, .15);
  --one-muted-soft: #26282b;
  --one-chart-1: #3fcfbe;
  --one-chart-2: #8fe3d8;
  --one-chart-3: #2a9b8e;
  --one-chart-4: #c5f0ea;
}
