/* ============================================================
   CRM AUTOMOTRIZ — IACUBEK | crm.css v1.0
   Aesthetic: Executive Dark + Clean Data
   ============================================================ */

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

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --sidebar-w:      240px;
  --topbar-h:       60px;
  --bg-main:        #0f1117;
  --bg-sidebar:     #0a0d14;
  --bg-card:        #161b27;
  --bg-card2:       #1c2233;
  --bg-input:       #1c2233;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.15);
  --accent:         #e63946;
  --accent-light:   rgba(230,57,70,0.12);
  --accent2:        #4895ef;
  --accent2-light:  rgba(72,149,239,0.12);
  --success:        #52b788;
  --success-light:  rgba(82,183,136,0.12);
  --warning:        #f8961e;
  --warning-light:  rgba(248,150,30,0.12);
  --danger:         #e63946;
  --text-primary:   #e8eaf0;
  --text-secondary: #7b8299;
  --text-muted:     #4a5168;
  --font-main:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --radius:         10px;
  --radius-sm:      6px;
  --radius-lg:      16px;
  --shadow:         0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.3);
  --transition:     0.18s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset y Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ─── Layout ─────────────────────────────────────────────── */
.crm-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

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

/* ─── Sidebar Brand ─────────────────────────────────────── */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  min-height: 68px;
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  flex-shrink: 0;
}

.brand-logo { height: 36px; width: auto; object-fit: contain; flex-shrink: 0; }

.brand-text { flex: 1; min-width: 0; }
.brand-name {
  display: block;
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  display: block;
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}

.sidebar-toggle-btn {
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 18px; cursor: pointer; padding: 4px;
}

/* ─── Sidebar User ──────────────────────────────────────── */
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-muted); }

/* ─── Sidebar Nav ───────────────────────────────────────── */
.sidebar-nav { flex: 1; padding: 8px 0; }

.nav-section {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
  padding: 14px 16px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  color: var(--text-secondary);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  position: relative;
  cursor: pointer;
}
.nav-item i { font-size: 16px; flex-shrink: 0; width: 18px; text-align: center; }
.nav-item span { flex: 1; }
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); text-decoration: none; }
.nav-item.active {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.nav-item.logout { color: var(--text-muted); }
.nav-item.logout:hover { color: var(--danger); background: rgba(230,57,70,0.08); }

.nav-badge {
  background: var(--accent);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 20px;
  line-height: 1.6;
}

/* ─── Sidebar Footer ────────────────────────────────────── */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

/* ─── Topbar ─────────────────────────────────────────────── */
.crm-topbar {
  height: var(--topbar-h);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 16px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-toggle {
  background: none; border: none;
  color: var(--text-secondary); font-size: 20px;
  cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: color var(--transition);
  display: none;
}
.topbar-toggle:hover { color: var(--text-primary); }

.breadcrumb { margin: 0; }
.breadcrumb-item { font-size: 13px; color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item+.breadcrumb-item::before { color: var(--text-muted); }

.topbar-icon-btn {
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 18px; cursor: pointer;
  padding: 6px 8px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.topbar-icon-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; border: 2px solid var(--bg-sidebar);
}

.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  position: relative;
}
.topbar-search i { color: var(--text-muted); font-size: 14px; }
.topbar-search input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 13px; font-family: var(--font-main);
  width: 220px;
}
.topbar-search input::placeholder { color: var(--text-muted); }

.search-results-dropdown {
  position: absolute; top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 300px; overflow-y: auto;
}
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  cursor: pointer; font-size: 13px;
  transition: background var(--transition);
}
.search-result-item:hover { background: rgba(255,255,255,0.04); }
.search-result-item i { color: var(--text-muted); }

/* ─── Notificaciones Dropdown ───────────────────────────── */
.notif-dropdown {
  width: 340px; padding: 0;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
}
.btn-link-sm { background: none; border: none; color: var(--accent2); font-size: 12px; cursor: pointer; padding: 0; }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition);
  font-size: 12.5px;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { border-left: 3px solid var(--accent2); }
.notif-title { font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-msg { color: var(--text-secondary); }
.notif-time { color: var(--text-muted); font-size: 11px; margin-top: 3px; }
.notif-empty { text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px; }

/* ─── Page Content ──────────────────────────────────────── */
.page-content {
  padding: 24px;
  flex: 1;
}

/* ─── Cards ─────────────────────────────────────────────── */
.crm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
}
.crm-card:hover { border-color: var(--border-hover); }
.crm-card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

/* ─── KPI Cards ─────────────────────────────────────────── */
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative; overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.kpi-card:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.kpi-card::after {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--kpi-color, var(--accent));
  opacity: 0.06;
}
.kpi-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; font-family: var(--font-mono); }
.kpi-value .kpi-unit { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.kpi-icon {
  position: absolute; right: 18px; top: 18px;
  font-size: 22px;
  color: var(--kpi-color, var(--accent));
  opacity: 0.7;
}
.kpi-change { font-size: 12px; margin-top: 8px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.kpi-change.up   { color: var(--success); }
.kpi-change.down { color: var(--danger); }

/* ─── Tables ─────────────────────────────────────────────── */
.crm-table-wrapper { overflow-x: auto; }
.crm-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13.5px;
}
.crm-table thead th {
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.crm-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.crm-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.crm-table tbody td {
  padding: 11px 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.crm-table tbody tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 6px; }
.btn-icon {
  background: none; border: none;
  color: var(--text-muted); font-size: 15px;
  cursor: pointer; padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.btn-icon:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.btn-icon.danger:hover { color: var(--danger); background: var(--accent-light); }

/* ─── Formularios ───────────────────────────────────────── */
.form-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.form-control, .form-select {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important; font-family: var(--font-main) !important;
  padding: 9px 12px !important;
  transition: border-color var(--transition) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent2) !important;
  box-shadow: 0 0 0 3px rgba(72,149,239,0.12) !important;
  background: var(--bg-input) !important;
}
.form-control::placeholder { color: var(--text-muted) !important; }
.form-select option { background: var(--bg-card2); color: var(--text-primary); }
textarea.form-control { min-height: 100px; resize: vertical; }

/* ─── Botones ─────────────────────────────────────────────── */
.btn { font-family: var(--font-main); font-weight: 600; font-size: 13px; border-radius: var(--radius-sm); transition: all var(--transition); }
.btn-primary   { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.btn-primary:hover { background: #c1121f !important; border-color: #c1121f !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(230,57,70,0.3) !important; }
.btn-secondary { background: var(--bg-card2) !important; border-color: var(--border) !important; color: var(--text-primary) !important; }
.btn-secondary:hover { background: rgba(255,255,255,0.08) !important; border-color: var(--border-hover) !important; }
.btn-success   { background: var(--success) !important; border-color: var(--success) !important; }
.btn-info      { background: var(--accent2) !important; border-color: var(--accent2) !important; color: #fff !important; }
.btn-warning   { background: var(--warning) !important; border-color: var(--warning) !important; color: #fff !important; }
.btn-outline-secondary { border-color: var(--border) !important; color: var(--text-secondary) !important; }
.btn-outline-secondary:hover { background: rgba(255,255,255,0.05) !important; }
.btn-sm { padding: 5px 10px !important; font-size: 12px !important; }
.btn-lg { padding: 12px 22px !important; font-size: 15px !important; }

/* ─── Badges ─────────────────────────────────────────────── */
.crm-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
}

/* Semáforo días inventario */
.dias-badge {
  display: inline-block;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
}
.dias-badge.verde   { background: var(--success-light); color: var(--success); }
.dias-badge.amarillo{ background: var(--warning-light); color: var(--warning); }
.dias-badge.rojo    { background: var(--accent-light); color: var(--accent); }

/* ─── Avatares ───────────────────────────────────────────── */
.crm-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700;
  flex-shrink: 0; text-transform: uppercase;
}

/* ─── Pipeline Kanban ───────────────────────────────────── */
.pipeline-board {
  display: flex; gap: 16px;
  overflow-x: auto; padding-bottom: 16px;
  align-items: flex-start;
}
.pipeline-col {
  min-width: 260px; max-width: 280px; flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pipeline-col-header {
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.pipeline-col-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pipeline-col-count {
  background: var(--bg-card2);
  color: var(--text-muted); font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 20px;
}
.pipeline-cards { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 80px; }

.pipeline-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.pipeline-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.pipeline-card.dragging { opacity: 0.5; transform: rotate(2deg); }
.pc-vehiculo { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.pc-cliente  { font-size: 12px; color: var(--text-secondary); }
.pc-precio   { font-size: 12px; font-family: var(--font-mono); color: var(--accent2); margin-top: 6px; }
.pc-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.pc-asesor { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ─── Lead Detail ────────────────────────────────────────── */
.lead-timeline { position: relative; padding-left: 28px; }
.lead-timeline::before {
  content: '';
  position: absolute; left: 9px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-dot {
  position: absolute; left: -28px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-card2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.timeline-content {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.timeline-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.timeline-tipo { font-size: 12px; font-weight: 700; }
.timeline-time { font-size: 11px; color: var(--text-muted); }
.timeline-nota { font-size: 13px; color: var(--text-secondary); }

/* ─── Formulario Builder Preview ─────────────────────────── */
.form-preview {
  max-width: 480px; margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ─── Charts ─────────────────────────────────────────────── */
.chart-container { position: relative; }

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 12px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Filtros ─────────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-bar .form-control,
.filter-bar .form-select { min-width: 150px; flex: 1; }

/* ─── Alertas ─────────────────────────────────────────────── */
.crm-alerts { padding: 0 24px; }
.crm-alert {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13.5px;
  display: flex; align-items: center; gap: 10px;
}
.crm-alert.alert-success { border-color: rgba(82,183,136,0.3); background: var(--success-light); color: var(--success); }
.crm-alert.alert-danger  { border-color: rgba(230,57,70,0.3);  background: var(--accent-light);  color: var(--accent); }
.crm-alert.alert-warning { border-color: rgba(248,150,30,0.3); background: var(--warning-light); color: var(--warning); }
.crm-alert.alert-info    { border-color: rgba(72,149,239,0.3); background: var(--accent2-light); color: var(--accent2); }

/* ─── Modales ─────────────────────────────────────────────── */
.modal-content {
  background: var(--bg-card2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--text-primary) !important;
}
.modal-header {
  border-bottom: 1px solid var(--border) !important;
  padding: 16px 20px !important;
}
.modal-footer { border-top: 1px solid var(--border) !important; }
.modal-title { font-size: 16px; font-weight: 700; }
.btn-close { filter: invert(1); }

/* ─── Login Page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-main);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(230,57,70,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(72,149,239,0.06) 0%, transparent 60%);
}
.login-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .brand-icon { width: 56px; height: 56px; font-size: 26px; margin: 0 auto 12px; }
.login-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }

/* ─── Sidebar overlay mobile ────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .crm-sidebar { transform: translateX(-100%); }
  .crm-sidebar.open { transform: translateX(0); }
  .crm-main { margin-left: 0; }
  .sidebar-overlay.active { display: block; }
  .topbar-toggle { display: block; }
  .page-content { padding: 16px; }
}
@media (max-width: 576px) {
  .topbar-search { display: none; }
  .pipeline-board { gap: 12px; }
  .kpi-value { font-size: 22px; }
}

/* ─── Drag & Drop ────────────────────────────────────────── */
.drag-over { background: rgba(72,149,239,0.06) !important; border-color: var(--accent2) !important; }
.sortable-ghost { opacity: 0.3; }

/* ─── Misc Utils ─────────────────────────────────────────── */
.text-mono { font-family: var(--font-mono); }
.text-accent  { color: var(--accent) !important; }
.text-accent2 { color: var(--accent2) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted-crm { color: var(--text-muted) !important; }
.border-top-crm { border-top: 1px solid var(--border); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state i { font-size: 40px; display: block; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; }
.loading-spinner { display: flex; justify-content: center; padding: 40px; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
