/* ===== Rights — أنماط مخصّصة (RTL) ===== */
:root {
  --rights-primary: #1b3a5b;
  --rights-accent: #c9a227;
  --rights-bg: #f4f6f9;
  --rights-sidebar: #16293d;
  --rights-text: #20303f;
}

* { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; }

body {
  background: var(--rights-bg);
  color: var(--rights-text);
  direction: rtl;
}

/* ----- الشريط الجانبي ----- */
.sidebar {
  background: var(--rights-sidebar);
  min-height: 100vh;
  color: #cdd7e2;
  width: 250px;
  position: fixed;
  top: 0; right: 0;
  overflow-y: auto;
  z-index: 1030;
}
.sidebar .brand {
  padding: 1.1rem 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: .5rem;
}
.sidebar .brand .accent { color: var(--rights-accent); }
.sidebar .nav-link {
  color: #cdd7e2;
  padding: .65rem 1.1rem;
  border-radius: 0;
  display: flex; align-items: center; gap: .6rem;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active {
  background: var(--rights-primary);
  color: #fff;
  border-right: 3px solid var(--rights-accent);
}
.sidebar .nav-section {
  padding: .8rem 1.1rem .25rem;
  font-size: .72rem;
  text-transform: uppercase;
  color: #6f8298;
  letter-spacing: .05em;
}

.content-wrap { margin-right: 250px; }
.topbar {
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
  padding: .6rem 1.2rem;
}
.main-content { padding: 1.4rem; }

@media (max-width: 768px) {
  .sidebar { width: 100%; min-height: auto; position: static; }
  .content-wrap { margin-right: 0; }
}

/* ----- بطاقات القضايا ----- */
.case-card {
  border: 1px solid #e3e8ee;
  border-radius: .6rem;
  background: #fff;
  transition: box-shadow .15s, transform .15s;
  height: 100%;
}
.case-card:hover { box-shadow: 0 6px 18px rgba(27,58,91,.12); transform: translateY(-2px); }
.case-card .card-header {
  background: var(--rights-primary);
  color: #fff;
  border-radius: .6rem .6rem 0 0;
  padding: .6rem .9rem;
}
.case-card .case-number { font-family: monospace; font-size: .82rem; opacity: .85; }
.case-card .meta-row { font-size: .85rem; color: #5a6b7b; }
.case-card .meta-row strong { color: var(--rights-text); }

/* ----- شارات ----- */
.badge-soft { font-weight: 600; padding: .35em .6em; }

/* ----- إحصائيات اللوحة ----- */
.stat-card {
  border-radius: .6rem; background: #fff; border: 1px solid #e3e8ee;
  padding: 1rem 1.2rem;
}
.stat-card .num { font-size: 2rem; font-weight: 700; color: var(--rights-primary); }
.stat-card .lbl { color: #6b7a89; font-size: .9rem; }

/* ----- شريط تقدّم المسار ----- */
.pathway-step {
  border-right: 3px solid #dfe5ec;
  padding: .6rem 1rem;
  margin-bottom: .4rem;
  background: #fff;
  border-radius: .35rem;
}
.pathway-step.done { border-right-color: #2e7d32; }
.pathway-step.in_progress { border-right-color: #1b3a5b; }
.pathway-step.delayed { border-right-color: #c0392b; }

/* ----- وضوح القضية ----- */
.clarity-item { border: 1px solid #e3e8ee; border-radius: .5rem; padding: .8rem; background:#fff; }
.clarity-item.complete { border-color: #2e7d32; background: #f3fbf4; }

.ai-note {
  background: #fff8e1; border: 1px dashed var(--rights-accent);
  border-radius: .4rem; padding: .55rem .8rem; font-size: .85rem; color: #6b5800;
}

.text-mono { font-family: monospace; }
a { text-decoration: none; }
