/* WASL design system — compiled fallback for hosts with low process limits.
   Source of truth for tokens also lives in resources/css/app.css (Vite). */

:root {
  /* Official AL-GEBALY logo colors: #24aae2 (cyan) · #1054a2 (deep blue) */
  --font-sans: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Zain", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  --color-brand-50: #eef7fc;
  --color-brand-100: #d5eef9;
  --color-brand-200: #a8daf2;
  --color-brand-400: #24aae2;
  --color-brand-600: #1054a2;
  --color-brand-700: #0c3f7a;
  --color-brand-950: #051529;
  --color-surface: #f5f8fb;
  --color-surface-elevated: #ffffff;
  --color-ink: #0f1c2e;
  --color-ink-muted: #5a6b7d;
  --color-line: #d9e3ec;
  --color-success: #0f7a4c;
  --color-warning: #b45309;
  --color-danger: #b42318;
  --color-info: #175cd3;
  --shadow-soft: 0 1px 2px rgb(16 84 162 / 0.05), 0 8px 24px rgb(16 84 162 / 0.08);
  --shadow-panel: 0 12px 40px rgb(5 21 41 / 0.1);
  --radius-wasl: 0.875rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--color-brand-600); outline-offset: 2px; }
[x-cloak] { display: none !important; }

.wasl-shell {
  min-height: 100dvh;
  background-color: var(--color-surface);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgb(16 84 162 / 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgb(36 170 226 / 0.12), transparent 50%);
}

.wasl-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-wasl);
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow-soft);
}

.wasl-btn,
.wasl-btn-primary,
.wasl-btn-secondary,
.wasl-btn-ghost,
.wasl-btn-danger {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}
.wasl-btn:disabled,
.wasl-btn-primary:disabled,
.wasl-btn-secondary:disabled,
.wasl-btn-ghost:disabled,
.wasl-btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

.wasl-btn-primary { background: var(--color-brand-600); color: #fff; }
.wasl-btn-primary:hover { background: var(--color-brand-700); }
.wasl-btn-secondary { background: #fff; color: var(--color-ink); border: 1px solid var(--color-line); }
.wasl-btn-secondary:hover { background: var(--color-brand-50); }
.wasl-btn-ghost { background: transparent; color: var(--color-ink-muted); }
.wasl-btn-ghost:hover { background: var(--color-brand-50); color: var(--color-brand-700); }
.wasl-btn-danger { background: var(--color-danger); color: #fff; }

.wasl-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  color: var(--color-ink);
}
.wasl-input:focus {
  border-color: var(--color-brand-600);
  box-shadow: 0 0 0 4px var(--color-brand-100);
  outline: none;
}
.wasl-label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 500; }

.wasl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-brand-50);
  color: var(--color-brand-700);
}

.wasl-nav-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink-muted);
}
.wasl-nav-link:hover { background: var(--color-brand-50); color: var(--color-brand-700); }
.wasl-nav-link-active { background: var(--color-brand-100); color: var(--color-brand-700); }

.wasl-table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-wasl); }
.wasl-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.875rem; }
.wasl-table th {
  text-align: start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-brand-50) 60%, white);
  color: var(--color-ink-muted);
  font-weight: 600;
}
.wasl-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-line);
}

.wasl-skeleton {
  animation: wasl-pulse 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--color-brand-100) 80%, white);
}
@keyframes wasl-pulse { 50% { opacity: 0.55; } }

/* Utility helpers used by Blade templates */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.contents { display: contents; }
.min-h-dvh { min-height: 100dvh; }
.min-h-11 { min-height: 2.75rem; }
.min-h-12 { min-height: 3rem; }
.min-w-0 { min-width: 0; }
.min-w-11 { min-width: 2.75rem; }
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-7 { height: 1.75rem; }
.w-7 { width: 1.75rem; }
.h-14 { height: 3.5rem; }
.w-14 { width: 3.5rem; }
.h-9 { height: 2.25rem; }
.w-9 { width: 2.25rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.h-16 { height: 4rem; }
.w-16 { width: 4rem; }
.h-dvh { height: 100dvh; }
.w-72 { width: 18rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-lg { max-width: 32rem; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.divide-y > * + * { border-top: 1px solid var(--color-line); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--color-line); }
.border-b { border-bottom: 1px solid var(--color-line); }
.border-t { border-top: 1px solid var(--color-line); }
.border-l { border-left: 1px solid var(--color-line); }
.border-dashed { border-style: dashed; }
.border-line { border-color: var(--color-line); }
.border-brand-200 { border-color: var(--color-brand-200); }
.border-brand-300 { border-color: #6bc0e8; }
.bg-white { background: #fff; }
.bg-surface { background: var(--color-surface); }
.bg-surface-elevated { background: var(--color-surface-elevated); }
.bg-brand-50 { background: var(--color-brand-50); }
.bg-brand-50\/50 { background: color-mix(in srgb, var(--color-brand-50) 50%, transparent); }
.bg-brand-50\/60 { background: color-mix(in srgb, var(--color-brand-50) 60%, transparent); }
.bg-brand-100 { background: var(--color-brand-100); }
.bg-brand-600 { background: var(--color-brand-600); }
.bg-brand-950\/40 { background: rgb(6 3 15 / 0.4); }
.bg-brand-950\/45 { background: rgb(6 3 15 / 0.45); }
.bg-amber-50 { background: #fffbeb; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-rose-50 { background: #fff1f2; }
.bg-sky-50 { background: #f0f9ff; }
.bg-surface\/60 { background: color-mix(in srgb, var(--color-surface) 60%, transparent); }
.bg-surface-elevated\/90 { background: color-mix(in srgb, var(--color-surface-elevated) 90%, transparent); }
.bg-surface-elevated\/95 { background: color-mix(in srgb, var(--color-surface-elevated) 95%, transparent); }
.text-ink { color: var(--color-ink); }
.text-ink-muted { color: var(--color-ink-muted); }
.text-brand-600 { color: var(--color-brand-600); }
.text-brand-700 { color: var(--color-brand-700); }
.text-white { color: #fff; }
.text-white\/80 { color: rgb(255 255 255 / 0.8); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-info { color: var(--color-info); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-\[0\.7rem\] { font-size: 0.7rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }
.tracking-wide { letter-spacing: 0.025em; }
.antialiased { -webkit-font-smoothing: antialiased; }
.shadow-sm { box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.shadow-\[var\(--shadow-soft\)\] { box-shadow: var(--shadow-soft); }
.shadow-\[var\(--shadow-panel\)\] { box-shadow: var(--shadow-panel); }
.sticky { position: sticky; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.start-0 { inset-inline-start: 0; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.line-clamp-1, .line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-1 { padding-inline: 0.25rem; }
.px-2 { padding-inline: 0.5rem; }
.px-3 { padding-inline: 0.75rem; }
.px-3\.5 { padding-inline: 0.875rem; }
.px-4 { padding-inline: 1rem; }
.py-0\.5 { padding-block: 0.125rem; }
.py-2 { padding-block: 0.5rem; }
.py-2\.5 { padding-block: 0.625rem; }
.py-3 { padding-block: 0.75rem; }
.py-4 { padding-block: 1rem; }
.py-10 { padding-block: 2.5rem; }
.py-12 { padding-block: 3rem; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pb-20 { padding-bottom: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-inline: auto; }
.last\:mb-0:last-child { margin-bottom: 0; }
.first\:pt-0:first-child { padding-top: 0; }
.last\:pb-0:last-child { padding-bottom: 0; }
.backdrop-blur { backdrop-filter: blur(8px); }
.transition { transition: 0.2s ease; }
.no-underline { text-decoration: none; }
.size-4 { width: 1rem; height: 1rem; }
.rounded-ee-md { border-end-end-radius: 0.375rem; }
.rounded-es-md { border-end-start-radius: 0.375rem; }
.max-w-\[85\%\] { max-width: 85%; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opacity-60 { opacity: 0.6; }

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:px-5 { padding-inline: 1.25rem; }
  .sm\:px-6 { padding-inline: 1.5rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:max-w-\[70\%\] { max-width: 70%; }
  .sm\:items-center { align-items: center; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:flex-col { flex-direction: column; }
  .lg\:pb-0 { padding-bottom: 0; }
  .lg\:px-8 { padding-inline: 2rem; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-\[22rem_1fr\] { grid-template-columns: 22rem 1fr; }
  .lg\:border-b-0 { border-bottom: 0; }
  .lg\:border-l { border-left: 1px solid var(--color-line); }
  .lg\:max-h-\[calc\(100dvh-14rem\)\] { max-height: calc(100dvh - 14rem); }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-\[24rem_1fr\] { grid-template-columns: 24rem 1fr; }
}

.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:border-brand-300:hover { border-color: #6bc0e8; }
.hover\:bg-brand-50:hover { background: var(--color-brand-50); }
.hover\:shadow-\[var\(--shadow-panel\)\]:hover { box-shadow: var(--shadow-panel); }


/* Official brand logo sizing */
.object-contain { object-fit: contain; }
.object-center { object-position: center; }
.max-w-\[2\.25rem\] { max-width: 2.25rem; }
.max-w-\[3rem\] { max-width: 3rem; }
.max-w-\[4rem\] { max-width: 4rem; }
.max-w-\[7rem\] { max-width: 7rem; }
.max-w-\[8\.5rem\] { max-width: 8.5rem; }
.max-w-\[9rem\] { max-width: 9rem; }
.max-w-\[9\.5rem\] { max-width: 9.5rem; }
.max-w-\[11rem\] { max-width: 11rem; }
.max-w-\[13rem\] { max-width: 13rem; }
.max-w-\[14rem\] { max-width: 14rem; }
.max-w-\[16rem\] { max-width: 16rem; }
.h-11 { height: 2.75rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }
.h-28 { height: 7rem; }
.w-auto { width: auto; }
.justify-center { justify-content: center; }
