/* Support logging console — Grafana Explore Logs–inspired layout (upload site functional UI) */
:root {
  --sll-bg: #0f1419;
  --sll-panel: #1a222c;
  --sll-line: #2d3748;
  --sll-text: #e2e8f0;
  --sll-muted: #94a3b8;
  --sll-info: #38bdf8;
  --sll-warn: #fbbf24;
  --sll-error: #f87171;
  --sll-debug: #64748b;
  --sll-accent: #047857;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--sll-bg);
  color: var(--sll-text);
  min-height: 100vh;
}
.sll-page-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--sll-line);
  background: var(--sll-panel);
}
.sll-page-head h1 { margin: 8px 0 4px; font-size: 22px; }
.sll-page-head p { margin: 0; font-size: 13px; color: var(--sll-muted); max-width: 880px; line-height: 1.5; }
.sll-back { color: var(--sll-info); text-decoration: none; font-size: 13px; font-weight: 600; }
.sll-page-main { padding: 0; max-width: none; margin: 0; }

.sll-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  min-height: calc(100vh - 120px);
}
@media (max-width: 900px) {
  .sll-layout { grid-template-columns: 1fr; }
}
.sll-sidebar {
  border-right: 1px solid var(--sll-line);
  padding: 16px;
  background: #121820;
}
.sll-sidebar-title { margin: 0 0 8px; font-size: 15px; }
.sll-sidebar-hint { font-size: 12px; color: var(--sll-muted); line-height: 1.45; margin: 0 0 16px; }
.sll-field { display: block; font-size: 12px; color: var(--sll-muted); margin-bottom: 12px; }
.sll-field select,
.sll-field input {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: var(--sll-panel);
  border: 1px solid var(--sll-line);
  color: var(--sll-text);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}
.sll-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.sll-actions button {
  background: var(--sll-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.sll-actions button:last-child {
  background: transparent;
  border: 1px solid var(--sll-line);
  color: var(--sll-muted);
}
.sll-browser-security h3 { font-size: 13px; margin: 0 0 8px; }
.sll-browser-security ul { margin: 0; padding-left: 18px; font-size: 11px; color: var(--sll-muted); line-height: 1.5; }
.sll-mini { font-size: 11px; color: var(--sll-muted); line-height: 1.45; margin: 10px 0 0; }

.sll-main { padding: 16px 20px 32px; overflow: auto; }
.sll-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; font-size: 12px; }
.sll-stat { background: var(--sll-panel); border: 1px solid var(--sll-line); padding: 6px 10px; border-radius: 8px; color: var(--sll-muted); }
.sll-stat b { color: var(--sll-text); margin-left: 4px; }
.sll-stat-error b { color: var(--sll-error); }
.sll-stat-warn b { color: var(--sll-warn); }

.sll-histogram {
  background: var(--sll-panel);
  border: 1px solid var(--sll-line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  min-height: 72px;
}
.sll-bars { display: flex; align-items: flex-end; gap: 3px; height: 52px; }
.sll-bar { flex: 1; min-width: 4px; background: linear-gradient(180deg, var(--sll-info), #0369a1); border-radius: 2px 2px 0 0; opacity: 0.85; }
.sll-empty-bar { margin: 0; font-size: 12px; color: var(--sll-muted); }

.sll-eco-title { font-size: 12px; color: var(--sll-muted); margin: 0 0 8px; }
.sll-ecosystem { margin-bottom: 14px; }

.sll-table-wrap {
  border: 1px solid var(--sll-line);
  border-radius: 10px;
  overflow: auto;
  max-height: min(50vh, 420px);
  background: var(--sll-panel);
}
.sll-table { width: 100%; border-collapse: collapse; font-size: 11px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.sll-table th {
  text-align: left;
  padding: 8px 10px;
  background: #121820;
  color: var(--sll-muted);
  position: sticky;
  top: 0;
}
.sll-table td { padding: 7px 10px; border-top: 1px solid var(--sll-line); vertical-align: top; }
.sll-table tr { cursor: pointer; }
.sll-table tr:hover { background: rgba(56, 189, 248, 0.08); }
.sll-error td:nth-child(2) { color: var(--sll-error); }
.sll-warn td:nth-child(2) { color: var(--sll-warn); }

.sll-detail {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--sll-line);
  border-radius: 10px;
  background: #121820;
}
.sll-detail h3 { margin: 0 0 8px; font-size: 13px; }
.sll-detail pre {
  font-size: 11px;
  overflow: auto;
  max-height: 200px;
  margin: 0 0 10px;
  color: var(--sll-muted);
}
.sll-detail button {
  background: transparent;
  border: 1px solid var(--sll-line);
  color: var(--sll-muted);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}

.sll-map { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sll-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--sll-line);
  background: var(--sll-panel);
  cursor: pointer;
  color: var(--sll-muted);
}
button.sll-chip { font: inherit; }
.sll-chip:hover,
.sll-chip-active { border-color: var(--sll-accent); color: var(--sll-text); background: rgba(4, 120, 87, 0.15); }

.sll-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
}
.sll-toolbar label { display: flex; align-items: center; gap: 6px; color: var(--sll-muted); }
.sll-toolbar select,
.sll-toolbar input {
  background: var(--sll-panel);
  border: 1px solid var(--sll-line);
  color: var(--sll-text);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}
.sll-toolbar button {
  background: var(--sll-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.sll-open-full {
  font-size: 12px;
  font-weight: 600;
  color: var(--sll-accent);
  text-decoration: none;
}
.sll-toolbar button:last-of-type { background: transparent; border: 1px solid var(--sll-line); color: var(--sll-muted); }

.sll-timeline {
  background: var(--sll-panel);
  border: 1px solid var(--sll-line);
  border-radius: 10px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}
.sll-row {
  display: grid;
  grid-template-columns: 168px 88px 1fr;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--sll-line);
  align-items: baseline;
}
.sll-row time { color: var(--sll-muted); }
.sll-svc { color: var(--sll-info); font-weight: 600; }
.sll-msg { word-break: break-word; }
.sll-error .sll-msg { color: var(--sll-error); }
.sll-warn .sll-msg { color: var(--sll-warn); }
.sll-empty { padding: 24px; color: var(--sll-muted); margin: 0; text-align: center; }
.sll-hint { font-size: 12px; color: var(--sll-muted); margin: 12px 20px 24px; line-height: 1.45; max-width: 960px; }

#tabPanelLogging .sll-timeline { max-height: 360px; background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }
#tabPanelLogging .sll-row { border-color: #e2e8f0; }
#tabPanelLogging .sll-svc { color: #0369a1; }
#tabPanelLogging .sll-toolbar button:last-of-type { color: #475569; }
#tabPanelLogging .sll-hint { color: #64748b; }
#tabPanelLogging .sll-chip { background: #fff; border-color: #e2e8f0; color: #475569; }
