/* ============================================================
   VoyageCRM — Main Stylesheet
   Dark luxury travel theme
   ============================================================ */

:root {
  --bg:         #080d18;
  --surface:    #0f1729;
  --surface2:   #162039;
  --surface3:   #1c2a4a;
  --surface4:   #1e3054;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.12);
  --accent:     #f0a500;
  --accent-dim: rgba(240,165,0,0.15);
  --accent2:    #e05c2a;
  --teal:       #00c9a7;
  --blue:       #4a90d9;
  --purple:     #8b7cf6;
  --text:       #dce4f0;
  --text-muted: #7a8fa8;
  --text-dim:   #4a5a70;
  --success:    #2dca8c;
  --warning:    #f0a500;
  --danger:     #e84855;
  --info:       #4a90d9;
  --teal-c:     #00c9a7;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --sidebar-w:  240px;
  --topbar-h:   58px;
  --transition: 0.18s ease;
}

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

html { font-size: 14px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface4); }

/* ── APP SHELL ─────────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-shrink: 0;
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.brand-tagline { font-size: 10px; color: var(--text-dim); letter-spacing: 1px; margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-label {
  padding: 10px 18px 4px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}

.nav-link:hover { background: var(--surface2); color: var(--text); }

.nav-link.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

.nav-icon { font-size: 15px; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); }

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-name { font-size: 12px; font-weight: 600; }
.user-role { font-size: 10px; color: var(--text-dim); }
.user-info { flex: 1; min-width: 0; overflow: hidden; }
.logout-btn { font-size: 16px; color: var(--text-dim); padding: 2px; transition: color var(--transition); }
.logout-btn:hover { color: var(--danger); }

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px;
  display: none;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar-time { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-dim); }

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── STAT CARDS ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-color, var(--accent));
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; font-family: 'DM Mono', monospace; color: var(--text); }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.stat-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 28px; opacity: 0.1; }

/* ── TABLE ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead tr { border-bottom: 1px solid var(--border2); }
th { padding: 10px 14px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); font-weight: 600; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface2); }
tbody tr:last-child td { border-bottom: none; }
.td-name { color: var(--text); font-weight: 500; }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-info       { background: rgba(74,144,217,0.15); color: var(--info); }
.badge-primary    { background: rgba(74,144,217,0.2);  color: #6aadff; }
.badge-warning    { background: rgba(240,165,0,0.15);  color: var(--warning); }
.badge-secondary  { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.badge-success    { background: rgba(45,202,140,0.15); color: var(--success); }
.badge-teal       { background: rgba(0,201,167,0.15);  color: var(--teal); }
.badge-completed  { background: rgba(139,124,246,0.15); color: var(--purple); }
.badge-danger     { background: rgba(232,72,85,0.15);  color: var(--danger); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: #f7b826; }
.btn-outline { background: transparent; color: var(--text-muted); border-color: var(--border2); }
.btn-outline:hover { background: var(--surface2); color: var(--text); }
.btn-danger  { background: rgba(232,72,85,0.12); color: var(--danger); border-color: rgba(232,72,85,0.3); }
.btn-danger:hover { background: rgba(232,72,85,0.2); }
.btn-success { background: rgba(45,202,140,0.12); color: var(--success); border-color: rgba(45,202,140,0.3); }
.btn-success:hover { background: rgba(45,202,140,0.2); }
.btn-teal   { background: rgba(0,201,167,0.12); color: var(--teal); border-color: rgba(0,201,167,0.3); }
.btn-teal:hover { background: rgba(0,201,167,0.2); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-icon { padding: 6px; border-radius: 6px; }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.3px; }
.form-label .req { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control option { background: var(--surface2); }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-hint { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ── FILTERS BAR ───────────────────────────────────────────── */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.search-box input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 36px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.search-box input:focus { border-color: var(--accent); }
.search-box::before { content: '⌕'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 16px; }

.filter-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%) scale(0.95);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: min(90vw, 640px);
  max-height: 88vh;
  z-index: 901;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(.34,1.56,.64,1);
}

.modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-lg { width: min(92vw, 900px); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 18px; padding: 4px; transition: color var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }

/* ── TOAST ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-width: 260px;
  max-width: 380px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideInToast 0.3s ease forwards;
  font-size: 13px;
}
.toast.hide { animation: slideOutToast 0.3s ease forwards; }
.toast-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.toast-msg { flex: 1; color: var(--text); }
.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-warning { border-left: 3px solid var(--warning); }

@keyframes slideInToast { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }
@keyframes slideOutToast { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(30px); } }

/* ── WORKFLOW PIPELINE ─────────────────────────────────────── */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 24px;
}

.pipeline-stage {
  flex: 1;
  min-width: 120px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-right: none;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.pipeline-stage:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pipeline-stage:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--border); }
.pipeline-stage:hover, .pipeline-stage.active { background: var(--accent-dim); }
.pipeline-stage.active .ps-label { color: var(--accent); }
.ps-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.ps-count { font-size: 22px; font-weight: 700; font-family: 'DM Mono', monospace; color: var(--text); margin: 4px 0; }
.ps-arrow {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid var(--surface3);
  z-index: 2;
}

/* ── TIMELINE ──────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface3);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  z-index: 1;
}
.tl-content { flex: 1; padding-top: 4px; }
.tl-title { font-size: 13px; font-weight: 600; color: var(--text); }
.tl-body { font-size: 12px; color: var(--text-muted); margin: 4px 0; }
.tl-time { font-size: 11px; color: var(--text-dim); font-family: 'DM Mono', monospace; }

/* ── DETAIL PANEL ──────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.detail-item {}
.detail-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.detail-value { font-size: 13px; color: var(--text); font-weight: 500; }

/* ── TABS ──────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  font-weight: 500;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.empty-sub { font-size: 13px; }

/* ── LOADING ───────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* ── GRID LAYOUTS ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-end { display: flex; justify-content: flex-end; gap: 10px; }
.flex-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-sm { font-size: 12px; }
.mono { font-family: 'DM Mono', monospace; }
.w-full { width: 100%; }

/* ── PAGINATION ────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 16px; justify-content: center; }
.page-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { background: var(--surface3); color: var(--text); }
.page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── CHART PLACEHOLDER ─────────────────────────────────────── */
.chart-area {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 0 0;
}
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent2), var(--accent));
  transition: height 0.5s ease;
  min-height: 4px;
}
.chart-label { font-size: 10px; color: var(--text-dim); text-align: center; }
.chart-val { font-size: 10px; color: var(--text-muted); font-weight: 600; }

/* ── STATUS INDICATOR ──────────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.dot-green   { background: var(--success); box-shadow: 0 0 6px var(--success); }
.dot-amber   { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.dot-red     { background: var(--danger);  box-shadow: 0 0 6px var(--danger); }
.dot-blue    { background: var(--info);    box-shadow: 0 0 6px var(--info); }
.dot-teal    { background: var(--teal);    box-shadow: 0 0 6px var(--teal); }
.dot-gray    { background: var(--text-dim); }

/* ── LOGIN PAGE ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(240,165,0,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74,144,217,0.06) 0%, transparent 50%),
    var(--bg);
}

.login-card {
  width: min(90vw, 400px);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 12px;
}

.login-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.login-subtitle { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.login-error { background: rgba(232,72,85,0.1); border: 1px solid rgba(232,72,85,0.3); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: var(--danger); margin-bottom: 16px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    z-index: 500;
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: block; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modal { width: 96vw; }
  .pipeline { gap: 4px; }
  .pipeline-stage { min-width: 80px; }
}

/* ── MISC ──────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.actions-col { white-space: nowrap; }
.truncate { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Accent color variants for stat cards */
.ac-gold   { --accent-color: var(--accent); }
.ac-teal   { --accent-color: var(--teal); }
.ac-blue   { --accent-color: var(--blue); }
.ac-red    { --accent-color: var(--danger); }
.ac-green  { --accent-color: var(--success); }
.ac-purple { --accent-color: var(--purple); }
