/* ==========================================================================
   Shared Base — Design Tokens & core components for all demo systems.
   كل مشروع يعيد تعريف --brand و --brand-soft (وغيرها) لإعطائه شخصيته.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap");

:root {
  /* Almgrat identity (default) — المشاريع تعيد تعريف --brand حسب القطاع */
  --brand: #4f6ef0;
  --brand-600: #3f5bd8;
  --brand-soft: #eef2fe;
  --accent: #8b5cf6;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #4f6ef0 48%, #8b5cf6 100%);

  --bg: #f6f8fe;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --border: #e5eaf6;
  --text: #101935;
  --text-2: #5f6b87;
  --muted: #a3acc4;
  --navy: #0d142e;

  --success: #10b981; --success-soft: #d1fae5;
  --warning: #d97706; --warning-soft: #fef3c7;
  --danger:  #dc2626; --danger-soft:  #fee2e2;
  --info:    #0284c7; --info-soft:    #e0f2fe;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .10);

  --font: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

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

html, body { margin: 0; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-brand   { background: var(--brand-soft);   color: var(--brand); }

/* Empty state */
.empty-state {
  text-align: center; padding: 56px 24px; color: var(--text-2);
}
.empty-state .empty-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.empty-state h3 { color: var(--text); }
