/* ============================================================================
   Plan One — Main Stylesheet (base from prototype's styles.css)
   كل المتغيرات (var(--brand) إلخ) تأتي من Customizer
   ============================================================================ */

/* ============================================================================
   Plan One — Main Stylesheet (faithful to prototype)
   كل المتغيرات (var(--brand) إلخ) تأتي من Customizer
   ============================================================================ */

/* Plan One — نظام حجز اللوحات الطرقية */


* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { direction: rtl; }

/* numbers / latin */
.num, .latin {
  font-family: 'IBM Plex Mono', 'IBM Plex Sans', system-ui, sans-serif;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

p { margin: 0; }

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

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

/* ─── Layout ─── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ─── Top nav ─── */
/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover { background: var(--ink-700); }
.btn-brand {
  background: var(--brand);
  color: white;
}
.btn-brand:hover { background: var(--brand-600); }
.btn-ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-500); }
.btn-soft {
  background: var(--brand-50);
  color: var(--brand);
}
.btn-soft:hover { background: var(--brand-100); }
.btn-lg { height: 52px; font-size: 16px; padding: 0 28px; border-radius: 999px; }
.btn-sm { height: 36px; font-size: 13px; padding: 0 14px; border-radius: 999px; }
.btn-block { width: 100%; }

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ─── Chips ─── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--line-soft);
  color: var(--ink-700);
  border: 1px solid var(--line);
}
.chip-brand { background: var(--brand-50); color: var(--brand); border-color: transparent; }
.chip-accent { background: var(--accent-50); color: var(--accent-600); border-color: transparent; }
.chip-ok { background: var(--ok-50); color: var(--ok); border-color: transparent; }
.chip-warn { background: var(--warn-50); color: var(--warn); border-color: transparent; }
.chip-danger { background: var(--danger-50); color: var(--danger); border-color: transparent; }
.chip-dark { background: var(--ink); color: white; border-color: transparent; }

/* ─── Tag/Badge Inline ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
}

/* ─── Form ─── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}
.input, .select, .textarea {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.textarea { padding: 12px 14px; height: auto; min-height: 100px; line-height: 1.5; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%234A567A' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

/* ─── Section header ─── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* ─── Misc ─── */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.hidden { display: none !important; }

/* tabular-nums helper */
.tnum { font-variant-numeric: tabular-nums; }

/* hide scrollbar utility */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .9s linear infinite;
}

/* fade in */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .35s ease both; }

