/* ============================================================
   AquaShine Car Wash — Main Stylesheet
   Theme: Light & Clean Professional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---- CSS VARIABLES ---- */
:root {
  /* Palette */
  --primary:       #1a73e8;
  --primary-dark:  #1557b0;
  --primary-light: #e8f0fe;
  --primary-mid:   #4285f4;
  --accent:        #0097a7;
  --accent-light:  #e0f7fa;
  --green:         #1e8e3e;
  --green-light:   #e6f4ea;
  --gold:          #b45309;
  --gold-light:    #fef3c7;
  --red:           #d32f2f;
  --red-light:     #fce8e6;
  --orange:        #e65100;
  --orange-light:  #fff3e0;
  --purple:        #7c3aed;
  --purple-light:  #ede9fe;

  /* Neutrals */
  --bg:            #f8fafc;
  --bg2:           #f1f5f9;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e1;
  --text:          #0f172a;
  --text2:         #475569;
  --text3:         #94a3b8;
  --text4:         #cbd5e1;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md:   0 8px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:   0 20px 40px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);

  /* Typography */
  --font-body:    'Sora', sans-serif;
  --font-ar:      'Tajawal', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --sidebar-w:    256px;
  --topbar-h:     60px;
  --radius:       12px;
  --radius-sm:    7px;
  --radius-lg:    16px;
  --transition:   0.18s ease;
}

[lang="ar"] body { font-family: var(--font-ar); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
  display: flex; flex-direction: column;
  transition: transform var(--transition);
  overflow-y: auto; overflow-x: hidden;
}
[dir="rtl"] .sidebar {
  left: auto; right: 0;
  border-right: none; border-left: 1px solid var(--border);
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 11px;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,115,232,.3);
}
.logo-text { font-weight: 700; font-size: 16px; letter-spacing: -.3px; color: var(--text); }
.logo-text span { color: var(--primary); }
.logo-sub { font-size: 10.5px; color: var(--text3); letter-spacing: .5px; margin-top: 1px; }

.nav-body { flex: 1; padding: 10px 0; overflow-y: auto; }
.nav-section-label {
  padding: 14px 20px 4px;
  font-size: 10px; color: var(--text3);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; width: 100%;
  background: none; border: none; text-align: left;
  font-size: 13.5px; color: var(--text2); font-weight: 400;
  border-radius: 0; transition: all var(--transition);
  position: relative; white-space: nowrap;
}
[dir="rtl"] .nav-link { text-align: right; }
.nav-link:hover { color: var(--text); background: var(--bg2); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-link.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--primary); border-radius: 0 2px 2px 0;
}
[dir="rtl"] .nav-link.active::before { left: auto; right: 0; border-radius: 2px 0 0 2px; }
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; opacity: .8; }
.nav-link.active .nav-icon { opacity: 1; }
.nav-badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
[dir="rtl"] .nav-badge { margin-left: 0; margin-right: auto; }

.sidebar-user {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
  letter-spacing: .5px;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-role { font-size: 11px; color: var(--text3); text-transform: capitalize; }
.logout-btn {
  margin-left: auto; background: none; border: none; color: var(--text3);
  font-size: 16px; cursor: pointer; padding: 4px;
  transition: color var(--transition);
}
[dir="rtl"] .logout-btn { margin-left: 0; margin-right: auto; }
.logout-btn:hover { color: var(--red); }

/* ---- MAIN CONTENT ---- */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-height: 100vh;
}
[dir="rtl"] .main-content { margin-left: 0; margin-right: var(--sidebar-w); }

/* ---- TOPBAR ---- */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px; position: sticky; top: 0; z-index: 100;
}
.menu-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 34px; height: 34px; display: none; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text2); transition: all var(--transition);
}
.menu-toggle:hover { border-color: var(--primary); color: var(--primary); }
.page-title { font-size: 16px; font-weight: 700; flex: 1; color: var(--text); letter-spacing: -.2px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.lang-btn {
  padding: 5px 13px; font-size: 12px; font-weight: 600;
  background: transparent; border: none; color: var(--text3);
  cursor: pointer; transition: all var(--transition); letter-spacing: .3px;
}
.lang-btn.active { background: var(--primary); color: #fff; }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text3); transition: all var(--transition); position: relative;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.notif-dot::after {
  content: ''; position: absolute; top: 5px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  border: 2px solid var(--surface);
}

/* ---- PAGE WRAPPER ---- */
.page-body { padding: 24px 28px; flex: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; border: none;
  cursor: pointer; transition: all var(--transition);
  font-family: inherit; white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(26,115,232,.25);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(26,115,232,.35); }
.btn-outline {
  background: transparent; border: 1px solid var(--border-dark); color: var(--text2);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text3); padding: 8px 10px; }
.btn-ghost:hover { background: var(--bg2); color: var(--text); }
.btn-danger { background: var(--red-light); color: var(--red); border: 1px solid #f5c6c6; }
.btn-danger:hover { background: #fbd8d8; }
.btn-success { background: var(--green-light); color: var(--green); border: 1px solid #c3e6cb; }
.btn-success:hover { background: #d4edda; }
.btn-warning { background: var(--gold-light); color: var(--gold); border: 1px solid #fde68a; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 14px; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  margin-bottom: 14px;
}
.stat-label { font-size: 11.5px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 8px; letter-spacing: -.5px; }
.stat-change { font-size: 12px; display: flex; align-items: center; gap: 5px; color: var(--text3); }
.stat-change .up { color: var(--green); font-weight: 600; }
.stat-change .down { color: var(--red); font-weight: 600; }
.stat-accent-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.section-hdr-left h2 { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.section-hdr-left p { font-size: 12px; color: var(--text3); margin-top: 2px; }
.page-hdr { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.page-hdr h1 { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.page-hdr p { font-size: 12.5px; color: var(--text3); margin-top: 3px; }

/* ============================================================
   CARDS & SURFACES
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-padded { padding: 20px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: -.2px; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }
.table-toolbar {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 12px; flex: 1; min-width: 200px;
  transition: all var(--transition);
}
.search-box:focus-within { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(26,115,232,.08); }
.search-box input {
  background: none; border: none; outline: none; font-family: inherit;
  font-size: 13px; color: var(--text); width: 100%;
}
.search-box input::placeholder { color: var(--text3); }
.search-icon { color: var(--text3); font-size: 14px; flex-shrink: 0; }
.filter-select {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 12px; font-family: inherit; font-size: 13px; color: var(--text2);
  cursor: pointer; outline: none; transition: all var(--transition);
}
.filter-select:focus { border-color: var(--primary); }

table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 14px; text-align: left;
  font-size: 10.5px; color: var(--text3); text-transform: uppercase;
  letter-spacing: 1.2px; font-weight: 700; white-space: nowrap;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
[dir="rtl"] thead th { text-align: right; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg2); }
tbody td { padding: 12px 14px; font-size: 13px; vertical-align: middle; }
[dir="rtl"] tbody td { text-align: right; }

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-green  { background: var(--green-light);   color: var(--green); }
.badge-gold   { background: var(--gold-light);    color: var(--gold); }
.badge-red    { background: var(--red-light);     color: var(--red); }
.badge-orange { background: var(--orange-light);  color: var(--orange); }
.badge-purple { background: var(--purple-light);  color: var(--purple); }
.badge-gray   { background: var(--bg2);           color: var(--text3); border: 1px solid var(--border); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 15px; }
.form-label {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px;
}
.form-control {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 13px;
  font-family: inherit; font-size: 13.5px; color: var(--text);
  outline: none; transition: all var(--transition);
}
.form-control:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(26,115,232,.1); }
.form-control::placeholder { color: var(--text4); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }
[dir="rtl"] .form-actions { justify-content: flex-start; }
.form-section { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(15,23,42,.35); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 540px;
  max-height: 92vh; overflow-y: auto;
  animation: modal-in .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modal-in { from { opacity:0; transform:scale(.95) translateY(10px); } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.modal-close {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text3); cursor: pointer; transition: all var(--transition);
}
.modal-close:hover { background: var(--red-light); color: var(--red); border-color: #f5c6c6; }
.modal-body { padding: 20px 22px; }
.modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}
[dir="rtl"] .modal-footer { justify-content: flex-start; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-area { position: fixed; bottom: 22px; right: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
[dir="rtl"] .toast-area { right: auto; left: 22px; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 320px;
  font-size: 13px; animation: toast-in .28s ease;
}
@keyframes toast-in { from { opacity:0; transform:translateY(8px); } }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--primary); }

/* ============================================================
   UTILITY
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.text-muted { color: var(--text3); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-gold    { color: var(--gold); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 14px; }
.ml-auto { margin-left: auto; }
[dir="rtl"] .ml-auto { margin-left: 0; margin-right: auto; }
.w-full { width: 100%; }

/* Avatar color variants */
.av-blue   { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.av-teal   { background: linear-gradient(135deg, #0097a7, #00bcd4); }
.av-green  { background: linear-gradient(135deg, #2e7d32, #43a047); }
.av-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.av-orange { background: linear-gradient(135deg, #e65100, #fb8c00); }

/* Progress bar */
.progress { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-mid)); transition: width 1s ease; }

/* Info rows */
.info-list { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
[dir="rtl"] .info-row { flex-direction: row-reverse; }
.info-row:last-child { border-bottom: none; }
.info-row:nth-child(odd) { background: var(--bg2); }
.info-key { color: var(--text3); font-weight: 500; }
.info-val { font-weight: 600; color: var(--text); }

/* Chart bars */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 4px 0; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.chart-bar { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--primary-mid), var(--primary)); min-height: 4px; transition: height .6s cubic-bezier(.4,0,.2,1); }
.chart-bar:hover { opacity: .8; }
.chart-label { font-size: 10px; color: var(--text3); white-space: nowrap; }

/* Appointment timeline card */
.appt-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: 8px; transition: box-shadow var(--transition);
}
.appt-row:hover { box-shadow: var(--shadow-sm); }
.appt-time { font-size: 13px; font-weight: 700; color: var(--primary); min-width: 64px; text-align: center; font-family: var(--font-mono); }
.appt-info { flex: 1; }
.appt-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.appt-sub { font-size: 11.5px; color: var(--text3); display: flex; align-items: center; gap: 8px; }
.plate-tag { background: var(--bg2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 4px; font-size: 11px; font-family: var(--font-mono); font-weight: 600; color: var(--text2); }

/* Bay status cards */
.bay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.bay-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; background: var(--surface); transition: all var(--transition);
}
.bay-card:hover { box-shadow: var(--shadow-sm); }
.bay-card.available { border-color: #c3e6cb; background: #f0fdf4; }
.bay-card.in_use    { border-color: #b3d7ff; background: #eff6ff; }
.bay-card.cleaning  { border-color: #fde68a; background: #fffbeb; }
.bay-card.maintenance { border-color: #f5c6c6; background: #fef2f2; }
.bay-icon { font-size: 26px; margin-bottom: 8px; }
.bay-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.bay-sub  { font-size: 11px; color: var(--text3); margin-bottom: 8px; }

/* Service card */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: all var(--transition); position: relative;
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--border-dark); }
.service-emoji { font-size: 26px; margin-bottom: 10px; }
.service-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.service-desc { font-size: 12px; color: var(--text3); margin-bottom: 12px; line-height: 1.5; }
.service-price { font-size: 22px; font-weight: 700; color: var(--primary); font-family: var(--font-mono); }
.service-duration { font-size: 11px; color: var(--text3); margin-top: 2px; }
.service-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

/* Employee card */
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 16px; }
.emp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: all var(--transition);
}
.emp-card:hover { box-shadow: var(--shadow); }
.emp-avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
}
.emp-name { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.emp-role { font-size: 12px; color: var(--text3); margin-bottom: 12px; }
.emp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emp-stat { background: var(--bg2); border-radius: 7px; padding: 8px; }
.emp-stat-val { font-size: 18px; font-weight: 700; color: var(--primary); }
.emp-stat-label { font-size: 10px; color: var(--text3); margin-top: 1px; }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 199; backdrop-filter: blur(2px);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh; background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 40px; width: 100%; max-width: 400px;
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-mark { margin: 0 auto 12px; }
.login-logo h1 { font-size: 20px; font-weight: 700; }
.login-logo p { font-size: 13px; color: var(--text3); margin-top: 4px; }
.login-error { background: var(--red-light); color: var(--red); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0 !important; margin-right: 0 !important; }
  .menu-toggle { display: flex !important; }
  .page-body { padding: 18px 16px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .stats-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .sidebar, .topbar, .topbar-right, .btn, .modal-overlay { display: none !important; }
  .main-content { margin: 0 !important; }
  .page-body { padding: 0; }
}
