/* =============================================================
   Workforce – Design System
   Primary: #E8552A  Accent: #F5A623  Background: #FAF8F5
   ============================================================= */

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

:root {
  --primary:      #E8552A;
  --primary-dark: #C93F17;
  --primary-light:#FDF0EB;
  --accent:       #F5A623;
  --accent-light: #FEF3DC;
  --bg:           #FAF8F5;
  --bg-card:      #FFFFFF;
  --text:         #1A1A1A;
  --text-muted:   #6B7280;
  --text-light:   #9CA3AF;
  --border:       #E5E7EB;
  --border-light: #F3F4F6;
  --success:      #10B981;
  --success-bg:   #D1FAE5;
  --warning:      #F59E0B;
  --warning-bg:   #FEF3C7;
  --danger:       #EF4444;
  --danger-bg:    #FEE2E2;
  --info:         #3B82F6;
  --info-bg:      #DBEAFE;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.12);
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:   .18s ease;
  --sidebar-w:    260px;
  --nav-h:        64px;
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:  var(--bg);
  color:       var(--text);
  line-height: 1.6;
  min-height:  100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Layout ---------- */
.app-wrapper { display: flex; min-height: 100vh; }

/* ---------- Top Navigation ---------- */
.topnav {
  position:   fixed;
  top: 0; left: 0; right: 0;
  height:     var(--nav-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display:    flex;
  align-items: center;
  padding:    0 24px;
  z-index:    200;
  box-shadow: var(--shadow-sm);
}
.topnav .brand {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-weight: 700;
  font-size:   1.2rem;
  color:       var(--text);
  min-width:   var(--sidebar-w);
  text-decoration: none;
}
.brand-logo {
  width:        36px;
  height:       36px;
  background:   linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display:      flex;
  align-items:  center;
  justify-content: center;
  color:        #fff;
  font-weight:  800;
  font-size:    1rem;
}
.topnav-right {
  display:     flex;
  align-items: center;
  gap:         12px;
  margin-left: auto;
}
.topnav-user {
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     6px 12px;
  border-radius: var(--radius-sm);
  cursor:      pointer;
  color:       var(--text);
  font-weight: 500;
  transition:  background var(--transition);
}
.topnav-user:hover { background: var(--bg); }
.avatar {
  width:          36px;
  height:         36px;
  border-radius:  50%;
  background:     linear-gradient(135deg, var(--primary), var(--accent));
  color:          #fff;
  display:        flex;
  align-items:    center;
  justify-content: center;
  font-weight:    700;
  font-size:      .85rem;
  flex-shrink:    0;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position:    fixed;
  top:         var(--nav-h);
  left:        0;
  bottom:      0;
  width:       var(--sidebar-w);
  background:  var(--bg-card);
  border-right: 1px solid var(--border);
  overflow-y:  auto;
  z-index:     100;
  padding:     20px 0 40px;
  scrollbar-width: thin;
}
.sidebar-section { padding: 0 12px; margin-bottom: 24px; }
.sidebar-label {
  font-size:    .7rem;
  font-weight:  600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color:        var(--text-light);
  padding:      0 8px;
  margin-bottom: 6px;
}
.nav-item {
  display:      flex;
  align-items:  center;
  gap:          10px;
  padding:      9px 12px;
  border-radius: var(--radius-sm);
  color:        var(--text-muted);
  font-weight:  500;
  cursor:       pointer;
  transition:   all var(--transition);
  text-decoration: none;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background:  var(--primary);
  color:       #fff;
  font-size:   .7rem;
  font-weight: 700;
  padding:     1px 7px;
  border-radius: 999px;
  min-width:   20px;
  text-align:  center;
}

/* ---------- Main Content ---------- */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top:  var(--nav-h);
  padding:     28px 32px;
  flex: 1;
  min-width:   0;
}

/* ---------- Page Header ---------- */
.page-header {
  display:       flex;
  align-items:   flex-start;
  gap:           16px;
  margin-bottom: 28px;
}
.page-header-text { flex: 1; }
.page-header h1 {
  font-size:   1.7rem;
  font-weight: 700;
  color:       var(--text);
  line-height: 1.2;
}
.page-header p {
  color:     var(--text-muted);
  font-size: .9rem;
  margin-top: 4px;
}
.page-header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ---------- Hero Banner ---------- */
.hero-banner {
  background:    linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding:       32px 36px;
  color:         #fff;
  margin-bottom: 28px;
  position:      relative;
  overflow:      hidden;
}
.hero-banner::before {
  content:  '';
  position: absolute;
  top: -40px; right: -40px;
  width:  220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-banner::after {
  content:  '';
  position: absolute;
  bottom: -60px; right: 80px;
  width:  160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero-banner h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.hero-banner p  { opacity: .85; font-size: .95rem; }
.hero-logo {
  position: absolute; right: 36px; top: 50%;
  transform: translateY(-50%);
  font-size: 4rem; opacity: .15;
}

/* ---------- Cards ---------- */
.card {
  background:    var(--bg-card);
  border-radius: var(--radius);
  border:        1px solid var(--border);
  box-shadow:    var(--shadow-sm);
  overflow:      hidden;
}
.card-header {
  display:     flex;
  align-items: center;
  gap:         12px;
  padding:     18px 24px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  font-size:   1rem;
  font-weight: 650;
  color:       var(--text);
  flex: 1;
}
.card-header-actions { display: flex; gap: 8px; }
.card-body { padding: 24px; }
.card-footer {
  padding:    14px 24px;
  border-top: 1px solid var(--border);
  background: var(--border-light);
  display:    flex;
  align-items: center;
  gap:        12px;
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:                   16px;
  margin-bottom:         24px;
}
.stat-card {
  background:    var(--bg-card);
  border-radius: var(--radius);
  border:        1px solid var(--border);
  padding:       20px 22px;
  display:       flex;
  align-items:   center;
  gap:           16px;
  box-shadow:    var(--shadow-sm);
  transition:    box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon {
  width:          48px;
  height:         48px;
  border-radius:  12px;
  display:        flex;
  align-items:    center;
  justify-content: center;
  font-size:      1.4rem;
  flex-shrink:    0;
}
.stat-icon.orange { background: var(--primary-light); color: var(--primary); }
.stat-icon.green  { background: var(--success-bg);    color: var(--success); }
.stat-icon.blue   { background: var(--info-bg);       color: var(--info); }
.stat-icon.yellow { background: var(--accent-light);  color: var(--accent); }
.stat-icon.red    { background: var(--danger-bg);     color: var(--danger); }
.stat-value {
  font-size:   1.75rem;
  font-weight: 700;
  line-height: 1;
  color:       var(--text);
}
.stat-label {
  font-size:  .8rem;
  color:      var(--text-muted);
  margin-top: 3px;
}

/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1100px) {
  .grid-2, .grid-3, .grid-sidebar { grid-template-columns: 1fr; }
}

/* ---------- Table ---------- */
.table-wrapper { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.data-table thead th {
  background:    var(--border-light);
  color:         var(--text-muted);
  font-weight:   600;
  font-size:     .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding:       10px 14px;
  text-align:    left;
  border-bottom: 1px solid var(--border);
  white-space:   nowrap;
}
.data-table thead th.sortable { cursor: pointer; user-select: none; }
.data-table thead th.sortable:hover { color: var(--primary); }
.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition:    background var(--transition);
}
.data-table tbody tr:hover { background: var(--primary-light); }
.data-table tbody td {
  padding: 11px 14px;
  color:   var(--text);
  vertical-align: middle;
}
.data-table tbody td.muted { color: var(--text-muted); }
.data-table tfoot td {
  padding:    10px 14px;
  color:      var(--text-muted);
  font-size:  .82rem;
  border-top: 1px solid var(--border);
}

/* ---------- Badges ---------- */
.badge {
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  padding:       2px 9px;
  border-radius: 999px;
  font-size:     .75rem;
  font-weight:   600;
  line-height:   1.5;
}
.badge-aktiv      { background: var(--success-bg); color: var(--success); }
.badge-neu        { background: var(--info-bg);    color: var(--info); }
.badge-transition { background: var(--warning-bg); color: var(--warning); }
.badge-beendet    { background: var(--danger-bg);  color: var(--danger); }
.badge-admin      { background: var(--primary-light); color: var(--primary); }
.badge-fachanwender { background: var(--accent-light); color: #B45309; }
.badge-konsument  { background: var(--border-light); color: var(--text-muted); }
.badge-orange     { background: var(--primary-light); color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display:      inline-flex;
  align-items:  center;
  gap:          7px;
  padding:      8px 18px;
  border-radius: var(--radius-sm);
  border:       none;
  font-weight:  600;
  font-size:    .875rem;
  cursor:       pointer;
  transition:   all var(--transition);
  text-decoration: none;
  white-space:  nowrap;
  line-height:  1;
}
.btn:hover { text-decoration: none; }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--border-light); color: var(--text-muted); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; color: #fff; }
.btn-warning   { background: var(--warning); color: #fff; }
.btn-ghost     { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-sm   { padding: 5px 12px; font-size: .8rem; }
.btn-lg   { padding: 12px 28px; font-size: 1rem; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-snapshot {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,85,42,.3);
}
.btn-snapshot:hover { box-shadow: 0 4px 14px rgba(232,85,42,.4); color: #fff; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label {
  display:     block;
  font-weight: 600;
  font-size:   .85rem;
  color:       var(--text);
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); }
.form-control {
  width:         100%;
  padding:       9px 12px;
  border:        1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background:    var(--bg-card);
  color:         var(--text);
  font-size:     .9rem;
  transition:    border-color var(--transition), box-shadow var(--transition);
  outline:       none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow:   0 0 0 3px rgba(232,85,42,.12);
}
.form-control::placeholder { color: var(--text-light); }
.form-control[readonly], .form-control[disabled] {
  background: var(--border-light);
  color:      var(--text-muted);
  cursor:     not-allowed;
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ---------- Search / Filter Bar ---------- */
.filter-bar {
  display:    flex;
  gap:        10px;
  flex-wrap:  wrap;
  align-items: center;
  margin-bottom: 18px;
}
.filter-bar .form-control { max-width: 220px; }
.search-input-wrap { position: relative; }
.search-input-wrap .search-icon {
  position:  absolute;
  left:      10px; top: 50%;
  transform: translateY(-50%);
  color:     var(--text-light);
  pointer-events: none;
}
.search-input-wrap .form-control { padding-left: 34px; }

/* ---------- Inline Edit ---------- */
.inline-edit-container { position: relative; }
.inline-display {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: border-color var(--transition), background var(--transition);
  min-height: 28px;
}
.inline-display:hover {
  border-color: var(--primary);
  background:   var(--primary-light);
}
.inline-display::after {
  content:     ' ✎';
  color:       var(--primary);
  font-size:   .75rem;
  opacity:     0;
  transition:  opacity var(--transition);
}
.inline-display:hover::after { opacity: 1; }
.inline-form { display: none; }
.inline-form.active { display: flex; gap: 6px; align-items: flex-start; }
.inline-form .form-control { flex: 1; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-item {
  padding:     10px 20px;
  color:       var(--text-muted);
  font-weight: 500;
  cursor:      pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition:  all var(--transition);
  text-decoration: none;
  font-size:   .9rem;
}
.tab-item:hover { color: var(--primary); text-decoration: none; }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 650; }

/* ---------- Progress Bar ---------- */
.progress-bar {
  background:    var(--border);
  border-radius: 999px;
  height:        8px;
  overflow:      hidden;
}
.progress-fill {
  height:        100%;
  border-radius: 999px;
  background:    linear-gradient(90deg, var(--primary), var(--accent));
  transition:    width .4s ease;
}
.progress-fill.green  { background: var(--success); }
.progress-fill.blue   { background: var(--info); }

/* ---------- Knowledge Distribution ---------- */
.knowledge-bar {
  display:       flex;
  border-radius: 999px;
  overflow:      hidden;
  height:        10px;
  gap:           2px;
}
.knowledge-internal { background: var(--primary); height: 100%; }
.knowledge-external { background: var(--accent);  height: 100%; }
.knowledge-legend {
  display:    flex;
  gap:        16px;
  font-size:  .8rem;
  color:      var(--text-muted);
  margin-top: 6px;
}
.legend-dot {
  display:       inline-block;
  width:         10px; height: 10px;
  border-radius: 50%;
  margin-right:  4px;
}
.legend-dot.primary { background: var(--primary); }
.legend-dot.accent  { background: var(--accent); }

/* ---------- Timeline / Status Flow ---------- */
.occupation-flow {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-size:   .85rem;
  flex-wrap:   wrap;
}
.flow-arrow { color: var(--text-light); font-size: 1rem; }

/* ---------- Alerts / Notifications ---------- */
.alert {
  padding:       12px 16px;
  border-radius: var(--radius-sm);
  font-size:     .875rem;
  display:       flex;
  align-items:   flex-start;
  gap:           10px;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-bg); color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger  { background: var(--danger-bg);  color: #991B1B; border: 1px solid #FCA5A5; }
.alert-warning { background: var(--warning-bg); color: #92400E; border: 1px solid #FCD34D; }
.alert-info    { background: var(--info-bg);    color: #1E40AF; border: 1px solid #93C5FD; }

/* ---------- Modal ---------- */
.modal-overlay {
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,.45);
  z-index:    500;
  display:    flex;
  align-items: center;
  justify-content: center;
  padding:    20px;
  opacity:    0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background:    var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-lg);
  width:         100%;
  max-width:     640px;
  max-height:    90vh;
  overflow-y:    auto;
  transform:     translateY(16px);
  transition:    transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding:       20px 28px 16px;
  border-bottom: 1px solid var(--border);
  display:       flex;
  align-items:   center;
  gap:           12px;
}
.modal-header h2 { flex: 1; font-size: 1.1rem; font-weight: 700; }
.modal-body   { padding: 24px 28px; }
.modal-footer {
  padding:    16px 28px 20px;
  border-top: 1px solid var(--border);
  display:    flex;
  gap:        10px;
  justify-content: flex-end;
}

/* ---------- Snapshot Card ---------- */
.snapshot-card {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       18px 22px;
  display:       flex;
  align-items:   center;
  gap:           16px;
  transition:    box-shadow var(--transition);
}
.snapshot-card:hover { box-shadow: var(--shadow); }
.snapshot-icon {
  width:          46px; height: 46px;
  background:     var(--primary-light);
  border-radius:  10px;
  display:        flex;
  align-items:    center;
  justify-content: center;
  font-size:      1.3rem;
  color:          var(--primary);
  flex-shrink:    0;
}
.snapshot-info { flex: 1; min-width: 0; }
.snapshot-name { font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snapshot-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.snapshot-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Pagination ---------- */
.pagination {
  display:    flex;
  gap:        4px;
  align-items: center;
  justify-content: center;
  padding:    16px 0 0;
}
.page-link {
  padding:       6px 12px;
  border-radius: var(--radius-sm);
  border:        1px solid var(--border);
  color:         var(--text-muted);
  font-size:     .875rem;
  cursor:        pointer;
  background:    var(--bg-card);
  transition:    all var(--transition);
  text-decoration: none;
}
.page-link:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); text-decoration: none; }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link:disabled, .page-link.disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Charts ---------- */
.chart-wrapper { position: relative; }
.chart-title { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Login Page ---------- */
.login-page {
  min-height: 100vh;
  display:    flex;
  background: var(--bg);
}
.login-left {
  width:      45%;
  background: linear-gradient(160deg, var(--primary) 0%, var(--accent) 100%);
  display:    flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:    60px 48px;
  color:      #fff;
  position:   relative;
  overflow:   hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.login-left::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.login-right {
  flex: 1;
  display:    flex;
  align-items: center;
  justify-content: center;
  padding:    40px;
}
.login-box {
  width:         100%;
  max-width:     420px;
}
.login-box h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.login-box p.sub { color: var(--text-muted); margin-bottom: 32px; }
@media (max-width: 768px) {
  .login-left { display: none; }
  .login-right { padding: 24px; }
}

/* ---------- Tooltips ---------- */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content:       attr(data-tooltip);
  position:      absolute;
  bottom:        calc(100% + 6px);
  left:          50%;
  transform:     translateX(-50%);
  background:    #1A1A1A;
  color:         #fff;
  font-size:     .75rem;
  padding:       4px 10px;
  border-radius: var(--radius-sm);
  white-space:   nowrap;
  opacity:       0;
  pointer-events: none;
  transition:    opacity var(--transition);
  z-index:       999;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ---------- Utilities ---------- */
.text-primary { color: var(--primary); }
.text-muted   { color: var(--text-muted); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-sm      { font-size: .85rem; }
.text-xs      { font-size: .75rem; }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.fw-bold      { font-weight: 700; }
.fw-600       { font-weight: 600; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.w-full  { width: 100%; }
.hidden  { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Monitoring Bar ---------- */
.monitoring-bar {
  display:       flex;
  align-items:   center;
  gap:           24px;
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:       10px 18px;
  font-size:     .8rem;
  color:         var(--text-muted);
  margin-bottom: 20px;
}
.monitoring-bar .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  margin-right: 5px;
}
.monitoring-bar .dot.warn { background: var(--warning); }
.monitoring-bar .dot.err  { background: var(--danger); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #CCC; }
