/* ================================================================
   GPS LEFAN — SISTEMA DE ANÁLISE COMPORTAMENTAL INTEGRADA
   Design System — Tokens, Variáveis e Base
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ----------------------------------------------------------------
   CSS Custom Properties (Light Theme)
   ---------------------------------------------------------------- */
:root {
  /* --- Brand Colors --- */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  /* --- Neutral Colors --- */
  --neutral-0:   #ffffff;
  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-150: #eef2f7;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* --- Semantic Colors --- */
  --success-50:  #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --warning-50:  #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --danger-50:   #fef2f2;
  --danger-500:  #ef4444;
  --danger-600:  #dc2626;
  --info-50:     #eff6ff;
  --info-500:    #3b82f6;
  --info-600:    #2563eb;

  /* --- DISC Profile Colors --- */
  --disc-d: #ef4444;
  --disc-i: #f59e0b;
  --disc-s: #22c55e;
  --disc-c: #3b82f6;
  --disc-d-light: #fef2f2;
  --disc-i-light: #fffbeb;
  --disc-s-light: #f0fdf4;
  --disc-c-light: #eff6ff;

  /* --- Big Five Colors --- */
  --bf-o: #8b5cf6;
  --bf-c: #06b6d4;
  --bf-e: #f59e0b;
  --bf-a: #22c55e;
  --bf-n: #ef4444;

  /* --- RIASEC Colors --- */
  --riasec-r: #78716c;
  --riasec-i: #6366f1;
  --riasec-a: #ec4899;
  --riasec-s: #22c55e;
  --riasec-e: #f97316;
  --riasec-c: #06b6d4;

  /* --- Layout --- */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --header-height: 64px;
  --content-max-width: 1400px;

  /* --- Surface (Light) --- */
  --bg-app:        #f1f5f9;
  --bg-surface:    #ffffff;
  --bg-surface-2:  #f8fafc;
  --bg-surface-3:  #f1f5f9;
  --bg-overlay:    rgba(15, 23, 42, 0.5);

  /* --- Text (Light) --- */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-tertiary:  #94a3b8;
  --text-inverse:   #ffffff;
  --text-brand:     #4f46e5;

  /* --- Border (Light) --- */
  --border-subtle:  #f1f5f9;
  --border-default: #e2e8f0;
  --border-strong:  #cbd5e1;
  --border-brand:   #a5b4fc;

  /* --- Shadows --- */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.1), 0 8px 10px rgba(0,0,0,.04);
  --shadow-brand: 0 4px 14px rgba(79,70,229,.25);

  /* --- Radius --- */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* --- Spacing --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* --- Typography --- */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs:   11px;
  --font-size-sm:   13px;
  --font-size-base: 14px;
  --font-size-md:   15px;
  --font-size-lg:   16px;
  --font-size-xl:   18px;
  --font-size-2xl:  22px;
  --font-size-3xl:  28px;
  --font-size-4xl:  36px;

  /* --- Transitions --- */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 350ms ease;
  --transition-sidebar: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------
   Dark Theme
   ---------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-app:        #0a0f1e;
  --bg-surface:    #111827;
  --bg-surface-2:  #1a2236;
  --bg-surface-3:  #1f2d45;
  --bg-overlay:    rgba(0,0,0,0.7);

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary:  #475569;
  --text-inverse:   #0f172a;
  --text-brand:     #818cf8;

  --border-subtle:  #1a2236;
  --border-default: #1e2d45;
  --border-strong:  #2d3f5e;
  --border-brand:   #4338ca;

  --shadow-xs:  0 1px 2px rgba(0,0,0,.3);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.2);
  --shadow-md:  0 4px 6px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.2);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.4), 0 4px 6px rgba(0,0,0,.2);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.5), 0 8px 10px rgba(0,0,0,.3);
  --shadow-brand: 0 4px 14px rgba(99,102,241,.35);
}

/* ================================================================
   Reset & Base
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ================================================================
   Typography Utilities
   ================================================================ */
.text-xs    { font-size: var(--font-size-xs); }
.text-sm    { font-size: var(--font-size-sm); }
.text-base  { font-size: var(--font-size-base); }
.text-md    { font-size: var(--font-size-md); }
.text-lg    { font-size: var(--font-size-lg); }
.text-xl    { font-size: var(--font-size-xl); }
.text-2xl   { font-size: var(--font-size-2xl); }
.text-3xl   { font-size: var(--font-size-3xl); }
.text-4xl   { font-size: var(--font-size-4xl); }

.font-300 { font-weight: 300; }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-brand     { color: var(--text-brand); }
.text-success   { color: var(--success-600); }
.text-warning   { color: var(--warning-600); }
.text-danger    { color: var(--danger-600); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================
   Layout Utilities
   ================================================================ */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.hidden   { display: none !important; }
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }

/* Spacing */
.p-2  { padding: var(--space-2); }
.p-3  { padding: var(--space-3); }
.p-4  { padding: var(--space-4); }
.p-5  { padding: var(--space-5); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.ml-auto { margin-left: auto; }

/* ================================================================
   Card Component
   ================================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.card-body { padding: var(--space-6); }
.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}
.card-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ================================================================
   KPI Card
   ================================================================ */
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  opacity: 0;
  transition: opacity var(--transition-base);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-card:hover::before { opacity: 1; }
.kpi-card .kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.kpi-card .kpi-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.kpi-card .kpi-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
  font-weight: 500;
}
.kpi-card .kpi-change {
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-change.up   { color: var(--success-600); }
.kpi-change.down { color: var(--danger-600); }

/* ================================================================
   Button Component
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  height: 36px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-700); box-shadow: 0 6px 20px rgba(79,70,229,.35); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg-surface-2); border-color: var(--border-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-surface-3); color: var(--text-primary); }

.btn-danger {
  background: var(--danger-500);
  color: #fff;
}
.btn-danger:hover { background: var(--danger-600); }

.btn-success {
  background: var(--success-500);
  color: #fff;
}
.btn-success:hover { background: var(--success-600); }

.btn-sm { height: 30px; padding: 0 var(--space-3); font-size: var(--font-size-xs); }
.btn-lg { height: 44px; padding: 0 var(--space-6); font-size: var(--font-size-md); border-radius: var(--radius-lg); }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn-icon.btn-lg { width: 44px; }

/* ================================================================
   Badge Component
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.6;
}
.badge-brand   { background: var(--brand-100); color: var(--brand-700); }
.badge-success { background: var(--success-50); color: var(--success-600); }
.badge-warning { background: var(--warning-50); color: var(--warning-600); }
.badge-danger  { background: var(--danger-50); color: var(--danger-600); }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-600); }

/* DISC Badges */
.badge-disc-d { background: var(--disc-d-light); color: var(--disc-d); }
.badge-disc-i { background: var(--disc-i-light); color: var(--disc-i); }
.badge-disc-s { background: var(--disc-s-light); color: var(--disc-s); }
.badge-disc-c { background: var(--disc-c-light); color: var(--disc-c); }

/* Level Badges */
.badge-high   { background: var(--success-50); color: var(--success-600); }
.badge-medium { background: var(--warning-50); color: var(--warning-600); }
.badge-low    { background: var(--neutral-100); color: var(--neutral-500); }

/* ================================================================
   Progress Bar Component
   ================================================================ */
.progress-container { width: 100%; }
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: rgba(255,255,255,0.5);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}
.progress-fill.disc-d { background: linear-gradient(90deg, #ef4444, #f87171); }
.progress-fill.disc-i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-fill.disc-s { background: linear-gradient(90deg, #22c55e, #4ade80); }
.progress-fill.disc-c { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.progress-fill.bf-o   { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.progress-fill.bf-c   { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.progress-fill.bf-e   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-fill.bf-a   { background: linear-gradient(90deg, #22c55e, #4ade80); }
.progress-fill.bf-n   { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ================================================================
   Form Components
   ================================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.form-label span.required { color: var(--danger-500); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0 var(--space-3);
  height: 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-control::placeholder { color: var(--text-tertiary); }
.form-control:disabled { background: var(--bg-surface-3); color: var(--text-tertiary); cursor: not-allowed; }

textarea.form-control {
  height: auto;
  min-height: 90px;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  resize: vertical;
}
select.form-control { cursor: pointer; }
.form-control.sm { height: 32px; padding: 0 var(--space-2); font-size: var(--font-size-xs); }

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}
.form-error {
  font-size: var(--font-size-xs);
  color: var(--danger-500);
}

/* ================================================================
   Table Component
   ================================================================ */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.table thead {
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-default);
}
.table thead th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table th.sortable {
  cursor: pointer;
  user-select: none;
}
.table th.sortable:hover { color: var(--text-primary); }
.table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-surface-2); cursor: pointer; }
.table tbody tr.active { background: var(--brand-50); }
[data-theme="dark"] .table tbody tr.active { background: rgba(79,70,229,.15); }
.table tbody td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  vertical-align: middle;
}
.table tbody td.text-secondary { color: var(--text-secondary); }

/* ================================================================
   Modal Component
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(8px);
  transition: transform var(--transition-base);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal.modal-lg  { max-width: 800px; }
.modal.modal-xl  { max-width: 1100px; }
.modal.modal-sm  { max-width: 420px; }
.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}
.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
  background: var(--bg-surface-2);
}

/* ================================================================
   Sidebar Component
   ================================================================ */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  transition: width var(--transition-sidebar);
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-logo {
  height: var(--header-height);
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}
.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-logo-name {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.sidebar-logo-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-section {
  margin-bottom: var(--space-6);
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--transition-sidebar);
}
.sidebar.collapsed .sidebar-section-label { opacity: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  user-select: none;
}
.nav-item:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.nav-item.active {
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 600;
}
[data-theme="dark"] .nav-item.active { background: rgba(79,70,229,.15); color: var(--brand-400); }
.nav-item.active .nav-icon { color: var(--brand-600); }
[data-theme="dark"] .nav-item.active .nav-icon { color: var(--brand-400); }
.nav-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-label { flex: 1; overflow: hidden; transition: opacity var(--transition-sidebar), max-width var(--transition-sidebar); }
.sidebar.collapsed .nav-label { opacity: 0; max-width: 0; }
.nav-badge {
  background: var(--brand-600);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.sidebar.collapsed .nav-badge { display: none; }

/* Sidebar tooltip */
.nav-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--neutral-800);
  color: white;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 300;
}
.sidebar.collapsed .nav-item[data-tooltip]:hover::after { opacity: 1; }

.sidebar-footer {
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* ================================================================
   Main Layout
   ================================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
}
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-sidebar);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-content.collapsed { margin-left: var(--sidebar-collapsed); }

.top-header {
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: var(--space-4); }
.header-right { display: flex; align-items: center; gap: var(--space-3); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}
.breadcrumb-current { color: var(--text-primary); font-weight: 600; }
.breadcrumb-sep { color: var(--text-tertiary); }

.page-content {
  flex: 1;
  padding: var(--space-8);
  max-width: var(--content-max-width);
  width: 100%;
}
.page-header {
  margin-bottom: var(--space-8);
}
.page-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.page-subtitle {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ================================================================
   Search Bar
   ================================================================ */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: var(--space-3);
  color: var(--text-tertiary);
  pointer-events: none;
}
.search-input {
  padding-left: 36px;
  padding-right: var(--space-3);
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  width: 240px;
  transition: all var(--transition-fast);
  outline: none;
}
.search-input:focus {
  background: var(--bg-surface);
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
  width: 300px;
}
.search-input::placeholder { color: var(--text-tertiary); }

/* ================================================================
   Tabs Component
   ================================================================ */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-6);
}
.tab-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.tab-item:hover { color: var(--text-primary); background: var(--bg-surface-2); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tab-item.active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
  font-weight: 600;
}
[data-theme="dark"] .tab-item.active { color: var(--brand-400); border-bottom-color: var(--brand-400); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ================================================================
   Avatar Component
   ================================================================ */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}
.avatar-lg { width: 52px; height: 52px; font-size: var(--font-size-lg); }
.avatar-xl { width: 72px; height: 72px; font-size: var(--font-size-2xl); }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }

/* ================================================================
   Tooltip
   ================================================================ */
[data-tip] {
  position: relative;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--neutral-800);
  color: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 500;
}
[data-tip]:hover::after { opacity: 1; }

/* ================================================================
   Divider
   ================================================================ */
.divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-6) 0;
}
.divider-vertical {
  width: 1px;
  background: var(--border-default);
  align-self: stretch;
}

/* ================================================================
   Score Bar (DISC/BF/RIASEC)
   ================================================================ */
.score-bar-item {
  display: grid;
  grid-template-columns: 120px 1fr 52px;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.score-bar-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
}
.score-bar-track {
  height: 10px;
  background: var(--bg-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-bar-value {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

/* ================================================================
   Alert / Toast
   ================================================================ */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--font-size-sm);
}
.alert-info    { background: var(--info-50); border-color: #bfdbfe; color: var(--info-600); }
.alert-success { background: var(--success-50); border-color: #bbf7d0; color: var(--success-600); }
.alert-warning { background: var(--warning-50); border-color: #fde68a; color: var(--warning-600); }
.alert-danger  { background: var(--danger-50); border-color: #fecaca; color: var(--danger-600); }

.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  background: var(--neutral-800);
  color: white;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  animation: toastIn 0.3s ease forwards;
  border-left: 3px solid var(--brand-400);
}
.toast.toast-success { border-left-color: var(--success-500); }
.toast.toast-error   { border-left-color: var(--danger-500); }
.toast.toast-warning { border-left-color: var(--warning-500); }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}
.toast.removing { animation: toastOut 0.3s ease forwards; }

/* ================================================================
   Loading States
   ================================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-3) 25%, var(--border-default) 50%, var(--bg-surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ================================================================
   Empty State
   ================================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: var(--text-tertiary);
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-surface-3);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--text-tertiary);
}
.empty-state-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.empty-state-description {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  max-width: 300px;
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

/* ================================================================
   Grid Layouts
   ================================================================ */
.grid-kpi-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-kpi-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2     { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-charts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }

/* ================================================================
   Filter Panel
   ================================================================ */
.filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}
.filter-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}
[data-theme="dark"] .filter-chip { background: rgba(79,70,229,.15); color: var(--brand-300); }
.filter-chip:hover { background: var(--brand-100); }
.filter-chip .chip-remove {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.7;
}
.filter-chip .chip-remove:hover { opacity: 1; }

/* ================================================================
   Profile Color Indicators
   ================================================================ */
.profile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-dot.disc-d { background: var(--disc-d); }
.profile-dot.disc-i { background: var(--disc-i); }
.profile-dot.disc-s { background: var(--disc-s); }
.profile-dot.disc-c { background: var(--disc-c); }

/* ================================================================
   Pagination
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-6);
}
.page-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.page-btn:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.page-btn.active {
  background: var(--brand-600);
  color: white;
  border-color: var(--brand-600);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ================================================================
   Dropdown Menu
   ================================================================ */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 400;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all var(--transition-fast);
}
.dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.dropdown-item:hover { background: var(--bg-surface-2); }
.dropdown-item.danger { color: var(--danger-500); }
.dropdown-item.danger:hover { background: var(--danger-50); }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 4px 0; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1280px) {
  .grid-kpi-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .grid-charts { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-100%); width: var(--sidebar-width); }
  .sidebar.mobile-open { transform: translateX(0); width: 260px; }
  .main-content { margin-left: 0 !important; }
  .grid-kpi-4 { grid-template-columns: 1fr 1fr; }
  .grid-kpi-3, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .top-header { padding: 0 var(--space-4); }
  .page-content { padding: var(--space-4); }
}
@media (max-width: 480px) {
  .grid-kpi-4 { grid-template-columns: 1fr; }
}

/* ================================================================
   Scrollbar
   ================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); }

/* ================================================================
   Selection
   ================================================================ */
::selection {
  background: var(--brand-200);
  color: var(--brand-900);
}

/* ================================================================
   Animations
   ================================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%  { opacity: 0.6; }
}
.animate-fade-in    { animation: fadeIn 0.3s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.3s ease forwards; }
.animate-pulse      { animation: pulse 2s ease infinite; }

/* ================================================================
   Misc Utilities
   ================================================================ */
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-lg { border-radius: var(--radius-lg); }
.opacity-50 { opacity: 0.5; }
.border { border: 1px solid var(--border-default); }
.border-t { border-top: 1px solid var(--border-default); }
.border-b { border-bottom: 1px solid var(--border-default); }
.bg-surface { background: var(--bg-surface); }
.bg-surface-2 { background: var(--bg-surface-2); }

/* ================================================================
   Extra Semantic Color Vars (needed by modules)
   ================================================================ */
:root {
  --success-50:  #f0fdf4;
  --success-100: #dcfce7;
  --success-200: #bbf7d0;
  --success-600: #16a34a;

  --danger-50:   #fef2f2;
  --danger-100:  #fee2e2;
  --danger-200:  #fecaca;
  --danger-500:  #ef4444;
  --danger-600:  #dc2626;

  --warning-50:  #fffbeb;
  --warning-200: #fde68a;
  --warning-600: #d97706;

  --info-50:     #eff6ff;
  --info-200:    #bfdbfe;
  --info-600:    #2563eb;

  --brand-200:   #c7d2fe;
}

/* ================================================================
   Extra Spacing Utilities
   ================================================================ */
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-8  { margin-bottom: var(--space-8); }
.pt-4  { padding-top: var(--space-4); }
.pb-4  { padding-bottom: var(--space-4); }
.pl-4  { padding-left: var(--space-4); }
.pr-4  { padding-right: var(--space-4); }
.w-full { width: 100%; }
.gap-5  { gap: var(--space-5); }

/* ================================================================
   Table — card wrapper override
   ================================================================ */
.card .table-wrapper {
  border: none;
  border-radius: 0;
}

/* ================================================================
   Score bar colors (RIASEC extras)
   ================================================================ */
.score-bar-fill.riasec-r { background: linear-gradient(90deg,#78716c,#a8a29e); }
.score-bar-fill.riasec-i { background: linear-gradient(90deg,#6366f1,#818cf8); }
.score-bar-fill.riasec-a { background: linear-gradient(90deg,#ec4899,#f472b6); }
.score-bar-fill.riasec-s { background: linear-gradient(90deg,#22c55e,#4ade80); }
.score-bar-fill.riasec-e { background: linear-gradient(90deg,#f97316,#fb923c); }
.score-bar-fill.riasec-c { background: linear-gradient(90deg,#06b6d4,#22d3ee); }

/* ================================================================
   Extra Badge Variants
   ================================================================ */
.badge-info    { background: var(--info-50); color: var(--info-600); }
.badge-warning { background: var(--warning-50); color: var(--warning-600); }

/* ================================================================
   Sidebar mobile support
   ================================================================ */
@media (max-width: 768px) {
  .sidebar { transition: transform var(--transition-sidebar), width var(--transition-sidebar); }
}

/* ================================================================
   Compact table cell spacing
   ================================================================ */
.table-compact tbody td { padding: var(--space-2) var(--space-3); }

/* ================================================================
   mb-4 fix (already defined but need .mt-0)
   ================================================================ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ================================================================
   Justify-content utils
   ================================================================ */
.justify-start { justify-content: flex-start; }

/* ================================================================
   Alert dark mode
   ================================================================ */
[data-theme="dark"] .alert-info    { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.3); color: #60a5fa; }
[data-theme="dark"] .alert-success { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.3);  color: #4ade80; }
[data-theme="dark"] .alert-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); color: #fbbf24; }
[data-theme="dark"] .alert-danger  { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.3);  color: #f87171; }
[data-theme="dark"] .badge-brand   { background: rgba(79,70,229,.2);   color: var(--brand-300); }
[data-theme="dark"] .badge-neutral { background: rgba(100,116,139,.15); color: var(--neutral-400); }
[data-theme="dark"] .badge-high    { background: rgba(34,197,94,.15);   color: #4ade80; }
[data-theme="dark"] .badge-medium  { background: rgba(245,158,11,.15);  color: #fbbf24; }
[data-theme="dark"] .badge-low     { background: rgba(100,116,139,.15); color: var(--neutral-400); }
[data-theme="dark"] .badge-disc-d  { background: rgba(239,68,68,.15);  color: #f87171; }
[data-theme="dark"] .badge-disc-i  { background: rgba(245,158,11,.15); color: #fbbf24; }
[data-theme="dark"] .badge-disc-s  { background: rgba(34,197,94,.15);  color: #4ade80; }
[data-theme="dark"] .badge-disc-c  { background: rgba(59,130,246,.15); color: #60a5fa; }

/* ================================================================
   btn-danger (alias for .btn-danger variant already defined)
   ================================================================ */
.text-danger { color: var(--danger-500) !important; }
.text-success { color: var(--success-600) !important; }

/* ================================================================
   KPI card with color accents for DISC
   ================================================================ */
.disc-d-light { background: var(--disc-d-light); }
.disc-i-light { background: var(--disc-i-light); }
.disc-s-light { background: var(--disc-s-light); }
.disc-c-light { background: var(--disc-c-light); }

/* ================================================================
   Misc fixes
   ================================================================ */
.rounded-lg  { border-radius: var(--radius-lg) !important; }
.overflow-y-auto { overflow-y: auto; }
code { font-family: 'Courier New', Courier, monospace; font-size: 0.9em; }

/* ── K-Means & Correlacao & Combinacoes (executivo.js) ─────────────────── */
.exec-analytic-card { border-top: 3px solid var(--brand-400); }

.kmeans-legend {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--border-subtle);
}
.kmeans-badge {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px; white-space: nowrap;
}
.kmeans-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; padding: 16px;
}
.kmeans-cluster-card {
  background: var(--bg-surface-2); border-radius: var(--radius-md);
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.kmeans-cluster-title { font-size: 13px; font-weight: 700; }
.kmeans-cluster-stat  { font-size: 12px; color: var(--text-secondary); }

.corr-destaques {
  padding: 12px 16px; border-bottom: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 8px;
}
.corr-destaques-titulo {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-tertiary); margin-bottom: 4px;
}
.corr-destaque-item {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
}
.corr-pair  { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.corr-val   { font-size: 18px; font-weight: 800; min-width: 44px; }
.corr-desc  { font-size: 12px; color: var(--text-secondary); flex: 1; }
