/* Radar Executivo — direção visual (§20)
   Inspiração: Linear, Notion, Apple Notes, Raycast.
   Evitar: cara de ERP/CRM tradicional/dashboard pesado. */

:root {
  --bg: #fafafa;
  --bg-panel: #ffffff;
  --border: #e8e8e8;
  --text: #1c1c1e;
  --text-muted: #6e6e73;
  --accent: #3a3a3c;

  --risk-low: #4caf78;
  --risk-medium: #e8a33d;
  --risk-high: #e0653f;
  --risk-critical: #d6473c;

  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.brand {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 24px;
  padding-left: 8px;
}

.nav-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--bg);
}

.nav-item.active {
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
}

/* Main content */
.content {
  flex: 1;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.today {
  text-transform: capitalize;
}

.content-inner {
  padding: 32px;
  max-width: 760px;
}

/* Cards e componentes comuns */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 28px 0 10px;
}

.radar-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.radar-item:last-child {
  border-bottom: none;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  margin-right: 8px;
}

.badge.low { background: var(--risk-low); }
.badge.medium { background: var(--risk-medium); }
.badge.high { background: var(--risk-high); }
.badge.critical { background: var(--risk-critical); }

.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  padding: 12px 0;
}

.capture-box textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  resize: vertical;
}

.capture-box button {
  margin-top: 8px;
  background: var(--text);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
