﻿/* ============================================================
   PROOMNES — Professional Design System v2.0
   Modern, accessible, RTL-ready CSS framework
   ============================================================ */

/* === DESIGN TOKENS (CSS Variables) === */
:root {
  /* Typography Scale */
  --font-ar: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Inter', 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: clamp(2.5rem, 5vw, 3.5rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container: 1200px;
  --container-sm: 800px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
  --duration-slow: 0.4s;

  /* Light Theme (Default) */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-2: #3b82f6;
  --accent: #10b981;
  --accent-hover: #059669;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --overlay: rgba(0, 0, 0, 0.5);
}

/* Dark theme */
body[data-theme="dark"] {
  --bg: #0c1222;
  --bg-alt: #111828;
  --surface: #1e293b;
  --surface-2: #1e293b;
  --surface-3: #273548;
  --border: #334155;
  --border-light: #1e293b;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.12);
  --primary-2: #60a5fa;
  --accent: #34d399;
  --accent-hover: #6ee7b7;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --overlay: rgba(0, 0, 0, 0.7);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  font-family: var(--font-en);
  font-size: var(--font-size-base, var(--text-base));
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--duration-slow) var(--ease), color var(--duration) var(--ease);
}

/* RTL font override */
[dir="rtl"] body, [lang="ar"] body {
  font-family: var(--font-ar);
  letter-spacing: 0;
}
[dir="ltr"] body {
  font-family: var(--font-en);
  letter-spacing: -0.01em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  letter-spacing: 0;
}
h1 { font-size: var(--text-5xl); font-weight: 800; margin-bottom: var(--space-6); }
h2 { font-size: var(--text-4xl); font-weight: 700; margin-bottom: var(--space-5); }
h3 { font-size: var(--text-2xl); font-weight: 600; margin-bottom: var(--space-4); }
h4 { font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--space-3); }

p { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-4); }
.lead { font-size: var(--text-lg); color: var(--muted); line-height: 1.8; max-width: 640px; }

a { color: var(--primary-2); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; color: var(--text); }

/* === UTILITIES === */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; padding-inline: var(--space-4); }
.container-sm { width: min(100% - 2rem, var(--container-sm)); margin-inline: auto; padding-inline: var(--space-4); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-8); }
.mt-3 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0 !important; }
.m-0 { margin: 0 !important; }
.muted { color: var(--muted); }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-3) var(--space-6);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--duration) var(--ease);
}
.skip-link:focus {
  top: var(--space-4);
  color: #fff;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: var(--text-sm);
  font-family: inherit;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-muted {
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-muted:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

/* Button loading state */
.btn.loading {
  color: transparent;
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === HEADER / NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--duration-slow) var(--ease), box-shadow var(--duration) var(--ease);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  transition: transform var(--duration) var(--ease);
}
.navbar-brand:hover img {
  transform: scale(1.05);
}
.navbar-brand .brand-text {
  font-weight: 700;
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.3;
}
.navbar-brand .brand-slogan {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.3;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.5rem 0.875rem !important;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

/* Language switch */
.lang-switch {
  font-weight: 600;
  margin-inline: 2px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  transition: all var(--duration) var(--ease);
}
.lang-switch:hover { color: var(--primary); background: var(--primary-light); }

/* === HERO SECTION === */
.hero {
  padding: var(--space-24) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: var(--text-5xl);
  line-height: 1.2;
  margin-bottom: var(--space-6);
  font-weight: 800;
}
.hero p {
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.8;
  max-width: 540px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}
.hero .visual {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero .visual img {
  border-radius: var(--radius-lg);
  width: 100%;
  transition: opacity var(--duration) var(--ease);
}

/* Hero CTA buttons */
.hero .btn { margin-inline-end: var(--space-3); margin-bottom: var(--space-3); }

@media (max-width: 992px) {
  .hero .inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .visual { max-width: 500px; margin-inline: auto; }
}
@media (max-width: 576px) {
  .hero { padding: var(--space-16) 0 var(--space-10); }
}

/* === SECTIONS === */
.section {
  padding: var(--space-20) 0;
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}
.section .lead {
  margin-bottom: var(--space-12);
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

/* === GRID LAYOUTS === */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-6); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* === CARDS === */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { text-decoration: none; }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all var(--duration) var(--ease);
}
.card:hover .icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text);
}
.card p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.card p:last-child { margin-bottom: 0; }

/* === PRICING === */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  align-items: start;
}
.pricing .plan {
  padding: var(--space-10);
  text-align: center;
  position: relative;
}
.pricing .popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing .popular::before {
  content: attr(data-popular-label);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}
.price {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.price small {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--muted);
}

/* Features list */
.features {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}
.features li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.features li:last-child { border-bottom: none; }

/* === FAQ === */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  background: var(--surface);
  transition: all var(--duration) var(--ease);
}
.faq details + details { margin-top: var(--space-3); }
.faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-base);
}
.faq summary::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--muted);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin-top: var(--space-4);
  color: var(--muted);
  line-height: 1.8;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--primary); font-weight: 500; }

/* === FOOTER === */
.footer {
  margin-top: var(--space-16);
  padding: var(--space-16) 0 var(--space-8);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
}
@media (max-width: 920px) {
  .footer .cols { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 576px) {
  .footer .cols { grid-template-columns: 1fr; }
}
.footer .brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer .brand img {
  height: 40px;
  width: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.footer .name { font-weight: 700; color: var(--text); font-size: var(--text-base); }
.footer .kicker { color: var(--muted); font-size: var(--text-sm); }
.footer h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-4); color: var(--text); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: var(--space-2); }
.footer ul li a {
  color: var(--muted);
  font-size: var(--text-sm);
  transition: color var(--duration) var(--ease);
}
.footer ul li a:hover { color: var(--primary); }
.footer p { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-2); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }
.footer .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer .social-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--muted);
  transition: all var(--duration) var(--ease);
  font-size: var(--text-sm);
}
.footer .social-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.footer .social-links a:hover {
  background: var(--primary);
  color: #fff;
}
.copy {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* === FORMS === */
.form { display: grid; gap: var(--space-5); }
label {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.input, textarea, select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: var(--text-base);
  resize: vertical;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  line-height: 1.5;
}
.input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}
.input::placeholder, textarea::placeholder {
  color: var(--muted-2);
}
small.note { color: var(--muted); display: block; margin-top: var(--space-2); font-size: var(--text-xs); }

/* === TOAST === */
.toast {
  position: fixed;
  inset-inline-start: var(--space-4);
  inset-block-end: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 9999;
  font-size: var(--text-sm);
  max-width: 400px;
}

/* === WORKS / PORTFOLIO === */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}
.work-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}
.work-card h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.work-card p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* === ADMIN LAYOUT === */
.admin-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; position: fixed; z-index: 999; inset: 0; width: 260px; }
}
.admin-sidebar {
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  padding: var(--space-6);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar h3 {
  margin-top: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--duration) var(--ease);
  margin-bottom: 2px;
}
.admin-sidebar a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.admin-content {
  padding: var(--space-8);
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 768px) {
  .admin-content { padding: var(--space-4); }
}

/* Admin table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.table th, .table td {
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
}
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
[dir="ltr"] .table th, [dir="ltr"] .table td { text-align: left; }
.table th {
  background: var(--surface-3);
  font-weight: 600;
  color: var(--text);
}
.table tr:hover td { background: var(--primary-light); }

.status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-block;
}
.status-badge.new { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.status-badge.in_progress { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-badge.done { background: rgba(16, 185, 129, 0.1); color: var(--accent); }

.drag { cursor: grab; }

/* === THEME TOGGLE === */
#themeToggle {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-size: var(--text-base);
  padding: 0;
}
#themeToggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.fade-up:nth-child(1) { transition-delay: 0ms; }
.fade-up:nth-child(2) { transition-delay: 80ms; }
.fade-up:nth-child(3) { transition-delay: 160ms; }
.fade-up:nth-child(4) { transition-delay: 240ms; }
.fade-up:nth-child(5) { transition-delay: 320ms; }
.fade-up:nth-child(6) { transition-delay: 400ms; }
.fade-up:nth-child(7) { transition-delay: 480ms; }
.fade-up:nth-child(8) { transition-delay: 560ms; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--muted);
}
.empty-state .icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

/* === RESPONSIVE FINE-TUNING === */
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .section { padding: var(--space-12) 0; }
  h2 { font-size: var(--text-2xl); }
}

/* === PRINT === */
@media print {
  .navbar, .footer, .toast, #themeToggle { display: none; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}
.pagination-info {
  font-weight: 600;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* === BREADCRUMBS (legacy) === */
.breadcrumbs {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.breadcrumbs a { color: var(--primary); }

/* === LEAD (text utility) === */
.lead {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.7;
}
