/* ============================================================
   ExpenseDesk – Complete Design System
   IBM-inspired Dark Professional Theme
   ============================================================ */

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

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

:root {
  /* Background */
  --bg-app:      #030712;
  --bg-surface:  #0a0f1e;
  --bg-card:     #0d1526;
  --bg-card-2:   #111d35;
  --bg-hover:    #162040;
  --bg-input:    #0f1a2e;
  --bg-sidebar:  #060c1a;

  /* Borders */
  --border:         #1a2540;
  --border-focus:   #2563eb;
  --border-subtle:  #0f1a2e;

  /* Text */
  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #4b6080;
  --text-dim:       #2d4a6e;

  /* Accent */
  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --accent-light:   #60a5fa;
  --accent-glow:    rgba(37, 99, 235, 0.25);

  /* Success / Warning / Error */
  --success:  #10b981;
  --warning:  #f59e0b;
  --error:    #ef4444;

  /* Projects */
  --project-radon-color:   #60a5fa;
  --project-radon-bg:      rgba(59, 130, 246, 0.12);
  --project-radon-border:  rgba(59, 130, 246, 0.25);
  --project-bbs-color:     #a78bfa;
  --project-bbs-bg:        rgba(139, 92, 246, 0.12);
  --project-bbs-border:    rgba(139, 92, 246, 0.25);
  --project-other-color:   #9ca3af;
  --project-other-bg:      rgba(107, 114, 128, 0.12);
  --project-other-border:  rgba(107, 114, 128, 0.25);

  /* Categories */
  --cat-food-color:        #fbbf24;
  --cat-food-bg:           rgba(251, 191, 36, 0.1);
  --cat-hardware-color:    #60a5fa;
  --cat-hardware-bg:       rgba(96, 165, 250, 0.1);
  --cat-transport-color:   #34d399;
  --cat-transport-bg:      rgba(52, 211, 153, 0.1);
  --cat-production-color:  #f87171;
  --cat-production-bg:     rgba(248, 113, 113, 0.1);
  --cat-stationery-color:  #a78bfa;
  --cat-stationery-bg:     rgba(167, 139, 250, 0.1);
  --cat-others-color:      #9ca3af;
  --cat-others-bg:         rgba(156, 163, 175, 0.1);

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

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

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(37,99,235,0.15);

  /* Transition */
  --t-fast: 0.15s ease;
  --t-med:  0.25s ease;
  --t-slow: 0.4s ease;

  /* Sidebar */
  --sidebar-w: 220px;
  --sidebar-collapsed: 64px;

  /* Header */
  --header-h: 60px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 0.9375rem; }
p  { color: var(--text-secondary); }
a  { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: 'IBM Plex Mono', monospace; font-size: 0.85em; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--gap-sm);
  padding: 9px 18px; border-radius: var(--r-md);
  font-family: inherit; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; border: none; outline: none;
  transition: all var(--t-fast); white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.45); }
.btn-secondary {
  background: var(--bg-card-2); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--accent); }
.btn-danger {
  background: rgba(239,68,68,0.12); color: var(--error);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { padding: 6px 12px; font-size: 0.8125rem; border-radius: var(--r-sm); }
.btn-lg { padding: 12px 24px; font-size: 0.9375rem; border-radius: var(--r-lg); }
.btn-icon { padding: 8px; border-radius: var(--r-md); }
.btn-full { width: 100%; justify-content: center; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--gap-sm); }
.form-label {
  font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 14px;
  font-family: inherit; font-size: 0.9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-select option { background: var(--bg-card); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); }
.form-error { font-size: 0.75rem; color: var(--error); }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 500; white-space: nowrap;
}
.badge-project-ibm-radon      { background: var(--project-radon-bg); color: var(--project-radon-color); border: 1px solid var(--project-radon-border); }
.badge-project-ibm-bhubaneswar { background: var(--project-bbs-bg); color: var(--project-bbs-color); border: 1px solid var(--project-bbs-border); }
.badge-project-others          { background: var(--project-other-bg); color: var(--project-other-color); border: 1px solid var(--project-other-border); }
.badge-cat-food        { background: var(--cat-food-bg); color: var(--cat-food-color); }
.badge-cat-hardware    { background: var(--cat-hardware-bg); color: var(--cat-hardware-color); }
.badge-cat-transport   { background: var(--cat-transport-bg); color: var(--cat-transport-color); }
.badge-cat-production  { background: var(--cat-production-bg); color: var(--cat-production-color); }
.badge-cat-stationery  { background: var(--cat-stationery-bg); color: var(--cat-stationery-color); }
.badge-cat-others      { background: var(--cat-others-bg); color: var(--cat-others-color); }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--gap-lg);
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--gap-md); padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Upload Zone ───────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--r-lg);
  padding: var(--gap-xl) var(--gap-lg);
  text-align: center; cursor: pointer;
  transition: all var(--t-med);
  background: var(--bg-input);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent); background: rgba(37,99,235,0.05);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 2.5rem; margin-bottom: var(--gap-sm); }
.upload-text { color: var(--text-secondary); font-size: 0.9rem; }
.upload-hint { font-size: 0.775rem; color: var(--text-muted); margin-top: 4px; }
.upload-preview {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  max-height: 220px; background: var(--bg-input);
  border: 1px solid var(--border);
}
.upload-preview img {
  width: 100%; max-height: 220px; object-fit: contain; display: block;
}
.upload-preview-remove {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.7); color: #fff;
  border: none; border-radius: var(--r-full); width: 28px; height: 28px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.upload-preview-remove:hover { background: var(--error); }

/* ── Table ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  background: var(--bg-card-2); color: var(--text-muted);
  padding: 11px 14px; text-align: left;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; border-bottom: 1px solid var(--border);
  user-select: none; cursor: pointer;
}
thead th:hover { color: var(--text-primary); }
tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast);
  cursor: pointer;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td { padding: 11px 14px; color: var(--text-secondary); vertical-align: middle; }
tbody td.amount { color: var(--success); font-weight: 600; font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
tbody td.no-data { text-align: center; padding: 48px; color: var(--text-muted); }
.thumb-img {
  width: 40px; height: 40px; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  cursor: pointer;
}
.thumb-placeholder {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--bg-card-2); border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.9rem;
}

/* ── Summary Cards ─────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap-md);
}
.summary-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--gap-lg);
  position: relative; overflow: hidden;
  transition: all var(--t-med);
}
.summary-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--accent));
}
.summary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--card-accent, var(--accent)); }
.summary-card .card-icon { font-size: 1.8rem; margin-bottom: var(--gap-sm); }
.summary-card .card-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.summary-card .card-amount { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); font-family: 'IBM Plex Mono', monospace; }
.summary-card .card-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.summary-card .card-bar { height: 4px; border-radius: 2px; background: var(--border); margin-top: var(--gap-sm); overflow: hidden; }
.summary-card .card-bar-fill { height: 100%; border-radius: 2px; background: var(--card-accent, var(--accent)); transition: width var(--t-slow); }

/* ── Filters Bar ───────────────────────────────────────────── */
.filters-bar {
  display: flex; flex-wrap: wrap; gap: var(--gap-sm);
  padding: var(--gap-md); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  margin-bottom: var(--gap-md);
}
.filter-select {
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 7px 32px 7px 12px; font-size: 0.8125rem; font-family: inherit;
  cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color var(--t-fast);
}
.filter-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.filter-select option { background: var(--bg-card); }
.filter-date { display: flex; align-items: center; gap: 6px; }
.filter-date input[type="date"] {
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 7px 12px; font-size: 0.8125rem; font-family: inherit;
  outline: none; color-scheme: dark;
}
.filter-date input[type="date"]:focus { border-color: var(--accent); }
.filter-date span { color: var(--text-muted); font-size: 0.8rem; }
.filters-right { margin-left: auto; display: flex; gap: var(--gap-sm); }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3,7,18,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gap-lg);
  opacity: 0; pointer-events: none; transition: opacity var(--t-med);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t-med);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--gap-lg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.modal-close {
  background: var(--bg-hover); border: none; color: var(--text-secondary);
  width: 32px; height: 32px; border-radius: var(--r-full);
  cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--error); color: #fff; }
.modal-body { padding: var(--gap-lg); display: flex; flex-direction: column; gap: var(--gap-lg); }
.modal-screenshot {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-input);
  max-height: 340px; display: flex; align-items: center; justify-content: center;
}
.modal-screenshot img { max-width: 100%; max-height: 340px; object-fit: contain; display: block; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.detail-value { font-size: 0.9375rem; color: var(--text-primary); }
.detail-amount { font-size: 1.5rem; font-weight: 700; color: var(--success); font-family: 'IBM Plex Mono', monospace; }

/* ── Toast ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: slideInRight var(--t-med) forwards;
  pointer-events: all;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
.toast.info    { border-left: 3px solid var(--accent-light); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast-icon { font-size: 1rem; }
.toast-hide { animation: slideOutRight var(--t-med) forwards; }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; background: var(--bg-surface); border-radius: var(--r-md); padding: 3px; width: fit-content; }
.tab-btn {
  padding: 7px 18px; border-radius: var(--r-sm); border: none;
  background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all var(--t-fast);
}
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.tab-btn:hover:not(.active) { color: var(--text-secondary); background: var(--bg-hover); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Project Selector Cards ────────────────────────────────── */
.project-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-sm); }
.project-card {
  padding: 14px; border-radius: var(--r-md);
  border: 2px solid var(--border); background: var(--bg-input);
  cursor: pointer; text-align: center;
  transition: all var(--t-fast);
}
.project-card:hover { border-color: var(--card-color); background: var(--card-bg); }
.project-card.selected { border-color: var(--card-color); background: var(--card-bg); box-shadow: 0 0 12px var(--card-glow); }
.project-card .pname { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); margin-top: 6px; }
.project-card .pdot { width: 10px; height: 10px; border-radius: 50%; margin: 0 auto; }

/* ── Category Selector ─────────────────────────────────────── */
.category-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-sm); }
.category-card {
  padding: 10px 8px; border-radius: var(--r-md);
  border: 2px solid var(--border); background: var(--bg-input);
  cursor: pointer; text-align: center;
  transition: all var(--t-fast);
}
.category-card:hover { border-color: var(--card-color); }
.category-card.selected { border-color: var(--card-color); background: var(--card-bg); }
.category-card .cicon { font-size: 1.25rem; }
.category-card .cname { font-size: 0.72rem; font-weight: 600; margin-top: 4px; color: var(--text-secondary); }
.category-card.selected .cname { color: var(--card-color); }

/* ── Statement Import ──────────────────────────────────────── */
.transaction-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.transaction-item {
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: var(--gap-sm); align-items: start;
  transition: border-color var(--t-fast);
}
.transaction-item.selected { border-color: var(--accent); background: rgba(37,99,235,0.06); }
.transaction-checkbox { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; cursor: pointer; }
.transaction-info { display: flex; flex-direction: column; gap: 4px; }
.transaction-desc { font-size: 0.875rem; color: var(--text-primary); font-weight: 500; }
.transaction-date { font-size: 0.75rem; color: var(--text-muted); }
.transaction-controls { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.transaction-amount { font-size: 0.9375rem; font-weight: 600; color: var(--success); font-family: 'IBM Plex Mono', monospace; }
.transaction-selects { display: flex; gap: 4px; }
.transaction-selects select {
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 4px 6px; font-size: 0.72rem; font-family: inherit; outline: none;
  appearance: none; cursor: pointer;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

.fade-in { animation: fadeIn var(--t-med) ease; }
.slide-up { animation: slideUp var(--t-med) ease both; }

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

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

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 64px 24px; gap: var(--gap-md);
  color: var(--text-muted); text-align: center;
}
.empty-icon { font-size: 3rem; opacity: 0.4; }
.empty-text { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.empty-hint { font-size: 0.8125rem; color: var(--text-muted); }

/* ── Section Header ────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--gap-lg);
}
.section-title { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }
.section-subtitle { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* ── User Avatar ───────────────────────────────────────────── */
.avatar {
  width: 32px; height: 32px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.75rem; color: #fff;
  flex-shrink: 0;
}
.avatar-lg { width: 44px; height: 44px; font-size: 1rem; }

/* ── Stat inline ───────────────────────────────────────────── */
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.stat-value { font-size: 0.9375rem; font-weight: 600; font-family: 'IBM Plex Mono', monospace; color: var(--text-primary); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .project-selector { grid-template-columns: repeat(3, 1fr); }
  .category-selector { grid-template-columns: repeat(3, 1fr); }
  .filters-bar { flex-direction: column; }
  .filters-right { margin-left: 0; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .summary-grid { grid-template-columns: 1fr; }
  .project-selector { grid-template-columns: 1fr; }
}

/* ── Utility ───────────────────────────────────────────────── */
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-sm { gap: var(--gap-sm); } .gap-md { gap: var(--gap-md); } .gap-lg { gap: var(--gap-lg); }
.mt-sm { margin-top: var(--gap-sm); } .mt-md { margin-top: var(--gap-md); } .mt-lg { margin-top: var(--gap-lg); }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); } .text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); } .text-error { color: var(--error); }
.font-mono { font-family: 'IBM Plex Mono', monospace; }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; }
.w-full { width: 100%; } .hidden { display: none !important; }
