/* =========================================================
   SentimenLab — Design tokens
   Tema: STMIK Widya Cipta Dharma — Ungu & Violet
   Default: Light Mode | Toggle: Dark Mode
   ========================================================= */
:root {
  /* ── Light Mode — Lavender & Purple ── */
  --bg: #F5F3FF;
  --surface: #FFFFFF;
  --surface-2: #EDE9FE;
  --border: #D4C9F8;
  --text: #1E1040;
  --text-muted: #5B4E8A;
  --text-dim: #9B87C4;

  /* Aksen ungu STMIK Widya Cipta Dharma */
  --accent: #6D28D9;
  --accent-2: #7C3AED;
  --accent-soft: rgba(109, 40, 217, 0.10);
  --accent-glow: rgba(124, 58, 237, 0.20);

  --positif: #059669;
  --positif-soft: rgba(5, 150, 105, 0.11);
  --negatif: #DC2626;
  --negatif-soft: rgba(220, 38, 38, 0.11);
  --netral: #B45309;
  --netral-soft: rgba(180, 83, 9, 0.11);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 4px rgba(109,40,217,0.08);
  --shadow-md: 0 4px 20px rgba(109,40,217,0.12);

  color-scheme: light;
}

/* ── Dark Mode — Deep Purple Night ── */
[data-theme="dark"] {
  --bg: #0D0A1A;
  --surface: #160F2E;
  --surface-2: #1E1540;
  --border: #2E2060;
  --text: #EDE9FE;
  --text-muted: #A89FCA;
  --text-dim: #6B5FA0;

  /* Aksen violet terang di atas latar gelap */
  --accent: #A78BFA;
  --accent-2: #C4B5FD;
  --accent-soft: rgba(167, 139, 250, 0.15);
  --accent-glow: rgba(167, 139, 250, 0.25);

  --positif: #34D399;
  --positif-soft: rgba(52, 211, 153, 0.13);
  --negatif: #F87171;
  --negatif-soft: rgba(248, 113, 113, 0.13);
  --netral: #FBBF24;
  --netral-soft: rgba(251, 191, 36, 0.13);

  --shadow-sm: 0 1px 6px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.50);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =========================================================
   Layout shell
   ========================================================= */
.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(170deg, #200840 0%, #160F2E 60%, #0D0A1A 100%);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .sidebar {
  background: linear-gradient(170deg, #200840 0%, #160F2E 60%, #0D0A1A 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 24px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.25);
  margin-bottom: 20px;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.2px; color: #EDE9FE; }
.brand-text span { font-size: 11.5px; color: rgba(237,233,254,0.55); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(237,233,254,0.60);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(167,139,250,0.15); color: #EDE9FE; }
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(124,58,237,0.35) 0%, rgba(167,139,250,0.15) 100%);
  color: #C4B5FD;
  border-left: 3px solid #A78BFA;
  padding-left: 9px;
}
.nav-item svg { flex-shrink: 0; }

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(237,233,254,0.40);
  padding-top: 16px;
  border-top: 1px solid rgba(167,139,250,0.20);
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot--positif { background: var(--positif); }
.dot--negatif { background: var(--negatif); }
.dot--netral { background: var(--netral); }

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 36px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.topbar h1 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 4px;
  letter-spacing: -0.2px;
  background: linear-gradient(90deg, var(--accent) 0%, #9333EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.topbar p { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}

.content {
  padding: 0 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================================================
   Stat strip (instrument readout)
   ========================================================= */
.stat-strip {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  overflow-x: auto;
}
.stat-item { display: flex; flex-direction: column; gap: 6px; padding: 0 22px; flex-shrink: 0; }
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
}
.stat-value--positif { color: var(--positif); }
.stat-value--negatif { color: var(--negatif); }
.stat-value--netral { color: var(--netral); }
.stat-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* =========================================================
   Panels
   ========================================================= */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.panel:hover {
  box-shadow: var(--shadow-md);
}
.panel-head { margin-bottom: 16px; }
.panel-head h2 { font-family: var(--font-display); font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.panel-head p { margin: 0; font-size: 13px; color: var(--text-muted); }
.panel-head--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.panel-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 20px;
}
.panel--wide { min-width: 0; }

/* =========================================================
   Gauge — signature element
   ========================================================= */
.gauge-panel { padding-bottom: 30px; }
.gauge { width: 100%; }
.gauge-track {
  position: relative;
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: visible;
  background: var(--surface-2);
}
.gauge-zone { flex: 1; height: 100%; }
.gauge-zone--neg { background: var(--negatif-soft); border-radius: 999px 0 0 999px; }
.gauge-zone--neu { background: var(--netral-soft); }
.gauge-zone--pos { background: var(--positif-soft); border-radius: 0 999px 999px 0; }

.gauge-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(.22,1,.36,1);
}
.gauge-marker-value {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
}
.gauge-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gauge--compact .gauge-track { height: 10px; }
.gauge--compact .gauge-marker { width: 14px; height: 14px; }

/* =========================================================
   Charts
   ========================================================= */
.chart-wrap { position: relative; width: 100%; }
.chart-wrap--donut { height: 230px; }
.chart-wrap--bar { height: 280px; }

.no-breakdown-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  min-height: 230px;
}
.no-breakdown-state svg { color: var(--text-dim); }
.no-breakdown-state p { margin: 0; max-width: 480px; font-size: 13.5px; line-height: 1.6; }
.no-breakdown-hint { font-size: 12.5px; color: var(--text-dim); }
.no-breakdown-state code {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-muted); }
.legend li { display: flex; align-items: center; gap: 4px; }
.legend b { margin-left: auto; font-family: var(--font-mono); color: var(--text); font-weight: 500; }

/* =========================================================
   Segmented toggle (word cloud)
   ========================================================= */
.segmented { display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px; border: 1px solid var(--border); flex-shrink: 0; }
.segmented-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.segmented-btn.is-active { background: var(--accent); color: #fff; }

.wordcloud-frame {
  position: relative;
  margin-top: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
}
.wordcloud-frame img { width: 100%; height: auto; display: block; }
.wc-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 22, 32, 0.55);
  border-radius: var(--radius-sm);
  z-index: 2;
}


/* =========================================================
   Table
   ========================================================= */
.search-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  min-width: 220px;
}
.search-input::placeholder { color: var(--text-dim); }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.tab-btn.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tab-btn.is-active span { color: var(--accent); }

.table-wrap { max-height: 480px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.data-table tbody tr:hover { background: var(--surface-2); }
.col-no { width: 46px; color: var(--text-dim); font-family: var(--font-mono); }
.cell-pertanyaan { color: var(--text-muted); max-width: 260px; }
.cell-komentar { max-width: 420px; }
.col-sentiment { width: 110px; }

.tag { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); }
.tag--positif { background: var(--positif-soft); color: var(--positif); }
.tag--negatif { background: var(--negatif-soft); color: var(--negatif); }
.tag--netral { background: var(--netral-soft); color: var(--netral); }

.empty-state { text-align: center; color: var(--text-dim); padding: 28px; margin: 0; }

/* =========================================================
   Prediksi page
   ========================================================= */
.predict-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}

.predict-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
}
.predict-textarea::placeholder { color: var(--text-dim); }

.predict-toolbar { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.char-counter { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.predict-actions { display: flex; gap: 10px; }

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.1s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }
.btn-save {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
.btn-save:hover:not(:disabled) { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-save:active { transform: scale(0.97); }
.btn-save:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-save--saved {
  border-color: #22c55e;
  color: #22c55e;
  cursor: default;
}
.btn-save--saved:hover { background: transparent; color: #22c55e; transform: none; }

.save-prediction-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.save-notification {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.save-notification--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}
.save-notification--error {
  background: rgba(255, 107, 91, 0.12);
  border: 1px solid rgba(255, 107, 91, 0.3);
  color: var(--negatif);
}
.save-notification--info {
  background: rgba(242, 184, 75, 0.12);
  border: 1px solid rgba(242, 184, 75, 0.3);
  color: var(--netral);
}


.predict-samples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--text-dim); }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}
.chip:hover { color: var(--text); border-color: var(--accent); }

.predict-error {
  color: var(--negatif);
  background: var(--negatif-soft);
  border: 1px solid rgba(255, 107, 91, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 16px;
}

.predict-result-panel { min-height: 360px; display: flex; flex-direction: column; }
.result-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  text-align: center;
  font-size: 13px;
  padding: 30px 10px;
}

.result-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.result-tag {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
}
.result-tag.tag--positif { background: var(--positif-soft); color: var(--positif); }
.result-tag.tag--negatif { background: var(--negatif-soft); color: var(--negatif); }
.result-tag.tag--netral { background: var(--netral-soft); color: var(--netral); }
.result-confidence { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

.prob-bars { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.prob-row { display: grid; grid-template-columns: 60px 1fr 50px; align-items: center; gap: 10px; }
.prob-name { font-size: 12.5px; color: var(--text-muted); }
.prob-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.prob-fill { height: 100%; width: 0%; border-radius: 999px; transition: width 0.6s cubic-bezier(.22,1,.36,1); }
.prob-fill--positif { background: var(--positif); }
.prob-fill--negatif { background: var(--negatif); }
.prob-fill--netral { background: var(--netral); }
.prob-pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-align: right; }

.result-loading { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font-size: 13.5px; }
.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 14px 16px; }
  .brand { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .nav { flex-direction: row; margin-left: auto; }
  .sidebar-footer { display: none; }
  .topbar { padding: 22px 20px 10px; flex-wrap: wrap; gap: 10px; }
  .content { padding: 0 20px 40px; }
  .panel-grid { grid-template-columns: 1fr; }
  .predict-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 0 14px; }
}

@media (max-width: 600px) {
  .sidebar { flex-wrap: wrap; gap: 10px; }
  .brand-text span { display: none; }
  .nav-item span { display: none; }
  .nav-item { padding: 10px; }
  .topbar { flex-direction: column; gap: 10px; }
  .predict-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .predict-actions { justify-content: flex-end; }
  .prob-row { grid-template-columns: 50px 1fr 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .gauge-marker, .prob-fill { transition: none; }
  .spinner { animation: none; }
  html, body, .sidebar, .panel, .topbar { transition: none; }
}

/* =========================================================
   Dark Mode Toggle Button
   ========================================================= */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.25s ease;
}
[data-theme="dark"] .theme-toggle {
  background: var(--accent-soft);
  border-color: var(--accent);
}
[data-theme="dark"] .theme-toggle::after {
  transform: translateX(18px);
  background: var(--accent);
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  user-select: none;
}
.theme-toggle-wrap .toggle-icon {
  font-size: 14px;
  line-height: 1;
  transition: opacity 0.2s;
}
.toggle-icon--moon { opacity: 0; }
[data-theme="dark"] .toggle-icon--sun  { opacity: 0; }
[data-theme="dark"] .toggle-icon--moon { opacity: 1; }

/* =========================================================
   Char progress bar (prediksi page)
   ========================================================= */
.char-bar-track {
  height: 3px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.char-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease, background 0.3s ease;
}
.char-bar-fill--warn { background: var(--netral); }
.char-bar-fill--danger { background: var(--negatif); }

/* =========================================================
   Search wrap + clear button
   ========================================================= */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap .search-input {
  padding-right: 32px;
}
.search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.search-clear:hover {
  color: var(--text);
  background: var(--surface);
}

/* =========================================================
   Button size variant
   ========================================================= */
.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}



/* =========================================================
   Search input — remove browser native X icon
   ========================================================= */
.search-input::-webkit-search-cancel-button { display: none; }
.search-input { transition: border-color 0.15s; }
.search-input:focus { border-color: var(--accent); outline: none; }


/* =========================================================
   Labeling Guide — Pedoman Pelabelan Sentimen
   ========================================================= */
.labeling-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .labeling-guide {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.guide-card--positif { border-top: 3px solid var(--positif); }
.guide-card--negatif { border-top: 3px solid var(--negatif); }
.guide-card--netral  { border-top: 3px solid var(--netral);  }

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-icon {
  font-size: 22px;
  line-height: 1;
}

.guide-badge {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: 99px;
}
.guide-badge--positif { background: var(--positif-soft); color: var(--positif); }
.guide-badge--negatif { background: var(--negatif-soft); color: var(--negatif); }
.guide-badge--netral  { background: var(--netral-soft);  color: var(--netral);  }

.guide-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.guide-keywords {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-keyword-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-tag {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 5px;
  font-weight: 500;
}
.guide-tag--positif { background: var(--positif-soft); color: var(--positif); }
.guide-tag--negatif { background: var(--negatif-soft); color: var(--negatif); }
.guide-tag--netral  { background: var(--netral-soft);  color: var(--netral);  }

