/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F8FAFC;
  color: #1E293B;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: #3B82F6; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-4  { margin-top: 1.5rem; }
.text-danger { color: #EF4444; }
.text-muted  { color: #94A3B8; font-size: 0.85rem; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }

/* ── Screens ─────────────────────────────────────────────────────────────── */
.screen { min-height: 100vh; }

/* ── Login ───────────────────────────────────────────────────────────────── */
.screen-login {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #0F3460 100%);
  min-height: 100vh;
}
.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.login-logo h1  { font-size: 1.4rem; font-weight: 700; color: #0F172A; }
.login-subtitle { font-size: 0.85rem; color: #64748B; margin-top: 0.25rem; }
.login-footer   { text-align: center; font-size: 0.75rem; color: #94A3B8; margin-top: 1.5rem; line-height: 1.5; }

/* ── NDA ─────────────────────────────────────────────────────────────────── */
.screen-nda {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F172A;
  min-height: 100vh;
  padding: 2rem;
}
.nda-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  overflow: hidden;
}
.nda-header { padding: 1.75rem 2rem 1rem; border-bottom: 1px solid #E2E8F0; }
.nda-header h2 { font-size: 1.2rem; font-weight: 700; color: #0F172A; }
.nda-header p  { font-size: 0.85rem; color: #64748B; margin-top: 0.25rem; }
.nda-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
}
.nda-footer { padding: 1rem 2rem 1.5rem; border-top: 1px solid #E2E8F0; }
.nda-scroll-notice {
  text-align: center;
  font-size: 0.8rem;
  color: #F59E0B;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #FFFBEB;
  border-radius: 6px;
}
.nda-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── App Shell ───────────────────────────────────────────────────────────── */
.screen { display: flex; flex-direction: column; }
#screen-app { height: 100vh; overflow: hidden; }

/* Top Bar */
.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.topbar-left  { display: flex; align-items: center; gap: 0.75rem; }
.topbar-right { display: flex; align-items: center; gap: 0.5rem; }
.topbar-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1rem; color: #0F172A; }
.topbar-logo  { height: 28px; width: auto; }
.topbar-user  { font-size: 0.85rem; color: #64748B; }
.sidebar-toggle { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: #64748B; padding: 0.25rem; }

/* App Body */
.app-body { display: flex; flex: 1; overflow: hidden; height: calc(100vh - 56px); }

/* Sidebar */
.sidebar {
  width: 240px;
  background: #0F172A;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  transition: width 0.2s ease;
}
.sidebar.collapsed { width: 0; overflow: hidden; }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-bottom { padding: 0.75rem 0; border-top: 1px solid #1E293B; }

/* Sidebar items */
.sidebar-section {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  color: #CBD5E1;
  font-size: 0.875rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-item:hover { background: #1E293B; color: #F1F5F9; }
.sidebar-item.active { background: #1E293B; color: #fff; border-left-color: #3B82F6; }
.sidebar-item .item-icon { flex-shrink: 0; font-size: 0.9rem; opacity: 0.8; }
.sidebar-item .item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sidebar-folder-children { padding-left: 1rem; }
.sidebar-folder-toggle { font-size: 0.65rem; color: #475569; transition: transform 0.2s; }
.sidebar-folder-toggle.open { transform: rotate(90deg); }

/* Main Content */
.main-content { flex: 1; overflow-y: auto; padding: 1.75rem; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #F1F5F9;
}
.card-header h3 { font-size: 0.95rem; font-weight: 600; color: #0F172A; }
.card-body   { padding: 1.25rem; }
.card-footer { padding: 0.75rem 1.25rem; border-top: 1px solid #F1F5F9; background: #F8FAFC; }
.card-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ── Section Layout ──────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.75rem;
}
.section-header h2 { font-size: 1.15rem; font-weight: 700; color: #0F172A; }

/* ── Stats Grid ──────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.25rem;
}
.stat-card .stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #64748B; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: #0F172A; margin-top: 0.25rem; }
.stat-card .stat-icon  { font-size: 1.5rem; float: right; opacity: 0.4; margin-top: -0.25rem; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #64748B; flex-wrap: wrap; }
.breadcrumb-sep { color: #CBD5E1; }
.breadcrumb-item { cursor: pointer; }
.breadcrumb-item:hover { color: #3B82F6; }
.breadcrumb-item.current { color: #0F172A; font-weight: 600; cursor: default; }

/* ── Files Table ─────────────────────────────────────────────────────────── */
.files-table-wrap { overflow-x: auto; }
.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.files-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  border-bottom: 1px solid #F1F5F9;
  background: #F8FAFC;
}
.files-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #F8FAFC;
  vertical-align: middle;
}
.files-table tr:last-child td { border-bottom: none; }
.files-table tr:hover td { background: #F8FAFC; }
.file-icon { font-size: 1.1rem; margin-right: 0.5rem; }
.file-name { font-weight: 500; color: #0F172A; cursor: pointer; }
.file-name:hover { color: #3B82F6; }
.file-size { color: #64748B; }
.file-date { color: #94A3B8; font-size: 0.8rem; }
.file-actions { display: flex; gap: 0.4rem; white-space: nowrap; }

/* ── Upload Drop Zone ────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #94A3B8;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin: 1rem;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: #3B82F6; background: #EFF6FF; color: #3B82F6; }
.upload-input { display: none; }

/* ── Preview Panel ───────────────────────────────────────────────────────── */
.preview-panel {
  position: fixed;
  right: 0;
  top: 56px;
  bottom: 0;
  width: 55vw;
  max-width: 900px;
  background: #fff;
  border-left: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  transition: transform 0.25s ease;
}
.preview-panel.hidden { transform: translateX(100%); display: flex !important; }
.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(15,23,42,0.3);
}
.preview-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.panel-filename { font-weight: 600; font-size: 0.9rem; color: #0F172A; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-actions  { display: flex; gap: 0.5rem; flex-shrink: 0; }
.panel-content  { flex: 1; overflow: auto; }
.panel-content iframe { width: 100%; height: 100%; border: none; }
.panel-content img    { max-width: 100%; height: auto; display: block; margin: auto; padding: 1rem; }
.panel-no-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 1rem; color: #64748B; }
.panel-no-preview .preview-icon { font-size: 3rem; opacity: 0.4; }

/* ── Activity List ───────────────────────────────────────────────────────── */
.activity-list { font-size: 0.85rem; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #F8FAFC;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3B82F6;
  flex-shrink: 0;
  margin-top: 5px;
}
.activity-dot.download { background: #10B981; }
.activity-dot.login    { background: #F59E0B; }
.activity-dot.admin    { background: #8B5CF6; }
.activity-text { flex: 1; }
.activity-time { color: #94A3B8; font-size: 0.78rem; white-space: nowrap; }

/* ── Q&A ─────────────────────────────────────────────────────────────────── */
.qa-thread {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
}
.qa-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  cursor: pointer;
}
.qa-thread-header:hover { background: #F1F5F9; }
.qa-subject  { font-weight: 600; color: #0F172A; }
.qa-meta     { font-size: 0.78rem; color: #94A3B8; }
.qa-status   { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 9999px; font-weight: 600; }
.qa-status.open     { background: #FEF3C7; color: #92400E; }
.qa-status.answered { background: #D1FAE5; color: #065F46; }
.qa-status.closed   { background: #F1F5F9; color: #64748B; }
.qa-messages { padding: 0.75rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.qa-msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 85%;
}
.qa-msg.user  { background: #EFF6FF; color: #1E3A5F; align-self: flex-start; }
.qa-msg.admin { background: #F0FDF4; color: #14532D; align-self: flex-end; }
.qa-msg-meta  { font-size: 0.75rem; color: #94A3B8; margin-bottom: 0.3rem; }

/* ── Permissions Matrix ──────────────────────────────────────────────────── */
.permissions-wrap { overflow-x: auto; }
.perms-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.perms-table th { padding: 0.65rem 0.75rem; text-align: center; background: #F8FAFC; color: #64748B; font-size: 0.75rem; font-weight: 600; border: 1px solid #E2E8F0; }
.perms-table th.folder-col { text-align: left; min-width: 200px; }
.perms-table td { padding: 0.5rem 0.75rem; border: 1px solid #F1F5F9; text-align: center; vertical-align: middle; }
.perms-table tr:hover td { background: #FAFAFA; }
.perm-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  border: 1.5px solid transparent;
}
.perm-pill.none     { background: #F1F5F9; color: #94A3B8; border-color: #E2E8F0; }
.perm-pill.view     { background: #DBEAFE; color: #1D4ED8; border-color: #BFDBFE; }
.perm-pill.download { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.perm-pill:hover    { opacity: 0.75; transform: scale(1.05); }
.folder-indent { padding-left: calc(var(--depth, 0) * 1.25rem); }

/* ── Audit Log Table ─────────────────────────────────────────────────────── */
.audit-filters { gap: 0.5rem; flex-wrap: wrap; }
.audit-filters input, .audit-filters select {
  padding: 0.4rem 0.65rem;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 0.8rem;
  background: #F8FAFC;
  color: #334155;
}
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.audit-table th { padding: 0.6rem 0.85rem; text-align: left; background: #F8FAFC; color: #64748B; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #E2E8F0; }
.audit-table td { padding: 0.6rem 0.85rem; border-bottom: 1px solid #F8FAFC; vertical-align: top; }
.audit-table tr:hover td { background: #F8FAFC; }
.audit-action { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #3B82F6; }

/* ── Generic Data Tables ─────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { padding: 0.65rem 1rem; text-align: left; background: #F8FAFC; color: #64748B; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #E2E8F0; }
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid #F8FAFC; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FAFAFA; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; }
.badge-admin  { background: #EDE9FE; color: #5B21B6; }
.badge-user   { background: #F1F5F9; color: #64748B; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }
.badge-nda-ok   { background: #D1FAE5; color: #065F46; }
.badge-nda-no   { background: #FEF3C7; color: #92400E; }
.group-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.4rem; }

/* ── Forms & Fields ──────────────────────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1E293B;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.field textarea { resize: vertical; }
.field-row { display: flex; align-items: center; justify-content: space-between; }
.field-row label:first-child { font-size: 0.875rem; font-weight: 500; color: #1E293B; margin: 0; }

/* Toggle Switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #CBD5E1;
  border-radius: 9999px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: #3B82F6; }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 7px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary  { background: #3B82F6; color: #fff; }
.btn-primary:hover  { background: #2563EB; }
.btn-secondary{ background: #F1F5F9; color: #1E293B; }
.btn-secondary:hover{ background: #E2E8F0; }
.btn-ghost    { background: transparent; color: #64748B; }
.btn-ghost:hover    { background: #F1F5F9; color: #1E293B; }
.btn-danger   { background: #EF4444; color: #fff; }
.btn-danger:hover   { background: #DC2626; }
.btn-success  { background: #10B981; color: #fff; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 0.35rem; border-radius: 5px; min-width: 28px; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.alert-danger  { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(2px);
}
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 401;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; color: #0F172A; }
.modal-close { background: none; border: none; cursor: pointer; color: #94A3B8; font-size: 1rem; padding: 0.25rem; }
.modal-close:hover { color: #1E293B; }
.modal-body   { padding: 1.25rem 1.5rem; }
.modal-footer { padding: 0 1.5rem 1.25rem; display: flex; justify-content: flex-end; gap: 0.5rem; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  z-index: 500;
}
.toast {
  min-width: 260px; max-width: 380px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideIn 0.25s ease;
  cursor: pointer;
}
.toast.success { background: #10B981; color: #fff; }
.toast.error   { background: #EF4444; color: #fff; }
.toast.info    { background: #3B82F6; color: #fff; }
@keyframes slideIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #64748B; }
.page-btn { padding: 0.3rem 0.65rem; border: 1px solid #E2E8F0; border-radius: 5px; cursor: pointer; background: #fff; font-size: 0.8rem; }
.page-btn.active { background: #3B82F6; color: #fff; border-color: #3B82F6; }
.page-btn:hover:not(.active) { background: #F1F5F9; }

/* ── Folder Tree (admin) ─────────────────────────────────────────────────── */
.folder-tree-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; border-bottom: 1px solid #F8FAFC; }
.folder-tree-item:hover { background: #F8FAFC; }
.folder-tree-name { flex: 1; font-weight: 500; }
.folder-tree-drive { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #94A3B8; }

/* ── Loading Spinner ─────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner.dark { border-color: rgba(0,0,0,0.1); border-top-color: #3B82F6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: #94A3B8; }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { position: fixed; top: 56px; left: 0; bottom: 0; z-index: 150; transform: translateX(-100%); transition: transform 0.25s; }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.collapsed { transform: translateX(-100%); }
  .preview-panel { width: 100vw; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .main-content { padding: 1rem; }
}
