/* ===================================================
   CyberThulir LMS Inspired Theme — NexaCorp StaffPortal
   =================================================== */

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

:root {
  --ct-bg:           #f3f4f8;
  --ct-surface:      #ffffff;
  --ct-border:       #eaedf6;
  --ct-border-hover: #d8b4fe;
  
  --ct-purple:       #7c3aed;
  --ct-purple-hover: #6d28d9;
  --ct-purple-light: #f3e8ff;
  --ct-purple-glow:  rgba(124, 58, 237, 0.18);
  
  --ct-blue:         #3b82f6;
  --ct-blue-light:   #eff6ff;
  
  --ct-text:         #1e293b;
  --ct-muted:        #64748b;
  --ct-muted-light:  #94a3b8;
  
  --ct-success:      #10b981;
  --ct-error:        #ef4444;
  --ct-warn:         #f59e0b;
  
  --ct-radius:       16px;
  --ct-radius-sm:    10px;
  --ct-radius-xs:    6px;
  
  --ct-shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(124, 58, 237, 0.03);
  --ct-shadow:       0 4px 20px -2px rgba(124, 58, 237, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --ct-shadow-lg:    0 10px 30px -4px rgba(124, 58, 237, 0.12);
  
  --mono:            'JetBrains Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ct-bg);
  color: var(--ct-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================
   TOPBAR HEADER
   =================================================== */
.topbar {
  background: var(--ct-surface);
  color: var(--ct-text);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ct-border);
  box-shadow: var(--ct-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-menu-btn {
  background: transparent;
  border: none;
  color: var(--ct-muted);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  margin: 0;
}

.topbar-menu-btn:hover {
  background: var(--ct-purple-light);
  color: var(--ct-purple);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-swirl {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1e1b4b;
}

.brand-sub {
  font-weight: 500;
  color: var(--ct-purple);
  font-size: 13px;
  margin-left: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon-btn {
  background: transparent;
  border: none;
  color: var(--ct-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .15s, color .15s;
  margin: 0;
}

.topbar-icon-btn:hover {
  background: #f1f5f9;
  color: var(--ct-text);
}

.notification-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--ct-error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ct-surface);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ct-purple-light);
  color: var(--ct-purple);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #e9d5ff;
}

/* ===================================================
   MAIN TABBAR (CyberThulir Pill Tabs)
   =================================================== */
.tabbar {
  background: var(--ct-surface);
  border-bottom: 1px solid var(--ct-border);
  padding: 10px 28px;
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--ct-muted);
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  border-radius: var(--ct-radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .18s ease;
  margin: 0;
}

.tab-btn:hover {
  color: var(--ct-text);
  background: #f8fafc;
}

.tab-btn.active {
  background: var(--ct-purple-light);
  color: var(--ct-purple);
  font-weight: 700;
}

.tab-btn.active svg {
  stroke: var(--ct-purple);
}

/* ===================================================
   TAB VIEWS
   =================================================== */
.tab-view { flex: 1; }

#view-target {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
}

.toolkit-main {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: calc(100vh - 110px);
}

.toolkit-header-bar {
  background: #f8fafc;
  padding: 12px 28px;
  border-bottom: 1px solid var(--ct-border);
}

.toolkit-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolkit-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
}

.toolkit-subtitle {
  font-size: 12px;
  color: var(--ct-muted);
  background: var(--ct-surface);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--ct-border);
  font-weight: 500;
}

/* ===================================================
   TOOLKIT INNER TABBAR
   =================================================== */
.toolkit-tabbar {
  background: var(--ct-surface);
  border-bottom: 1px solid var(--ct-border);
  padding: 8px 24px;
  display: flex;
  gap: 6px;
}

.toolkit-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ct-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--ct-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all .15s ease;
  margin: 0;
}

.toolkit-tab-btn:hover {
  color: var(--ct-text);
  background: #f8fafc;
}

.toolkit-tab-btn.active {
  background: var(--ct-purple);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.toolkit-tab-btn.active svg {
  stroke: white;
}

/* ===================================================
   TOOLKIT BODY & PANES
   =================================================== */
.toolkit-body { flex: 1; display: flex; flex-direction: column; }

.toolkit-tab-pane { flex: 1; display: none; }
.toolkit-tab-pane.active { display: flex; flex-direction: column; }

/* ===================================================
   TRAFFIC LOG PANE
   =================================================== */
.traffic-pane {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.traffic-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.traffic-table-wrap {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  overflow: hidden;
  box-shadow: var(--ct-shadow);
}

.traffic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.traffic-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--ct-border);
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--ct-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.traffic-table thead th:first-child { width: 48px; text-align: center; }

.traffic-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background .12s;
  cursor: pointer;
}

.traffic-table tbody tr:last-child { border-bottom: none; }
.traffic-table tbody tr:hover { background: #faf5ff; }
.traffic-table tbody tr.selected { background: var(--ct-purple-light); }

.traffic-table td {
  padding: 11px 16px;
  vertical-align: middle;
  font-family: var(--mono);
}

.traffic-table td:first-child { text-align: center; color: var(--ct-muted-light); font-size: 12px; }

.method-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .03em;
}
.method-GET    { background: #dcfce7; color: #15803d; }
.method-POST   { background: var(--ct-purple-light); color: var(--ct-purple); }
.method-PUT    { background: #fef3c7; color: #b45309; }
.method-DELETE { background: #fee2e2; color: #b91c1c; }
.method-PATCH  { background: #f3e8ff; color: #6b21a8; }
.method-OTHER  { background: #f1f5f9; color: #475569; }

.status-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
}
.status-2xx { background: #dcfce7; color: #15803d; }
.status-3xx { background: #fef3c7; color: #b45309; }
.status-4xx { background: #fee2e2; color: #b91c1c; }
.status-5xx { background: #f1f5f9; color: #dc2626; }
.status-pending { color: var(--ct-muted); font-style: italic; }

.traffic-table td.url-cell {
  color: var(--ct-text);
  font-weight: 500;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-table td.time-cell { color: var(--ct-muted); white-space: nowrap; }
.traffic-table td.size-cell { color: var(--ct-muted); text-align: right; }

.traffic-empty-row td { padding: 0 !important; border: none !important; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 20px;
  color: var(--ct-muted-light);
  text-align: center;
}

.empty-state svg { stroke: var(--ct-purple); opacity: 0.5; }
.empty-state p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ct-muted); }

/* Context Menu */
.ctx-menu {
  position: fixed;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  box-shadow: var(--ct-shadow-lg);
  padding: 6px;
  z-index: 9999;
  min-width: 200px;
  animation: ctxFade .12s ease;
}

@keyframes ctxFade {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ct-text);
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, color .12s;
}

.ctx-item:hover { background: var(--ct-purple-light); color: var(--ct-purple); }
.ctx-item svg { flex-shrink: 0; }

/* Detail Panel */
.traffic-detail {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  overflow: hidden;
  box-shadow: var(--ct-shadow);
}

.detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--ct-border);
  background: #f8fafc;
  padding: 0 16px;
}

.detail-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ct-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  top: 1px;
  transition: color .13s;
}

.detail-tab-btn.active {
  color: var(--ct-purple);
  border-bottom-color: var(--ct-purple);
  font-weight: 700;
}

.detail-body {
  margin: 0;
  padding: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 240px;
  overflow-y: auto;
  line-height: 1.65;
}

/* ===================================================
   REPEATER PANE
   =================================================== */
.repeater-pane {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.repeater-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.repeater-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  flex: 1;
  min-height: 440px;
}

.repeater-col {
  display: flex;
  flex-direction: column;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  overflow: hidden;
  box-shadow: var(--ct-shadow);
}

.repeater-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ct-border);
  background: #f8fafc;
}

.repeater-col-label {
  font-size: 12px;
  font-weight: 800;
  color: #1e1b4b;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.repeater-actions { display: flex; gap: 8px; align-items: center; }

.btn-send {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ct-purple);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--ct-radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.22);
  transition: all .15s ease;
  margin: 0;
}

.btn-send:hover { background: var(--ct-purple-hover); transform: translateY(-1px); }
.btn-send:active { transform: translateY(0); }

.btn-secondary-sm {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  color: var(--ct-muted);
  padding: 7px 14px;
  border-radius: var(--ct-radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .13s ease;
  margin: 0;
}

.btn-secondary-sm:hover { background: #f8fafc; color: var(--ct-text); }

.repeater-status-badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  transition: all .2s;
}

.repeater-textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ct-text);
  background: var(--ct-surface);
  tab-size: 4;
}

.repeater-textarea:focus { background: #faf5ff; }

.repeater-response-box {
  flex: 1;
  margin: 0;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-y: auto;
  line-height: 1.65;
}

.badge-2xx { background: #dcfce7; color: #15803d; }
.badge-3xx { background: #fef3c7; color: #b45309; }
.badge-4xx { background: #fee2e2; color: #b91c1c; }
.badge-5xx { background: #fce7f3; color: #9d174d; }
.badge-err { background: #f1f5f9; color: var(--ct-muted); }

/* ===================================================
   ENCODER / DECODER PANE
   =================================================== */
.encoder-pane {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.enc-card {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 24px 28px;
  box-shadow: var(--ct-shadow);
}

.enc-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ct-border);
}

.enc-card-header h3 { margin: 0 0 3px; font-size: 16px; font-weight: 700; color: #0f172a; }
.enc-card-header p  { margin: 0; }

.enc-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.enc-icon-b64 { background: #eff6ff; color: #2563eb; }
.enc-icon-aes { background: var(--ct-purple-light); color: var(--ct-purple); }

.enc-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: start;
}

.enc-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enc-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  gap: 6px;
  align-self: stretch;
  padding-top: 28px;
}

.enc-divider-line {
  flex: 1;
  width: 1px;
  background: var(--ct-border);
}

.enc-divider-icon {
  font-size: 16px;
  color: var(--ct-muted-light);
}

.enc-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ct-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.enc-textarea {
  width: 100%;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  color: var(--ct-text);
  background: var(--ct-surface);
}

.enc-textarea:focus {
  border-color: var(--ct-purple);
  box-shadow: 0 0 0 4px var(--ct-purple-glow);
}

.enc-textarea.enc-textarea-out {
  background: #f8fafc;
  color: var(--ct-purple);
  font-weight: 500;
  cursor: text;
}

.enc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 9px 18px;
  border-radius: var(--ct-radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  align-self: flex-start;
  margin: 0;
}

.enc-btn:active { transform: scale(.98); }

.enc-btn-primary {
  background: var(--ct-purple);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.enc-btn-primary:hover { background: var(--ct-purple-hover); }

.enc-btn-secondary {
  background: #1e1b4b;
  color: white;
}
.enc-btn-secondary:hover { background: #312e81; }

.enc-key-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--ct-radius-sm);
  border: 1px solid var(--ct-border);
}

.enc-key-field { display: flex; flex-direction: column; gap: 6px; position: relative; }

.enc-input {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-sm);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.enc-input:focus {
  border-color: var(--ct-purple);
  box-shadow: 0 0 0 4px var(--ct-purple-glow);
}

.enc-char-count {
  font-size: 11px;
  color: var(--ct-muted);
  font-family: var(--mono);
  text-align: right;
}

.enc-char-count.valid { color: var(--ct-success); font-weight: 700; }
.enc-char-count.invalid { color: var(--ct-error); }

.tool-status { font-size: 12.5px; color: var(--ct-error); min-height: 14px; margin: 0; }

/* ===================================================
   TARGET SITE CARD
   =================================================== */
.card-center {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--ct-shadow);
  position: relative;
}

.card-badge-pill {
  display: inline-block;
  background: var(--ct-purple-light);
  color: var(--ct-purple);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card h1 { font-size: 22px; margin: 0 0 8px; font-weight: 800; color: #0f172a; }
.subtle  { color: var(--ct-muted); font-size: 13.5px; margin: 0 0 22px; }

form label {
  display: block;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 16px;
}

form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

form input:focus {
  border-color: var(--ct-purple);
  box-shadow: 0 0 0 4px var(--ct-purple-glow);
}

.btn-purple-glow {
  background: var(--ct-purple);
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: var(--ct-radius-sm);
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
  transition: all .15s ease;
  width: 100%;
  margin: 8px 0 0;
}

.btn-purple-glow:hover {
  background: var(--ct-purple-hover);
  transform: translateY(-1px);
}

.credentials-note {
  margin-top: 16px;
  background: var(--ct-purple-light);
  border: 1px solid #e9d5ff;
  border-radius: var(--ct-radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  color: #5b21b6;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.credentials-note code {
  background: #ffffff;
  color: var(--ct-purple);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #ddd6fe;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-actions button {
  flex: 1;
}

button.secondary {
  background: var(--ct-surface);
  color: var(--ct-text);
  border: 1px solid var(--ct-border);
  padding: 11px 16px;
  border-radius: var(--ct-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  margin: 8px 0 0;
}

button.secondary:hover { background: #f8fafc; }

.role-pill {
  background: var(--ct-purple-light);
  color: var(--ct-purple);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.status { font-size: 13px; color: var(--ct-error); margin-top: 14px; min-height: 16px; font-weight: 600; }

.output {
  margin-top: 20px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--ct-radius-sm);
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 24px;
}

.hidden { display: none !important; }

/* ===================================================
   FOOTER
   =================================================== */
footer {
  text-align: center;
  font-size: 12px;
  color: var(--ct-muted);
  padding: 18px;
  border-top: 1px solid var(--ct-border);
  background: var(--ct-surface);
}

/* ===================================================
   SCROLLBAR
   =================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ct-muted); }

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

.traffic-table tbody tr { animation: fadeIn .15s ease; }
