@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

/* ============================================================
   MyKollectOr® — fab.css — Mode Clair — v1.1
   fab.mykollector.com
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #F5F7FA;
  --bg-card:      #FFFFFF;
  --bg-card-alt:  #F0F2F5;
  --accent:       #C8A84B;
  --accent-hover: #B8942F;
  --accent-light: rgba(200,168,75,0.12);
  --text:         #1A2638;
  --text-muted:   #6B7A8D;
  --text-light:   #9BA8B8;
  --border:       #DDE2EA;
  --border-light: #EEF0F4;
  --danger:       #D63A3A;
  --danger-light: #FFF0F0;
  --success:      #2A8C4E;
  --success-light:#E8F8EE;
  --warning:      #D97706;
  --warning-light:#FFF7E6;
  --info:         #2563EB;
  --info-light:   #EFF6FF;
  --shadow-sm:    0 1px 3px rgba(26,38,56,0.06);
  --shadow:       0 2px 8px rgba(26,38,56,0.10);
  --shadow-lg:    0 4px 20px rgba(26,38,56,0.14);
  --radius:       8px;
  --radius-sm:    4px;
  --radius-lg:    12px;
  --font:         'Montserrat', 'Segoe UI', Arial, sans-serif;
  --header-h:     60px;
  --sidebar-w:    220px;
  --transition:   0.18s ease;
}

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

html { font-size: 15px; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); }
h3 { font-size: 1rem;   font-weight: 600; color: var(--text); }

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

/* ── Layout ─────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding-top: var(--header-h);
  min-height: 100vh;
  overflow-x: hidden;
  min-width: 0;
}

.page-body {
  padding: 28px 32px;
  max-width: 1200px;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 12px; }

.header-back {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: none; background: none;
  transition: background var(--transition), color var(--transition);
}
.header-back:hover { background: var(--bg-card-alt); color: var(--text); }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--text);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo .brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.sidebar-logo .sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.sidebar-user {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

.sidebar-user .name { font-weight: 600; color: #fff; font-size: 0.82rem; }

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

.nav-section {
  padding: 10px 20px 4px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}

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

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.btn-logout {
  width: 100%;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.btn-logout:hover { background: rgba(255,255,255,0.1); color: #fff; }

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

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

/* ── KPI Cards ──────────────────────────────────────────────── */
.kpi-grid { display: grid; gap: 16px; margin-bottom: 24px; }
.kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kpi-grid-4 { grid-template-columns: repeat(4, 1fr); }

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.kpi-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

.btn-primary-full {
  background: var(--accent);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.9rem;
}
.btn-primary-full:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

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

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #c03030; color: #fff; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); color: var(--accent); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-alt); color: var(--text); text-decoration: none; }

.btn-sm { padding: 5px 12px; font-size: 0.77rem; }
.btn-lg { padding: 13px 28px; font-size: 0.95rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-optional { font-weight: 400; color: var(--text-muted); font-size: 0.72rem; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-control::placeholder { color: var(--text-light); }
.form-control[readonly] { background: var(--bg-card-alt); cursor: default; color: var(--text-muted); }

select.form-control { cursor: pointer; }

textarea.form-control { resize: vertical; min-height: 90px; }

.form-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Radio / Checkbox */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.radio-item:hover { border-color: var(--accent); background: var(--accent-light); }
.radio-item input[type=radio], .radio-item input[type=checkbox] { accent-color: var(--accent); }

/* Password toggle */
.input-group {
  position: relative;
}
.input-group .form-control { padding-right: 44px; }
.input-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 1rem;
  color: var(--text-muted);
  padding: 2px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

thead th {
  background: var(--bg-card-alt);
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-card-alt); }

tbody td {
  padding: 10px 14px;
  vertical-align: middle;
}

/* ── Badges / Status ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger  { background: var(--danger-light);  color: var(--danger);  }
.badge-info    { background: var(--info-light);    color: var(--info);    }
.badge-muted   { background: var(--bg-card-alt);   color: var(--text-muted); }
.badge-accent  { background: var(--accent-light);  color: var(--accent);  }

/* ── Alerts & Banners ───────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

.alert-danger  { background: var(--danger-light);  color: var(--danger);  border-left: 3px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-left: 3px solid var(--warning); }
.alert-success { background: var(--success-light); color: var(--success); border-left: 3px solid var(--success); }
.alert-info    { background: var(--info-light);    color: var(--info);    border-left: 3px solid var(--info); }

/* ── Lock box (texte gravure) ───────────────────────────────── */
.lock-box {
  background: #FAFBFC;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text);
}

.lock-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--danger);
}

.lock-box-footer {
  margin-top: 14px;
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

.lock-line {
  padding: 3px 0;
  border-bottom: 1px dashed var(--border-light);
}
.lock-line:last-child { border-bottom: none; }

/* ── Progress bars (stock) ──────────────────────────────────── */
.stock-item { margin-bottom: 14px; }
.stock-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 5px;
  color: var(--text);
}
.stock-count { color: var(--text-muted); font-size: 0.75rem; }

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.progress-fill.low   { background: var(--danger); }
.progress-fill.mid   { background: var(--warning); }
.progress-fill.ok    { background: var(--success); }

/* ── Chat ───────────────────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h) - 48px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg { max-width: 65%; }
.msg-left { align-self: flex-start; }
.msg-right { align-self: flex-end; }

.msg-author {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 600;
}
.msg-right .msg-author { text-align: right; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.5;
}
.msg-left .msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top-left-radius: 2px;
}
.msg-right .msg-bubble {
  background: var(--accent);
  color: #fff;
  border-top-right-radius: 2px;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 3px;
}
.msg-right .msg-time { text-align: right; }

.chat-input {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input textarea {
  flex: 1;
  resize: none;
  height: 44px;
  min-height: 44px;
}

/* ── Notifications ──────────────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--bg-card-alt); }
.notif-item.unread { background: var(--accent-light); }
.notif-item.unread:hover { background: rgba(200,168,75,0.18); }

.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-item:not(.unread) .notif-dot { background: transparent; }

.notif-body { flex: 1; }
.notif-title { font-size: 0.84rem; font-weight: 600; color: var(--text); }
.notif-time  { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ── Lot item ───────────────────────────────────────────────── */
.lot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.lot-item:hover { box-shadow: var(--shadow); }
.lot-info .lot-title { font-weight: 700; font-size: 0.92rem; }
.lot-info .lot-meta  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ── Login page ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.login-card {
  width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.login-logo .brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.login-logo .medal-icon { font-size: 2.5rem; margin-bottom: 6px; }

.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.25s ease;
  max-width: 340px;
  pointer-events: auto;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.toast.fade-out { animation: fadeOut 0.3s ease forwards; }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  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;
  display: inline-block;
}
.spinner-dark {
  border-color: var(--border);
  border-top-color: var(--accent);
}

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

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 8000;
  backdrop-filter: blur(2px);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26,38,56,0.45);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 460px;
  max-width: 95vw;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-body { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Admin badge ────────────────────────────────────────────── */
.admin-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

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

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.84rem;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7A8D' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.415l-3.868-3.833zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") 10px center no-repeat;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--accent); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.page-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Steps guide ────────────────────────────────────────────── */
.steps-list { list-style: none; counter-reset: steps; }
.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(steps);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; }

.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--success); }
.text-warning{ color: var(--warning); }
.text-small  { font-size: 0.78rem; }
.text-bold   { font-weight: 700; }
.mono        { font-family: 'Courier New', monospace; letter-spacing: 0.02em; }

.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

.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; }
.flex-1 { flex: 1; }

/* ── No sidebar layout (login pages) ────────────────────────── */
.no-sidebar .main-content { margin-left: 0; padding-top: 0; }

/* ── File upload ─────────────────────────────────────────────── */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.file-upload:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.file-upload input { display: none; }

/* ── Agent status ────────────────────────────────────────────── */
.agent-status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.83rem;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.ok    { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.warn  { background: var(--warning); }
.status-dot.error { background: var(--danger);  }
