/* ========================================
   Job Hunt Autopilot – Design System
   Premium Dark Glassmorphism
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Dark theme (default) */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(255,255,255,0.05);
  --bg-card-hover: rgba(255,255,255,0.08);
  --bg-card-border: rgba(255,255,255,0.1);
  --bg-card-border-hover: rgba(255,255,255,0.18);
  --bg-input: rgba(255,255,255,0.06);
  --bg-input-focus: rgba(255,255,255,0.1);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #06b6d4, #3b82f6);
  --accent-gradient-hover: linear-gradient(135deg, #22d3ee, #60a5fa);

  --success: #10b981;
  --success-bg: rgba(16,185,129,0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245,158,11,0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.12);
  --info: #3b82f6;
  --info-bg: rgba(59,130,246,0.12);

  --sidebar-width: 260px;
  --header-height: 0px;
  --mobile-header-height: 56px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(6,182,212,0.15);

  --blur: 12px;
  --blur-heavy: 24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 300ms ease;
  --transition-fast: 150ms ease;
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255,255,255,0.7);
  --bg-card-hover: rgba(255,255,255,0.85);
  --bg-card-border: rgba(0,0,0,0.08);
  --bg-card-border-hover: rgba(0,0,0,0.14);
  --bg-input: rgba(0,0,0,0.04);
  --bg-input-focus: rgba(0,0,0,0.07);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #f8fafc;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(6,182,212,0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.4); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(17,24,39,0.85);
  backdrop-filter: blur(var(--blur-heavy));
  -webkit-backdrop-filter: blur(var(--blur-heavy));
  border-right: 1px solid var(--bg-card-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

[data-theme="light"] .sidebar {
  background: rgba(255,255,255,0.8);
}

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

.brand-icon { font-size: 28px; }
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; }
.brand-accent { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-item.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.nav-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-version { font-size: 12px; color: var(--text-tertiary); }

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  transition: all var(--transition-fast);
}

.theme-toggle:hover { background: var(--bg-card-hover); transform: scale(1.05); }

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ---------- Mobile Header ---------- */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--mobile-header-height);
  background: rgba(17,24,39,0.9);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--bg-card-border);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 101;
}

[data-theme="light"] .mobile-header { background: rgba(255,255,255,0.9); }

.mobile-brand { font-size: 16px; font-weight: 700; }

.mobile-menu-btn {
  width: 32px; height: 32px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ---------- Main Content ---------- */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 32px;
  transition: margin var(--transition);
}

.view-container {
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 300ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-fast);
}

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

.glass-card-static {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-gradient-hover); box-shadow: var(--shadow-md); }

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

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }

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

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }

.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form Inputs ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

.form-input, .form-select {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  background: var(--bg-input-focus);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.form-input::placeholder { color: var(--text-tertiary); }

.form-select {
  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;
}

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary { background: var(--info-bg); color: var(--accent-blue); }
.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-neutral { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--bg-card-border); }

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  gap: 6px;
}

.skill-pill-green { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.skill-pill-blue  { background: var(--info-bg); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.2); }
.skill-pill-neutral { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--bg-card-border); }

/* ---------- Score Gauge (Circular) ---------- */
.score-gauge {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-gauge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--gauge-color, var(--accent-cyan)) calc(var(--score, 0) * 3.6deg),
    rgba(255,255,255,0.08) 0deg
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  animation: gaugeAnim 1s ease-out forwards;
}

.score-gauge .score-value {
  font-size: 16px;
  font-weight: 700;
  z-index: 1;
}

.score-gauge-lg {
  width: 120px;
  height: 120px;
}

.score-gauge-lg::before {
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px));
}

.score-gauge-lg .score-value { font-size: 28px; }

@keyframes gaugeAnim {
  from { opacity: 0; transform: rotate(-90deg); }
  to   { opacity: 1; transform: rotate(-90deg); }
}

/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Job Cards ---------- */
.job-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-card-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.job-card-company { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--text-tertiary); }
.job-card-meta span { display: flex; align-items: center; gap: 4px; }

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--bg-card-border);
}

.job-card-actions { display: flex; gap: 8px; }

/* ---------- Kanban Board ---------- */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.kanban-column-header {
  padding: 16px;
  border-bottom: 1px solid var(--bg-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-column-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kanban-column-count {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.kanban-column-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 80px;
}

.kanban-column-body.drag-over {
  background: rgba(6,182,212,0.05);
  border: 2px dashed rgba(6,182,212,0.3);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.kanban-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: grab;
  transition: all var(--transition-fast);
  font-size: 13px;
}

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

.kanban-card.dragging { opacity: 0.5; cursor: grabbing; }

.kanban-card-title { font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.kanban-card-company { color: var(--text-secondary); font-size: 12px; margin-bottom: 6px; }
.kanban-card-date { color: var(--text-tertiary); font-size: 11px; }

/* ---------- Drag & Drop Zone ---------- */
.drop-zone {
  border: 2px dashed var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.drop-zone:hover, .drop-zone.drag-hover {
  border-color: var(--accent-cyan);
  background: rgba(6,182,212,0.05);
}

.drop-zone-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.drop-zone-text { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.drop-zone-hint { font-size: 13px; color: var(--text-tertiary); }

/* ---------- Side-by-Side Layout ---------- */
.split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.split-panel {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.split-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-card-border);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.split-panel-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  max-height: 60vh;
}

/* Diff highlighting */
.diff-added { background: rgba(16,185,129,0.15); color: var(--success); border-radius: 3px; padding: 1px 4px; }
.diff-removed { background: rgba(239,68,68,0.15); color: var(--danger); text-decoration: line-through; border-radius: 3px; padding: 1px 4px; }

/* ---------- Stats Cards ---------- */
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label { font-size: 13px; color: var(--text-tertiary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.stat-change { font-size: 13px; font-weight: 600; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ---------- Charts (CSS-based) ---------- */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-chart-label {
  font-size: 13px;
  color: var(--text-secondary);
  width: 100px;
  flex-shrink: 0;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-chart-track {
  flex: 1;
  height: 24px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-chart-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.8s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  min-width: 32px;
}

/* Donut chart */
.donut-chart {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.donut-chart-center {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.donut-chart-total { font-size: 24px; font-weight: 800; }
.donut-chart-label { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; }

.donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ---------- Activity Feed ---------- */
.activity-feed { display: flex; flex-direction: column; gap: 0; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-card-border);
  font-size: 13px;
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.activity-text { color: var(--text-secondary); line-height: 1.5; }
.activity-text strong { color: var(--text-primary); font-weight: 600; }
.activity-time { color: var(--text-tertiary); font-size: 12px; margin-top: 2px; }

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

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-title { height: 20px; width: 70%; margin-bottom: 12px; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 200px; border-radius: var(--radius-lg); }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 300ms ease forwards;
  min-width: 280px;
  max-width: 420px;
  backdrop-filter: blur(var(--blur));
}

.toast.removing { animation: toastOut 300ms ease forwards; }

.toast-icon { font-size: 18px; flex-shrink: 0; }

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

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state-icon { font-size: 64px; margin-bottom: 20px; display: block; opacity: 0.6; }
.empty-state-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state-text { font-size: 14px; color: var(--text-secondary); max-width: 400px; margin: 0 auto; line-height: 1.6; }

/* ---------- Insight / Tip Panel ---------- */
.insight-panel {
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(59,130,246,0.08));
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.insight-panel-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-panel ul { list-style: none; padding: 0; }
.insight-panel li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.insight-panel li::before { content: '→'; color: var(--accent-cyan); font-weight: 700; flex-shrink: 0; }

/* ---------- Resume Sections ---------- */
.resume-section {
  border-bottom: 1px solid var(--bg-card-border);
  padding: 20px 0;
}
.resume-section:last-child { border-bottom: none; }

.resume-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.resume-entry { margin-bottom: 16px; }
.resume-entry:last-child { margin-bottom: 0; }
.resume-entry-title { font-weight: 600; font-size: 15px; }
.resume-entry-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.resume-entry-body { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 8px; }

/* Inline editing */
.editable {
  outline: none;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: all var(--transition-fast);
}
.editable:hover { background: var(--bg-input); }
.editable:focus { background: var(--bg-input-focus); box-shadow: 0 0 0 2px rgba(6,182,212,0.2); }

/* ---------- Changes Summary Panel ---------- */
.changes-list { list-style: none; padding: 0; }
.changes-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-card-border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.changes-list li:last-child { border-bottom: none; }
.changes-list .change-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-right: 8px;
}

/* ---------- Status Indicator ---------- */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.offline { background: var(--text-tertiary); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .kanban-board { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .split-view { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }

  .mobile-header { display: flex; }

  .main-content {
    margin-left: 0;
    padding: 16px;
    padding-top: calc(var(--mobile-header-height) + 16px);
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .kanban-board {
    grid-template-columns: repeat(6, minmax(200px, 1fr));
    overflow-x: auto;
  }

  .section-title { font-size: 20px; }
}

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relative { position: relative; }
