/* =============================================
   الحسين للمحاسبة - Al-Hussein Accounting
   Professional Barbershop Management CSS v2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --gold-400: #c8a24e;
  --gold-500: #b8942d;
  --gold-600: #a07922;
  --gold-700: #8b6914;
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(200, 162, 78, 0.15);
  --card-bg: rgba(30, 41, 59, 0.6);
  --sidebar-width: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Tajawal', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(200, 162, 78, 0.3); } 50% { box-shadow: 0 0 40px rgba(200, 162, 78, 0.6); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ripple { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(4); opacity: 0; } }
@keyframes slideInFromRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease forwards; }
.animate-slide-down { animation: slideDown 0.4s ease forwards; }
.animate-shake { animation: shake 0.6s ease-in-out; }
/* customer-card-anim moved to bottom for performance override */

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* ===== GLASS MORPHISM ===== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  border-color: rgba(200, 162, 78, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== LOGIN ===== */
.login-container {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative; overflow: hidden;
}
.login-container::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 162, 78, 0.1) 0%, transparent 70%);
  top: -200px; right: -200px; animation: float 8s ease-in-out infinite;
}
.login-container::after {
  content: ''; position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200, 162, 78, 0.05) 0%, transparent 70%);
  bottom: -100px; left: -100px; animation: float 6s ease-in-out infinite reverse;
}
.login-box { width: 420px; max-width: 90vw; animation: fadeInUp 0.8s ease forwards; position: relative; z-index: 10; }
.login-logo {
  width: 110px; height: 110px; margin: 0 auto 24px;
  border-radius: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(200, 162, 78, 0.25);
  animation: pulse-glow 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.login-logo:hover { transform: scale(1.05); }

.login-input {
  width: 100%; padding: 14px 16px;
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px; color: #e2e8f0; font-size: 16px;
  font-family: 'Tajawal', sans-serif;
  transition: all 0.3s ease; outline: none;
}
.login-input:focus { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(200, 162, 78, 0.15); background: rgba(30, 41, 59, 1); }
.login-input::placeholder { color: #64748b; }

.login-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: white; border: none; border-radius: 12px;
  font-size: 17px; font-weight: 700; font-family: 'Tajawal', sans-serif;
  cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200, 162, 78, 0.4); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.lang-toggle {
  font-size: 12px; padding: 6px 14px; border-radius: 8px;
  background: rgba(200, 162, 78, 0.1); border: 1px solid rgba(200, 162, 78, 0.2);
  color: var(--gold-400); cursor: pointer; transition: all 0.2s;
  font-family: 'Tajawal', sans-serif;
}
.lang-toggle:hover { background: rgba(200, 162, 78, 0.2); }

.test-btn {
  font-size: 12px; padding: 6px 14px; border-radius: 8px;
  cursor: pointer; transition: all 0.2s; border: none;
  font-family: 'Tajawal', sans-serif;
}
.test-btn.gold { background: rgba(200, 162, 78, 0.2); color: var(--gold-400); }
.test-btn.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.test-btn.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.test-btn.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.test-btn:hover { filter: brightness(1.2); }

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }
[dir="rtl"] .app-layout { direction: rtl; }

.sidebar {
  width: var(--sidebar-width);
  background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px);
  border-left: 1px solid rgba(148, 163, 184, 0.1);
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-direction: column; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
[dir="ltr"] .sidebar { right: auto; left: 0; border-left: none; border-right: 1px solid rgba(148, 163, 184, 0.1); }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 35; backdrop-filter: blur(4px); }
.sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: 12px; color: #94a3b8; cursor: pointer;
  transition: all 0.2s ease; font-size: 16px; font-weight: 500;
  position: relative; overflow: hidden;
}
.nav-item:hover { background: rgba(200, 162, 78, 0.08); color: #e2e8f0; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(200, 162, 78, 0.15), rgba(200, 162, 78, 0.05));
  color: var(--gold-400); font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; right: 0; top: 8px; bottom: 8px;
  width: 3px; background: var(--gold-400); border-radius: 3px;
}
[dir="ltr"] .nav-item.active::before { right: auto; left: 0; }
.nav-item i { width: 22px; text-align: center; font-size: 18px; }

.nav-badge {
  margin-right: auto; background: #ef4444; color: white;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; min-width: 22px; text-align: center;
}
[dir="ltr"] .nav-badge { margin-right: 0; margin-left: auto; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(148, 163, 184, 0.1); }

.main-content {
  flex: 1; margin-right: var(--sidebar-width); min-height: 100vh; transition: margin-right 0.3s ease;
  overflow-y: auto; height: 100vh;
}
[dir="ltr"] .main-content { margin-right: 0; margin-left: var(--sidebar-width); }

/* top-bar styles moved to bottom for comprehensive light-mode support */
.menu-toggle {
  display: none; background: none; border: none; color: #94a3b8;
  font-size: 22px; cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.2s;
}
.menu-toggle:hover { background: rgba(148, 163, 184, 0.1); color: white; }
/* page-content animation moved to bottom for performance override */

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--card-bg); border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px; padding: 20px; position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 0;
}
.stat-card::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; border-radius: 0 0 0 80px; opacity: 0.08; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25); border-color: rgba(200, 162, 78, 0.2); }
.stat-card.gold::before { background: var(--gold-400); }
.stat-card.green::before { background: #10b981; }
.stat-card.blue::before { background: #3b82f6; }
.stat-card.purple::before { background: #8b5cf6; }
.stat-card.red::before { background: #ef4444; }

.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; flex-shrink: 0; }
.stat-icon.gold { background: rgba(200, 162, 78, 0.15); color: var(--gold-400); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.stat-value { font-size: 28px; font-weight: 800; color: white; line-height: 1.2; animation: countUp 0.5s ease forwards; word-break: break-word; overflow-wrap: break-word; white-space: nowrap; }
.stat-label { font-size: 15px; color: #64748b; margin-top: 4px; font-weight: 600; line-height: 1.4; }

/* ===== SERVICE TAG ===== */
.service-tag {
  display: inline-block; padding: 3px 11px; border-radius: 8px;
  background: rgba(200, 162, 78, 0.1); color: var(--gold-400);
  font-size: 13px; font-weight: 600;
}

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table thead th {
  background: rgba(30, 41, 59, 0.8); padding: 14px 16px;
  text-align: right; font-weight: 600; font-size: 14px; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
[dir="ltr"] .data-table thead th { text-align: left; }
.data-table thead th:first-child { border-radius: 0 12px 0 0; }
[dir="ltr"] .data-table thead th:first-child { border-radius: 12px 0 0 0; }
.data-table thead th:last-child { border-radius: 12px 0 0 0; }
[dir="ltr"] .data-table thead th:last-child { border-radius: 0 12px 0 0; }
.data-table tbody tr { transition: all 0.2s ease; }
.data-table tbody tr:hover { background: rgba(200, 162, 78, 0.05); }
.data-table tbody td { padding: 14px 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.06); font-size: 15px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  font-family: 'Tajawal', sans-serif; cursor: pointer;
  transition: all 0.2s ease; border: none; position: relative; overflow: hidden;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: white; }
.btn-gold:hover { box-shadow: 0 8px 25px rgba(200, 162, 78, 0.35); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: white; }
.btn-primary:hover { box-shadow: 0 8px 25px rgba(200, 162, 78, 0.35); transform: translateY(-1px); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-danger:hover { box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35); transform: translateY(-1px); }
.btn-ghost { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.15); }
.btn-ghost:hover { background: rgba(148, 163, 184, 0.2); color: white; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-icon { width: 38px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; background: none; border: none; color: #94a3b8; cursor: pointer; transition: all 0.2s; }
.btn-icon:hover { background: rgba(148, 163, 184, 0.1); color: white; }

/* ===== PRICE BUTTONS ===== */
.price-btn {
  padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: rgba(200, 162, 78, 0.1); border: 1px solid rgba(200, 162, 78, 0.2);
  color: var(--gold-400); cursor: pointer; transition: all 0.2s;
  font-family: 'Tajawal', sans-serif;
}
.price-btn:hover { background: rgba(200, 162, 78, 0.25); transform: scale(1.05); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
  z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease;
}
.modal-content {
  background: #1e293b; border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px; width: 500px; max-width: 100%; max-height: 90vh;
  overflow-y: auto; animation: fadeInUp 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.modal-header { padding: 20px 24px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid rgba(148, 163, 184, 0.1); display: flex; gap: 12px; justify-content: flex-start; }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: #94a3b8; margin-bottom: 8px; }
.form-input, .form-select {
  width: 100%; padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px; color: #e2e8f0; font-size: 16px;
  font-family: 'Tajawal', sans-serif; transition: all 0.3s ease; outline: none;
}
.form-input:focus, .form-select:focus { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(200, 162, 78, 0.1); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center; padding-left: 40px;
}
.form-select option { background: #1e293b; color: #e2e8f0; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 20px; left: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px; border-radius: 12px; display: flex; align-items: center; gap: 12px;
  min-width: 300px; max-width: 420px; animation: slideInFromRight 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font-size: 14px; font-weight: 500;
}
.toast.success { background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95)); color: white; }
.toast.error { background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95)); color: white; }
.toast.warning { background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95)); color: white; }
.toast.info { background: linear-gradient(135deg, rgba(200, 162, 78, 0.95), rgba(160, 121, 34, 0.95)); color: white; }

/* ===== VOICE RECORDER ===== */
.voice-recorder {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: rgba(15, 23, 42, 0.6); border: 2px solid rgba(148, 163, 184, 0.1); border-radius: 14px;
}
.voice-recorder-mini {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 12px;
}
.record-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  transition: all 0.3s ease; flex-shrink: 0;
}
.record-btn-sm {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: all 0.3s ease; flex-shrink: 0;
}
.record-btn.idle, .record-btn-sm.idle { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.record-btn.recording, .record-btn-sm.recording { background: #ef4444; color: white; animation: pulse-glow 1s ease-in-out infinite; }
.record-btn-sm.done { background: #10b981; color: white; }

/* ===== NOTIFICATIONS ===== */
.notif-badge {
  position: absolute; top: -4px; right: -4px; width: 20px; height: 20px;
  background: #ef4444; border-radius: 50%; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: white; border: 2px solid #0f172a;
  z-index: 10;
}
[dir="rtl"] .notif-badge { right: auto; left: -4px; }

/* Notification bell button */
.notif-bell-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex !important; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(200, 162, 78, 0.12);
  border: 1px solid rgba(200, 162, 78, 0.25);
  cursor: pointer !important; transition: all 0.2s;
  font-size: 17px; color: var(--gold-400);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  z-index: 101;
  outline: none;
}
.notif-bell-btn:hover { background: rgba(200, 162, 78, 0.25); transform: scale(1.05); }
.notif-bell-btn:active { transform: scale(0.95); background: rgba(200, 162, 78, 0.3); }
.notif-bell-btn * { pointer-events: none; }
.notif-panel {
  position: absolute; top: 100%; width: 380px; max-height: 480px;
  overflow-y: auto; background: #1e293b; border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); z-index: 50; animation: slideDown 0.2s ease;
}
[dir="rtl"] .notif-panel { right: 0; left: auto; }
[dir="ltr"] .notif-panel { left: 0; right: auto; }
.notif-item { padding: 14px 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.06); transition: background 0.2s; cursor: pointer; }
.notif-item:hover { background: rgba(200, 162, 78, 0.05); }
.notif-item.unread { background: rgba(200, 162, 78, 0.08); border-right: 3px solid var(--gold-400); }

/* ===== CHART ===== */
.chart-container {
  background: var(--card-bg); border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px; padding: 24px; position: relative;
}
.chart-container canvas { max-height: 300px; }

/* ===== ACTIVITY ===== */
/* activity-item moved to bottom for performance override */
.activity-item:hover { background: rgba(148, 163, 184, 0.05); }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.activity-dot.create { background: #10b981; }
.activity-dot.update { background: var(--gold-400); }
.activity-dot.delete { background: #ef4444; }
.activity-dot.login { background: #3b82f6; }

/* ===== LOADING ===== */
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(148, 163, 184, 0.1);
  border-top-color: var(--gold-400);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ===== BARBER CARD ===== */
.barber-card {
  background: var(--card-bg); border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px; padding: 24px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.barber-card:hover { border-color: rgba(200, 162, 78, 0.3); transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
.barber-avatar {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: white;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; animation: fadeIn 0.5s ease; }
.empty-state-icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  background: rgba(200, 162, 78, 0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--gold-400);
}

/* ===== DATE INPUT ===== */
.date-input {
  padding: 10px 14px; background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 10px;
  color: #e2e8f0; font-family: 'Tajawal', sans-serif; font-size: 15px;
  outline: none; transition: all 0.2s;
}
.date-input:focus { border-color: var(--gold-400); }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; background: rgba(30, 41, 59, 0.5); padding: 4px; border-radius: 12px; margin-bottom: 24px; }
.tab {
  flex: 1; padding: 11px 18px; text-align: center; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: #64748b; cursor: pointer;
  transition: all 0.2s ease; border: none; background: none; font-family: 'Tajawal', sans-serif;
}
.tab:hover { color: #94a3b8; }
.tab.active { background: var(--gold-500); color: white; box-shadow: 0 4px 12px rgba(200, 162, 78, 0.3); }

/* ===== AUDIO ===== */
.audio-player {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 12px;
}
.audio-play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-500); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.audio-play-btn:hover { background: var(--gold-600); transform: scale(1.05); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(100%); }
  [dir="ltr"] .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-right: 0 !important; }
  [dir="ltr"] .main-content { margin-left: 0 !important; }
  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  .page-content { padding: 10px !important; }
  .top-bar { padding: 10px 12px; }
  .stat-card { padding: 12px 10px; min-height: auto; }
  .stat-icon { width: 34px; height: 34px; font-size: 15px; margin-bottom: 6px; border-radius: 10px; }
  .stat-value { font-size: 20px; white-space: nowrap; }
  .stat-label { font-size: 12px; line-height: 1.3; }
  .modal-content { margin: 8px; border-radius: 16px; }
  .notif-panel { width: calc(100vw - 24px) !important; max-width: 380px; }
  .dash-section-header { padding: 12px 14px; font-size: 15px; }
  .dash-section { border-radius: 14px; }
  .glass-card { border-radius: 12px; }
  .chart-container { padding: 14px; border-radius: 14px; }
  .chart-container canvas { max-height: 220px; }
  .barber-card { padding: 14px; border-radius: 14px; }
  .barber-avatar { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .tabs { flex-wrap: wrap; }
  .tab { padding: 9px 10px; font-size: 13px; min-width: 0; flex: 1 1 auto; }
  .data-table thead th { padding: 10px 8px; font-size: 12px; }
  .data-table tbody td { padding: 10px 8px; font-size: 13px; }
  .form-input, .form-select { font-size: 16px; padding: 10px 12px; }
  .btn { padding: 8px 14px; font-size: 13px; }
  .btn-sm { padding: 6px 10px; font-size: 12px; }
  .btn-lg { padding: 12px 20px; font-size: 15px; }
  .add-customer-hero-btn { padding: 14px 20px; font-size: 16px; border-radius: 14px; }
  .service-tag { font-size: 12px; padding: 2px 9px; }
  .price-btn { padding: 5px 10px; font-size: 12px; }
  .voice-recorder-mini { padding: 10px; gap: 10px; }
  .record-btn-sm { width: 38px; height: 38px; font-size: 14px; }
  .payment-card { padding: 12px 8px; border-radius: 12px; }
  .payment-card i { font-size: 1.2rem !important; margin-bottom: 4px !important; }
  .payment-card span { font-size: 11px !important; }
  .date-input { padding: 8px 10px; font-size: 14px; }
  .empty-state { padding: 40px 16px; }
  .empty-state-icon { width: 64px; height: 64px; font-size: 26px; }
}

@media (max-width: 480px) {
  .login-box { width: 100%; padding: 0 8px; }
  .page-content { padding: 8px !important; }
  .stat-card { padding: 10px 8px; }
  .stat-icon { width: 30px; height: 30px; font-size: 14px; margin-bottom: 4px; border-radius: 8px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 11px; }
  .btn { padding: 7px 12px; font-size: 12px; }
  .barber-card { padding: 12px; }
  .barber-avatar { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
  .top-bar { padding: 8px 10px; }
  .dash-section-header { padding: 10px 12px; font-size: 14px; }
  .chart-container canvas { max-height: 180px; }
  .tabs { gap: 2px; padding: 3px; }
  .tab { padding: 8px 6px; font-size: 12px; border-radius: 8px; }
  .add-customer-hero-btn { padding: 12px 16px; font-size: 14px; border-radius: 12px; }
  .form-select { padding-left: 32px; }
  .modal-content { margin: 4px; border-radius: 14px; max-height: 95vh; }
  .modal-header { padding: 14px 16px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; }
}

/* Fix RTL overflow on mobile */
@media (max-width: 768px) {
  [dir="rtl"] .main-content,
  [dir="ltr"] .main-content {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .page-content > * {
    max-width: 100%;
    overflow-x: hidden;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== GOLDEN ADD CUSTOMER HERO BUTTON ===== */
.add-customer-hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #c8a24e 0%, #d4a853 30%, #f0d78c 50%, #c8a24e 70%, #a07922 100%);
  background-size: 200% 200%;
  animation: goldShimmer 3s ease infinite;
  color: #1a1a2e;
  border: 2px solid rgba(200, 162, 78, 0.6);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(200, 162, 78, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.add-customer-hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(200, 162, 78, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.add-customer-hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(200, 162, 78, 0.3);
}
.add-customer-hero-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== DASHBOARD SECTIONS (organized boxes) ===== */
.dash-section {
  background: var(--card-bg);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.dash-section:hover {
  border-color: rgba(200, 162, 78, 0.2);
}
.dash-section-header {
  padding: 18px 22px;
  background: rgba(200, 162, 78, 0.05);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 18px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
}
.dash-section .stat-card {
  margin: 0;
}
.dash-section .barber-card {
  margin: 0;
}
.dash-section .chart-container {
  background: transparent;
  border: none;
}

/* ===== PERFORMANCE: Reduce animation jank ===== */
.page-content {
  padding: 24px;
  /* Removed fadeIn animation on page-content to prevent navigation lag */
}
.customer-card-anim {
  animation: fadeIn 0.25s ease forwards;
  opacity: 0;
  will-change: opacity, transform;
}
.activity-item {
  display: flex; gap: 16px; padding: 16px; border-radius: 12px;
  transition: background 0.2s ease;
  animation: fadeInRight 0.25s ease forwards;
  opacity: 0;
  will-change: opacity, transform;
}

/* ===== PAYMENT METHOD SELECTOR ===== */
.payment-option {
  cursor: pointer;
}
.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(148, 163, 184, 0.15);
  color: #64748b;
  transition: all 0.3s ease;
  text-align: center;
}
.payment-card:hover {
  border-color: rgba(200, 162, 78, 0.3);
  color: #94a3b8;
}
.payment-card.active {
  border-color: var(--gold-400);
  background: rgba(200, 162, 78, 0.1);
  color: var(--gold-400);
  box-shadow: 0 0 15px rgba(200, 162, 78, 0.15);
}

/* ===== NEON DATE RANGE FILTER ===== */
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(200, 162, 78, 0.3), 0 0 20px rgba(200, 162, 78, 0.1), inset 0 0 12px rgba(200, 162, 78, 0.05); }
  50% { box-shadow: 0 0 16px rgba(200, 162, 78, 0.5), 0 0 40px rgba(200, 162, 78, 0.2), inset 0 0 20px rgba(200, 162, 78, 0.08); }
}
@keyframes neonBorderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes neonGlow {
  0%, 100% { text-shadow: 0 0 4px rgba(200, 162, 78, 0.5); }
  50% { text-shadow: 0 0 12px rgba(200, 162, 78, 0.8), 0 0 20px rgba(200, 162, 78, 0.3); }
}

.neon-filter-box {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 16px;
  animation: neonPulse 3s ease-in-out infinite;
  overflow: hidden;
}
.neon-filter-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(90deg, rgba(200,162,78,0.1), rgba(200,162,78,0.6), rgba(59,130,246,0.4), rgba(200,162,78,0.6), rgba(200,162,78,0.1));
  background-size: 200% 100%;
  animation: neonBorderFlow 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.neon-filter-box::after {
  content: '';
  position: absolute;
  top: 0; left: -50%; width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent 30%, rgba(200,162,78,0.04) 50%, transparent 70%);
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

.neon-filter-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: neonGlow 3s ease-in-out infinite;
}
.neon-filter-title i {
  font-size: 14px;
}

.neon-date-input {
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(200, 162, 78, 0.25);
  border-radius: 10px;
  color: #e2e8f0;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}
.neon-date-input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(200, 162, 78, 0.15), 0 0 15px rgba(200, 162, 78, 0.1);
}

.neon-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.neon-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 162, 78, 0.4);
}
.neon-search-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.15) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

.neon-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.neon-reset-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  color: white;
}

/* Notification detail card */
.notif-detail-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(200, 162, 78, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin: 8px 0;
  animation: fadeInUp 0.3s ease;
}
.notif-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.notif-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-detail-icon.success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.notif-detail-icon.error { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.notif-detail-icon.warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.notif-detail-icon.info { background: rgba(200, 162, 78, 0.15); color: var(--gold-400); }
.notif-detail-changes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notif-change-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 10px;
  font-size: 13px;
}
.notif-change-label {
  color: #94a3b8;
  min-width: 60px;
  font-weight: 600;
}
.notif-change-old {
  color: #ef4444;
  text-decoration: line-through;
  opacity: 0.7;
}
.notif-change-new {
  color: #10b981;
  font-weight: 600;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
  cursor: pointer; transition: all 0.3s ease;
  font-size: 16px; color: #f59e0b; flex-shrink: 0;
}
.theme-toggle-btn:hover { background: rgba(148, 163, 184, 0.15); transform: rotate(20deg); }
.topbar-title { color: white; font-weight: 700; }

/* ===== LIGHT MODE (CSS Variables) ===== */
.light-mode {
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(200, 162, 78, 0.2);
  --card-bg: rgba(255, 255, 255, 0.9);
  --notif-bg: #ffffff;
}

/* ===== ANIMATED LOGO ===== */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.3)) drop-shadow(0 0 20px rgba(0, 188, 212, 0.1)); }
  50% { filter: drop-shadow(0 0 16px rgba(0, 188, 212, 0.5)) drop-shadow(0 0 40px rgba(0, 188, 212, 0.2)); }
}
@keyframes logoRotateIn {
  from { opacity: 0; transform: rotate(-10deg) scale(0.8); }
  to { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes logoShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.logo-animated {
  animation: logoFloat 4s ease-in-out infinite, logoGlow 3s ease-in-out infinite;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.logo-animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: logoShine 4s ease-in-out infinite;
  pointer-events: none;
}
.logo-animated:hover {
  transform: scale(1.08) rotate(2deg);
}
.logo-animated img {
  border-radius: 16px;
  transition: all 0.3s ease;
}

.logo-animated-sm {
  animation: logoGlow 3s ease-in-out infinite;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.logo-animated-sm::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: logoShine 5s ease-in-out infinite;
  pointer-events: none;
}
.logo-animated-sm img {
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Splash logo special animation */
.splash-logo .logo-animated {
  animation: logoRotateIn 0.8s ease forwards, logoFloat 4s ease-in-out 0.8s infinite, logoGlow 3s ease-in-out 0.8s infinite;
}

/* ===== TOP BAR STICKY FIX ===== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

/* ===== COMPREHENSIVE LIGHT MODE ===== */
/* Base body and text */
.light-mode,
body.light-mode {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Sidebar */
.light-mode .sidebar {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(200, 162, 78, 0.15) !important;
}
.light-mode .sidebar-header {
  border-color: rgba(0,0,0,0.08) !important;
}
.light-mode .sidebar-header h2 { color: #b8942d !important; }
.light-mode .sidebar-header p { color: #64748b !important; }
.light-mode .sidebar-footer {
  border-color: rgba(0,0,0,0.08) !important;
}
.light-mode .sidebar-footer .bg-slate-800\/50,
.light-mode .sidebar-footer [class*="bg-slate-800"] {
  background: rgba(241, 245, 249, 0.8) !important;
}
.light-mode .sidebar-footer p.text-white,
.light-mode .sidebar-footer .text-white {
  color: #1e293b !important;
}
.light-mode .sidebar-footer .text-slate-400 {
  color: #64748b !important;
}

/* Navigation */
.light-mode .nav-item { color: #64748b; }
.light-mode .nav-item:hover { background: rgba(200, 162, 78, 0.08); color: #1e293b; }
.light-mode .nav-item.active { color: var(--gold-500); background: rgba(200, 162, 78, 0.12); }
.light-mode .nav-item span { color: inherit !important; }

/* Top bar */
.light-mode .top-bar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(200, 162, 78, 0.12) !important;
}
.light-mode .topbar-title { color: #1e293b !important; }
.light-mode .top-bar .text-slate-400 { color: #64748b !important; }
.light-mode .top-bar .text-blue-400 { color: #3b82f6 !important; }

/* Theme toggle */
.light-mode .theme-toggle-btn { color: #475569; background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.1) !important; }
.light-mode .theme-toggle-btn:hover { background: rgba(0,0,0,0.08) !important; }

/* Cards */
.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(200, 162, 78, 0.15) !important;
}
.light-mode .glass-card:hover {
  border-color: rgba(200, 162, 78, 0.35) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}
.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
.light-mode .stat-value { color: #1e293b !important; }
.light-mode .stat-label { color: #64748b !important; }
.light-mode .barber-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
.light-mode .barber-card:hover {
  border-color: rgba(200, 162, 78, 0.3) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* Dashboard sections */
.light-mode .dash-section {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
.light-mode .dash-section-header {
  background: rgba(200, 162, 78, 0.06) !important;
  color: #1e293b !important;
  border-color: rgba(0,0,0,0.06) !important;
}
.light-mode .chart-container {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

/* Tables */
.light-mode .data-table thead th {
  background: rgba(241, 245, 249, 0.95) !important;
  color: #475569 !important;
  border-color: rgba(0,0,0,0.06) !important;
}
.light-mode .data-table tbody td {
  border-color: rgba(0,0,0,0.04) !important;
  color: #1e293b !important;
}
.light-mode .data-table tbody tr:hover { background: rgba(200, 162, 78, 0.06) !important; }

/* Forms */
.light-mode .form-input,
.light-mode .form-select {
  background: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(0,0,0,0.12) !important;
  color: #1e293b !important;
}
.light-mode .form-input::placeholder { color: #94a3b8 !important; }
.light-mode .form-input:focus,
.light-mode .form-select:focus {
  border-color: var(--gold-400) !important;
  box-shadow: 0 0 0 4px rgba(200, 162, 78, 0.1) !important;
  background: #ffffff !important;
}
.light-mode .form-label { color: #475569 !important; }
.light-mode .form-select option { background: #ffffff !important; color: #1e293b !important; }

/* Modal */
.light-mode .modal-content {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}
.light-mode .modal-header {
  border-color: rgba(0,0,0,0.08) !important;
  color: #1e293b !important;
}
.light-mode .modal-header h2,
.light-mode .modal-header h3 { color: #1e293b !important; }
.light-mode .modal-body { color: #1e293b !important; }
.light-mode .modal-footer { border-color: rgba(0,0,0,0.08) !important; }
.light-mode .modal-overlay { background: rgba(0, 0, 0, 0.4) !important; }

/* Buttons */
.light-mode .btn-ghost {
  background: rgba(0,0,0,0.04) !important;
  color: #475569 !important;
  border-color: rgba(0,0,0,0.1) !important;
}
.light-mode .btn-ghost:hover {
  background: rgba(0,0,0,0.08) !important;
  color: #1e293b !important;
}
.light-mode .btn-icon { color: #64748b !important; }
.light-mode .btn-icon:hover { background: rgba(0,0,0,0.06) !important; color: #1e293b !important; }

/* Tabs */
.light-mode .tabs { background: rgba(241,245,249,0.8) !important; }
.light-mode .tab { color: #64748b; }
.light-mode .tab:hover { color: #475569; background: rgba(0,0,0,0.04); }
.light-mode .tab.active { background: var(--gold-500); color: white; }

/* Notifications */
.light-mode .notif-panel {
  background: #ffffff !important;
  border-color: rgba(200,162,78,0.2) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}
.light-mode .notif-item {
  border-color: rgba(0,0,0,0.06) !important;
  color: #1e293b !important;
}
.light-mode .notif-item:hover { background: rgba(200,162,78,0.05) !important; }
.light-mode .notif-item.unread { background: rgba(200, 162, 78, 0.06) !important; }
.light-mode .notif-bell-btn {
  background: rgba(200, 162, 78, 0.08) !important;
  border-color: rgba(200, 162, 78, 0.2) !important;
}
.light-mode .notif-detail-card {
  background: rgba(241,245,249,0.95) !important;
  border-color: rgba(200,162,78,0.2) !important;
}
.light-mode .notif-change-row {
  background: rgba(255,255,255,0.8) !important;
  color: #1e293b !important;
}
.light-mode .notif-change-label { color: #64748b !important; }

/* Neon filter */
.light-mode .neon-filter-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(241,245,249,0.9)) !important;
}
.light-mode .neon-date-input {
  background: rgba(241,245,249,0.9) !important;
  color: #1e293b !important;
  border-color: rgba(200,162,78,0.2) !important;
}

/* Payment */
.light-mode .payment-card {
  background: rgba(241,245,249,0.9) !important;
  border-color: rgba(0,0,0,0.12) !important;
  color: #64748b;
}
.light-mode .payment-card.active {
  border-color: var(--gold-400) !important;
  background: rgba(200,162,78,0.08) !important;
  color: var(--gold-500) !important;
}

/* Voice */
.light-mode .voice-recorder { background: rgba(241,245,249,0.8) !important; border-color: rgba(0,0,0,0.08) !important; }
.light-mode .voice-recorder-mini { background: rgba(241,245,249,0.8) !important; border-color: rgba(0,0,0,0.08) !important; }

/* Empty state */
.light-mode .empty-state-icon { background: rgba(200, 162, 78, 0.08) !important; }
.light-mode .empty-state p { color: #64748b !important; }

/* Date input */
.light-mode .date-input {
  background: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(0,0,0,0.12) !important;
  color: #1e293b !important;
}
.light-mode .date-input:focus { border-color: var(--gold-400) !important; }

/* Audio */
.light-mode .audio-player {
  background: rgba(241, 245, 249, 0.8) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

/* Service tag */
.light-mode .service-tag {
  background: rgba(200, 162, 78, 0.08) !important;
  color: var(--gold-600) !important;
}

/* Price button */
.light-mode .price-btn {
  background: rgba(200, 162, 78, 0.08) !important;
  border-color: rgba(200, 162, 78, 0.2) !important;
  color: var(--gold-600) !important;
}
.light-mode .price-btn:hover { background: rgba(200, 162, 78, 0.2) !important; }

/* Activity */
.light-mode .activity-item { color: #1e293b; }
.light-mode .activity-item:hover { background: rgba(0,0,0,0.03) !important; }

/* Text color overrides for light mode */
.light-mode .text-white { color: #1e293b !important; }
.light-mode .text-slate-100 { color: #334155 !important; }
.light-mode .text-slate-200 { color: #475569 !important; }
.light-mode .text-slate-300 { color: #64748b !important; }
.light-mode .text-slate-400 { color: #64748b !important; }
.light-mode .text-slate-500 { color: #94a3b8 !important; }
.light-mode .text-blue-300 { color: #2563eb !important; }
.light-mode .text-blue-400 { color: #3b82f6 !important; }
.light-mode .text-green-400 { color: #059669 !important; }
.light-mode .text-red-400 { color: #dc2626 !important; }
.light-mode .text-yellow-400 { color: #d97706 !important; }
.light-mode .text-purple-400 { color: #7c3aed !important; }
.light-mode .text-gold-400 { color: var(--gold-600) !important; }

/* Background overrides */
.light-mode .bg-slate-900,
.light-mode .bg-slate-800 {
  background-color: rgba(241, 245, 249, 0.8) !important;
}
.light-mode .bg-slate-900\/50,
.light-mode [class*="bg-slate-900/"],
.light-mode [class*="bg-slate-800/"] {
  background-color: rgba(241, 245, 249, 0.6) !important;
}
.light-mode .bg-slate-700 { background-color: rgba(226, 232, 240, 0.8) !important; }

/* Border overrides */
.light-mode .border-slate-700,
.light-mode .border-slate-600 {
  border-color: rgba(0,0,0,0.08) !important;
}
.light-mode [class*="border-slate-700/"],
.light-mode [class*="border-slate-600/"] {
  border-color: rgba(0,0,0,0.06) !important;
}

/* Inline styles overrides for dynamically generated content */
.light-mode [style*="background:rgba(15, 23, 42"],
.light-mode [style*="background: rgba(15, 23, 42"],
.light-mode [style*="background:rgba(30, 41, 59"],
.light-mode [style*="background: rgba(30, 41, 59"] {
  background: rgba(241, 245, 249, 0.8) !important;
}
.light-mode [style*="color:#e2e8f0"],
.light-mode [style*="color: #e2e8f0"] {
  color: #1e293b !important;
}
.light-mode [style*="color:#94a3b8"],
.light-mode [style*="color: #94a3b8"] {
  color: #64748b !important;
}
.light-mode [style*="color:#64748b"],
.light-mode [style*="color: #64748b"] {
  color: #475569 !important;
}
.light-mode [style*="color:white"],
.light-mode [style*="color: white"] {
  color: #1e293b !important;
}
.light-mode [style*="color:#fff"],
.light-mode [style*="color: #fff"] {
  color: #1e293b !important;
}

/* Scrollbar */
.light-mode ::-webkit-scrollbar-track { background: #f1f5f9; }
.light-mode ::-webkit-scrollbar-thumb { background: #cbd5e1; }
.light-mode ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Login page light mode */
.light-mode .login-container { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%) !important; }
.light-mode .login-input { background: rgba(255,255,255,0.9) !important; border-color: rgba(0,0,0,0.12) !important; color: #1e293b !important; }
.light-mode .login-input::placeholder { color: #94a3b8 !important; }
.light-mode .login-input:focus { background: #ffffff !important; }

/* Gold add customer button - keep contrast in light mode */
.light-mode .add-customer-hero-btn {
  box-shadow: 0 8px 32px rgba(200, 162, 78, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Notif badge always visible */
.light-mode .notif-badge { border-color: #ffffff !important; }

/* Loading spinner */
.light-mode .loading-spinner {
  border-color: rgba(0,0,0,0.08) !important;
  border-top-color: var(--gold-400) !important;
}

/* General paragraphs and spans */
.light-mode p, .light-mode span, .light-mode div { color: inherit; }
.light-mode .page-content p, .light-mode .page-content span { color: inherit; }

/* ===== PRINT ===== */
@media print {
  .sidebar, .top-bar, .menu-toggle, .btn { display: none !important; }
  .main-content { margin: 0 !important; }
  body { background: white; color: black; }
}
