/* ═══════════════════════════════════════════════════════════════
   style.css — Global Design System
   Multi-Tenant Chatbot Platform
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&family=Outfit:wght@200;300;400;500;600&display=swap');

/* ─── CSS Custom Properties ────────────────────────────────────── */
:root {
  /* Colors - Minimalist Monochrome Luxury with subtle semantic colors */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --bg-input: #111111;
  --bg-glass: rgba(255, 255, 255, 0.02);

  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.25);

  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --text-accent: #ffffff;

  /* Accent: Pure White */
  --accent: #ffffff;
  --accent-light: #f5f5f5;
  --accent-dark: #a3a3a3;
  --accent-glow: rgba(255, 255, 255, 0.08);

  /* Subtle Semantic Status Colors for usability */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Gradient */
  --gradient-accent: linear-gradient(135deg, #ffffff, #d4d4d4);
  --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));

  /* Spacing */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px;
  --sp-xl: 32px; --sp-2xl: 48px; --sp-3xl: 64px;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 20px; --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 30px rgba(99,102,241,0.3);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-normal: 250ms var(--ease);
  --t-slow: 350ms var(--ease);

  /* Font */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Sidebar */
  --sidebar-w: 260px;
}

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-glow); color: var(--accent-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--text-secondary); }
a { color: var(--accent-light); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--text-primary); }
code { font-family: 'Courier New', monospace; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; color: var(--accent-light); }
pre code { background: none; padding: 0; }

/* ─── Layout ───────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-content {
  flex: 1;
  padding: var(--sp-xl);
  overflow-y: auto;
  max-height: calc(100vh - 60px);
}

/* ─── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

.sidebar-brand {
  padding: var(--sp-lg) var(--sp-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.sidebar-brand .brand-logo {
  width: 36px; height: 36px;
  background: var(--gradient-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sidebar-brand .brand-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 2px 6px;
  border-radius: var(--r-full);
  margin-left: auto;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-md) var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-sm) var(--sp-sm);
  margin-top: var(--sp-sm);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px var(--sp-sm);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  position: relative;
  user-select: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-light);
}

.nav-item.active .nav-icon { color: var(--accent-light); }

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 400;
  padding: 2px 6px;
  border-radius: var(--r-full);
  min-width: 18px;
  text-align: center;
}

.sidebar-user {
  padding: var(--sp-md);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.user-avatar {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 600; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

.logout-btn {
  width: 28px; height: 28px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.logout-btn:hover { background: var(--danger-bg); color: var(--danger); }

/* ─── Topbar ───────────────────────────────────────────────────── */
.topbar {
  height: 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-xl);
  gap: var(--sp-md);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
}

.topbar-breadcrumb span { color: var(--text-secondary); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-sm); }

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--t-normal);
}

.card:hover { border-color: var(--border-hover); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
}

.card-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--t-normal);
}

.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }

.stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.purple { background: rgba(99,102,241,0.15); }
.stat-icon.green { background: rgba(16,185,129,0.15); }
.stat-icon.yellow { background: rgba(245,158,11,0.15); }
.stat-icon.red { background: rgba(239,68,68,0.15); }
.stat-icon.blue { background: rgba(59,130,246,0.15); }

.stat-value { font-size: 1.8rem; font-weight: 300; font-family: var(--font-display); color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-change { font-size: 11px; margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ─── Grid Layouts ─────────────────────────────────────────────── */
.grid { display: grid; gap: var(--sp-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: 9px var(--sp-md);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--accent);
  color: #000000;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15); background: #e5e5e5; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(239,68,68,0.2);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(16,185,129,0.2);
}
.btn-success:hover { background: var(--success); color: white; }

.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 12px var(--sp-lg); font-size: 15px; }
.btn-icon { padding: 8px; min-width: unset; }
.btn-icon svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Forms ────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; gap: var(--sp-md); }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.label-required::after { content: ' *'; color: var(--danger); }

input, textarea, select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 12px;
  width: 100%;
  transition: all var(--t-fast);
  outline: none;
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-card);
}

select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 36px; }

select option { background: var(--bg-card); color: var(--text-primary); }

textarea { resize: vertical; min-height: 90px; }

.input-hint { font-size: 11px; color: var(--text-muted); }
.input-error { border-color: var(--danger) !important; }
.error-msg { font-size: 11px; color: var(--danger); }

/* Input with icon */
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 16px; height: 16px; }
.input-wrapper input { padding-left: 38px; }

/* Tags input */
.tags-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; min-height: 44px; cursor: text; transition: all var(--t-fast); }
.tags-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-glow); color: var(--accent-light); padding: 2px 8px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; }
.tag-remove { cursor: pointer; opacity: 0.7; line-height: 1; }
.tag-remove:hover { opacity: 1; }
.tags-input input { border: none; background: none; padding: 0; flex: 1; min-width: 80px; outline: none; color: var(--text-primary); font-size: 13px; }

/* ─── Tables ───────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; }

thead { background: rgba(255,255,255,0.02); }

th {
  padding: 12px var(--sp-md);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px var(--sp-md);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-primary);
  vertical-align: middle;
}

tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--bg-glass); }
tbody tr:last-child td { border-bottom: none; }

.table-empty { text-align: center; padding: var(--sp-3xl); color: var(--text-muted); }

/* ─── Badges & Pills ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.badge-accent { background: var(--accent-glow); color: var(--accent-light); }

.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─── Modals ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-normal);
  padding: var(--sp-md);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--t-normal);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.modal-title { font-size: 1.1rem; font-weight: 400; }

.modal-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--bg-input);
  color: var(--text-muted);
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: var(--sp-lg); display: flex; flex-direction: column; gap: var(--sp-md); }
.modal-footer {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-sm);
}

/* ─── Page Sections ────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-xl);
  gap: var(--sp-md);
}

.page-title { font-size: 1.5rem; font-weight: 400; color: var(--text-primary); }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ─── Empty States ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.empty-icon {
  width: 72px; height: 72px;
  border-radius: var(--r-xl);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 1px solid var(--border);
}

.empty-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.empty-desc { font-size: 13px; color: var(--text-muted); max-width: 320px; }

/* ─── Search & Filter Bar ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}

.search-input-wrapper { position: relative; flex: 1; min-width: 200px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 15px; height: 15px; }
.search-input { padding-left: 36px !important; }

/* ─── Toggle / Switch ──────────────────────────────────────────── */
.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 22px;
  transition: var(--t-normal);
}

.toggle-slider:before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--t-normal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); }

/* ─── Tabs ─────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-input);
  border-radius: var(--r-md);
  padding: 3px;
  margin-bottom: var(--sp-lg);
}

.tab-btn {
  flex: 1;
  padding: 8px var(--sp-md);
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  background: none;
  font-family: var(--font-sans);
  text-align: center;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) { color: var(--text-secondary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Avatars ──────────────────────────────────────────────────── */
.avatar {
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  background: var(--gradient-accent);
  color: white;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 12px; border-radius: 6px; }
.avatar-md { width: 36px; height: 36px; }
.avatar-lg { width: 48px; height: 48px; font-size: 22px; border-radius: var(--r-lg); }
.avatar-xl { width: 64px; height: 64px; font-size: 28px; border-radius: var(--r-lg); }

/* ─── Alerts ───────────────────────────────────────────────────── */
.alert {
  padding: var(--sp-md);
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: 13px;
}
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(59,130,246,0.2); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* ─── Code Block ───────────────────────────────────────────────── */
.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #e6edf3;
  overflow-x: auto;
  position: relative;
  line-height: 1.6;
}

.code-block .copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  padding: 4px 10px;
  font-size: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-sans);
}

.code-block .copy-btn:hover { background: var(--accent-glow); color: var(--accent-light); border-color: var(--accent); }
.code-block .copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ─── Progress Bar ─────────────────────────────────────────────── */
.progress { background: rgba(255,255,255,0.06); border-radius: var(--r-full); height: 6px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-accent); border-radius: var(--r-full); transition: width 0.6s var(--ease); }
.progress-bar.green { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-bar.yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-bar.red { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ─── Divider ──────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: var(--sp-md) 0; }

/* ─── Notification Toast ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  animation: toastIn 0.3s var(--ease);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

.toast-title { font-weight: 600; font-size: 13px; color: var(--text-primary); }
.toast-msg { font-size: 12px; color: var(--text-secondary); }

@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); height: 0; padding: 0; margin: 0; overflow: hidden; } }
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }

/* ─── Dropdown ─────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-lg);
  min-width: 160px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.dropdown-menu.open { display: block; animation: fadeDown 0.15s var(--ease); }
.dropdown-item {
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: 10px var(--sp-md);
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: all var(--t-fast);
  border: none; background: none; width: 100%; text-align: left;
  font-family: var(--font-sans);
}
.dropdown-item:hover { background: var(--bg-glass); color: var(--text-primary); }
.dropdown-item.danger:hover { background: var(--danger-bg); color: var(--danger); }
.dropdown-item svg { width: 14px; height: 14px; opacity: 0.7; }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Login Page ───────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.2), transparent),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(139,92,246,0.15), transparent);
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.login-logo-icon {
  width: 44px; height: 44px;
  background: var(--gradient-accent);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-accent);
}

.login-logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; }
.login-logo-text span { color: var(--accent-light); }

.login-title { font-size: 1.6rem; font-weight: 400; margin-bottom: 6px; }
.login-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: var(--sp-xl); }

.login-demo-accounts {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  margin-top: var(--sp-md);
}

.login-demo-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-sm); }

.demo-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-secondary);
}

.demo-account-btn:hover { background: var(--bg-glass); color: var(--text-primary); }
.demo-account-icon { font-size: 16px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border-radius: 6px; }
.demo-account-info { flex: 1; }
.demo-account-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.demo-account-creds { font-size: 11px; color: var(--text-muted); }

/* ─── Tenant Card ──────────────────────────────────────────────── */
.tenant-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  transition: all var(--t-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tenant-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--tenant-color, var(--accent));
}

.tenant-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.tenant-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-md); }
.tenant-logo { width: 46px; height: 46px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--bg-input); }
.tenant-name { font-weight: 400; font-size: 1rem; color: var(--text-primary); }
.tenant-category { font-size: 11px; color: var(--text-muted); }
.tenant-meta { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; margin-top: var(--sp-sm); }

/* ─── Chat UI ──────────────────────────────────────────────────── */
.chat-list { display: flex; flex-direction: column; gap: var(--sp-xs); }

.chat-item {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
}

.chat-item:hover { background: var(--bg-glass); }
.chat-item.active { background: var(--accent-glow); }

.chat-item-avatar { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--bg-input); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.chat-item-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.chat-item-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.chat-item-time { font-size: 11px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* ─── Task Board ───────────────────────────────────────────────── */
.task-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }

.task-column {
  background: var(--bg-input);
  border-radius: var(--r-xl);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.task-column-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-sm);
}

.task-column-title { font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; }

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
}

.task-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }

.task-card-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.task-card-desc { font-size: 12px; color: var(--text-muted); margin-bottom: var(--sp-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); }
.task-card-priority { width: 3px; position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.task-card-priority.high { background: var(--danger); }
.task-card-priority.medium { background: var(--warning); }
.task-card-priority.low { background: var(--success); }

/* ─── Knowledge Base Cards ─────────────────────────────────────── */
.kb-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  transition: all var(--t-normal);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.kb-card:hover { border-color: var(--border-hover); }
.kb-card-category { font-size: 11px; font-weight: 600; color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.08em; }
.kb-card-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.kb-card-content { font-size: 13px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kb-card-keywords { display: flex; flex-wrap: wrap; gap: 4px; }
.kb-keyword { font-size: 11px; background: rgba(255,255,255,0.06); color: var(--text-muted); padding: 2px 8px; border-radius: var(--r-full); }

/* ─── Promo Cards ──────────────────────────────────────────────── */
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-normal);
  position: relative;
}
.promo-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.promo-card-banner {
  padding: var(--sp-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.1));
  border-bottom: 1px solid var(--border);
  position: relative;
}
.promo-discount { font-size: 2.5rem; font-weight: 300; font-family: var(--font-display); color: var(--accent-light); line-height: 1; }
.promo-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.promo-card-body { padding: var(--sp-md); }
.promo-code-display {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  background: var(--bg-input); border: 1px dashed var(--accent); border-radius: var(--r-md);
  padding: 8px var(--sp-md); font-family: monospace; font-size: 13px; font-weight: 400; color: var(--accent-light); letter-spacing: 2px;
  cursor: pointer; transition: all var(--t-fast);
}
.promo-code-display:hover { background: var(--accent-glow); }

/* ─── Embed Preview ────────────────────────────────────────────── */
.embed-preview {
  position: relative;
  height: 420px;
  background: var(--bg-input);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--sp-lg);
}

.embed-preview-chat {
  position: absolute;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  width: 340px;
  max-height: 380px;
  background: #1a1a2e;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: all var(--t-normal);
}

/* ─── Misc Utilities ───────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--sp-xs); }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 400; }
.font-semibold { font-weight: 600; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Animations ───────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px var(--accent-glow); } 50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(99,102,241,0.1); } }

.animate-fade { animation: fadeIn 0.3s var(--ease); }
.animate-slide-up { animation: slideUp 0.3s var(--ease); }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Typing Indicator */
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 12px 16px; }
.typing-dot { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: bounce 1.4s infinite ease-in-out; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .task-board { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .page-content { padding: var(--sp-md); }
}

/* ─── Floating Chat Widget Styles ──────────────────────────────── */
.widget-fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,255,255,0.1);
  transition: all 0.3s var(--ease);
  animation: glow 3s ease-in-out infinite;
  position: relative;
}
.widget-fab:hover { transform: scale(1.1); }
.widget-fab .unread-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  animation: pulse 1.5s infinite;
}

/* ─── Persona Preview ──────────────────────────────────────────── */
.persona-preview {
  background: var(--bg-input);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.persona-preview-header {
  padding: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.persona-preview-msg {
  padding: var(--sp-md);
  display: flex;
  gap: var(--sp-sm);
}

.persona-msg-bubble {
  background: var(--bg-card);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  padding: var(--sp-sm) var(--sp-md);
  font-size: 13px;
  color: var(--text-primary);
  max-width: 220px;
  border: 1px solid var(--border);
}

/* Color Picker */
.color-picker-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.color-option {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: all var(--t-fast);
  position: relative;
}
.color-option.selected { border-color: white; transform: scale(1.2); }
.color-option:hover { transform: scale(1.15); }

/* Analytics Chart placeholder */
.chart-placeholder {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: var(--sp-md) 0;
}
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--gradient-accent); min-height: 4px; transition: height 0.5s var(--ease); }

/* Dashboard Theme Overrides (Clean Light SaaS Theme with Purple Accents) */
body.dashboard-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-glass: rgba(99, 102, 241, 0.03);

  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #6366f1;

  /* Accent: Royal Purple */
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.1);

  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.08);
  --warning: #f97316;
  --warning-bg: rgba(249, 115, 22, 0.08);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --info: #06b6d4;
  --info-bg: rgba(6, 182, 212, 0.08);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.02), rgba(139,92,246,0.01));
}

body.dashboard-theme .sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}

body.dashboard-theme .sidebar-brand {
  border-bottom: 1px solid #f1f5f9;
}

body.dashboard-theme .nav-item {
  color: #64748b;
}

body.dashboard-theme .nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

body.dashboard-theme .nav-item.active {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #6366f1 !important;
}

body.dashboard-theme .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  border-radius: 16px;
}

body.dashboard-theme .btn-primary {
  background: #6366f1 !important;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
}

body.dashboard-theme .btn-primary:hover {
  background: #4f46e5 !important;
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

body.dashboard-theme .btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

body.dashboard-theme .btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

body.dashboard-theme input, 
body.dashboard-theme select, 
body.dashboard-theme textarea {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.dashboard-theme input:focus, 
body.dashboard-theme select:focus, 
body.dashboard-theme textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

body.dashboard-theme .modal-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-radius: 16px;
}

body.dashboard-theme .modal-header {
  border-bottom: 1px solid #f1f5f9;
}

body.dashboard-theme .modal-footer {
  border-top: 1px solid #f1f5f9;
}

body.dashboard-theme .progress {
  background: #f1f5f9;
  border-radius: 9999px;
}

body.dashboard-theme .progress-bar {
  background: var(--gradient-accent);
  border-radius: 9999px;
}

body.dashboard-theme .chart-bar {
  background: var(--gradient-accent);
}
.chart-label { font-size: 10px; color: var(--text-muted); }
