/* ===== Car Management System ===== */

/* ----- Fonts ----- */
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/tajawal-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/tajawal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/tajawal-500-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/tajawal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/tajawal-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/tajawal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ----- Design tokens ----- */
:root {
  --accent-base: #1f3a5f;
  --accent-hover: #16293f;
  --accent-soft: #dde6f3;

  --bg-canvas: #e3e8f0;
  --bg-surface: #ffffff;
  --bg-surface-alt: #eef1f7;

  --text-primary: #111823;
  --text-secondary: #4e5a6b;
  --text-muted: #7d8899;
  --text-on-accent: #ffffff;

  --border-subtle: #d3dae5;
  --border-strong: #a9b4c6;

  --status-ok-text: #176b41;
  --status-ok-bg: #dff0e7;
  --status-warn-text: #8a5a00;
  --status-warn-bg: #faeed4;
  --status-late-text: #a8231c;
  --status-late-bg: #fae5e3;

  --shell-bg: #16293f;
  --shell-active-bg: #26405f;
  --shell-text: #9fb0c9;
  --shell-text-active: #ffffff;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-dialog: 20px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 14px;
  --space-7: 16px;
  --space-8: 18px;
  --space-9: 20px;
  --space-10: 24px;
  --space-12: 32px;

  --font-family: "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;

  --sidebar-width: 248px;
  --focus-ring: 0 0 0 3px rgba(31, 58, 95, 0.28);
  --focus-color: var(--accent-base);

  --danger-hover: #8a1c16;

  --overlay: rgba(13, 18, 31, 0.5);
  --shadow-dialog: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* ----- Reset / base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: var(--space-3) var(--space-7);
  border-radius: var(--radius-md);
  background: var(--accent-base);
  color: var(--text-on-accent);
  font-weight: var(--font-medium);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

main[tabindex="-1"]:focus {
  outline: none;
}

/* ----- Typography helpers ----- */
.t-display {
  font-size: 30px;
  line-height: 40px;
  font-weight: var(--font-bold);
}
.t-title-lg {
  font-size: 26px;
  line-height: 34px;
  font-weight: var(--font-bold);
}
.t-title {
  font-size: 20px;
  line-height: 30px;
  font-weight: var(--font-bold);
}
.t-section {
  font-size: 17px;
  line-height: 27px;
  font-weight: var(--font-medium);
}
.t-body {
  font-size: 16px;
  line-height: 26px;
}
.t-body-sm {
  font-size: 15px;
  line-height: 25px;
}
.t-label {
  font-size: 14px;
  line-height: 24px;
  font-weight: var(--font-medium);
}
.t-meta {
  font-size: 13px;
  line-height: 23px;
}
.t-caption {
  font-size: 12px;
  line-height: 22px;
}

.text-secondary {
  color: var(--text-secondary);
}
.text-muted {
  color: var(--text-muted);
}
.text-accent {
  color: var(--accent-base);
}

/* ----- Language (docs/i18n.md) ----- */
.i18n-pending body {
  visibility: hidden;
}
