/* Thorwell Hub - shared styles (matches call hub aesthetic) */
:root {
  --bg: #0b0f0c;
  --panel: #131814;
  --panel2: #1a211c;
  --line: #2a3530;
  --text: #e6efe8;
  --muted: #8aa094;
  --hot: #ff5a4d;
  --warm: #ffb547;
  --cool: #6cd0ff;
  --cold: #6e7689;
  --good: #34c759;
  --bad: #ff5a4d;
  --accent: #cbfbb4;
  --accent-text: #0b1408;
  --accent-dim: #9bd384;
  --brand-font: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
}
a { color: var(--accent-dim); text-decoration: none; }
a:hover { color: var(--accent); }

.th-app { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Top nav */
.th-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 20px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 22px;
}
.th-nav-brand { display: flex; flex-direction: column; gap: 2px; }
.th-wordmark {
  font-family: var(--brand-font); font-weight: 700; font-size: 22px;
  letter-spacing: -0.5px; color: var(--text);
}
.th-accent { color: var(--accent); font-weight: 800; }
.th-nav-tag {
  font-family: var(--brand-font); font-weight: 400; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.th-nav-links { display: flex; gap: 4px; }
.th-nav-links a {
  padding: 8px 14px; border-radius: 6px; color: var(--muted);
  font-family: var(--brand-font); font-weight: 600; font-size: 13px;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.th-nav-links a:hover { color: var(--text); background: var(--panel2); }
.th-nav-links a.active { color: var(--accent-text); background: var(--accent); }
.th-nav-user { display: flex; align-items: center; gap: 10px; }
.th-nav-name { font-weight: 600; font-size: 13px; }
.th-nav-role {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 8px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font-weight: 600;
}

/* Buttons */
.th-btn, .th-btn-ghost, .th-btn-primary {
  border: 1px solid var(--line); cursor: pointer;
  padding: 8px 16px; border-radius: 6px; font-size: 13px;
  font-family: var(--brand-font); font-weight: 600;
  background: var(--panel2); color: var(--text);
}
.th-btn:hover, .th-btn-ghost:hover { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.th-btn-primary {
  background: var(--accent); color: var(--accent-text); border-color: var(--accent);
}
.th-btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
.th-btn-danger {
  background: var(--panel2); color: var(--hot); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer;
  font-family: var(--brand-font); font-weight: 600;
}
.th-btn-danger:hover { background: var(--hot); color: white; border-color: var(--hot); }

/* Inputs */
.th-input, .th-select, .th-textarea {
  width: 100%; padding: 9px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  font-size: 13px; font-family: inherit;
}
.th-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.th-input:focus, .th-select:focus, .th-textarea:focus {
  outline: none; border-color: var(--accent);
}
.th-label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); font-weight: 600; margin-bottom: 6px;
}
.th-field { margin-bottom: 14px; }

/* Panels / cards */
.th-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px;
}
.th-panel + .th-panel { margin-top: 14px; }

/* Status pills */
.th-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.th-pill.open { background: rgba(140, 160, 148, 0.18); color: var(--muted); }
.th-pill.in-progress { background: rgba(108, 208, 255, 0.18); color: var(--cool); }
.th-pill.submitted { background: rgba(255, 181, 71, 0.18); color: var(--warm); }
.th-pill.approved { background: rgba(52, 199, 89, 0.18); color: var(--good); }
.th-pill.priority-high { background: rgba(255, 90, 77, 0.18); color: var(--hot); }
.th-pill.priority-medium { background: rgba(255, 181, 71, 0.18); color: var(--warm); }
.th-pill.priority-low { background: rgba(108, 208, 255, 0.18); color: var(--cool); }

/* Empty state */
.th-empty {
  text-align: center; color: var(--muted); padding: 40px 20px;
  border: 1px dashed var(--line); border-radius: 10px;
}

/* Badge */
.th-badge {
  display: inline-block; min-width: 18px; padding: 2px 6px;
  background: var(--hot); color: white; border-radius: 999px;
  font-size: 10px; font-weight: 700; text-align: center; margin-left: 6px;
}
