/* =========================================================
   TheGoalSet Dashboard — Shared Design Tokens
   Used by every page. Page-specific styles live in <style>
   blocks within each HTML file, but always reference these
   variables so the whole app stays visually consistent.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy: #1F2A44;
  --navy-soft: #3A4868;
  --cream: #FAF8F4;
  --card: #FFFFFF;
  --sage: #5B8C72;
  --sage-bg: #EAF2EC;
  --terracotta: #C4634A;
  --terracotta-bg: #FAEAE5;
  --gray-text: #6B6558;
  --gray-line: #E4DFD5;
  --gray-faint: #F1EDE4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  color: var(--navy);
  margin: 0;
}

.brand {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
  letter-spacing: 0.02em;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid var(--navy);
  transition: all 0.15s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover { background: var(--navy-soft); }
.btn-primary:disabled {
  background: var(--gray-line);
  border-color: var(--gray-line);
  color: var(--gray-text);
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-line);
}
.btn-ghost:hover { border-color: var(--navy); }

.error-msg {
  font-size: 13px;
  color: #8C3F2C;
  background: var(--terracotta-bg);
  border: 1px solid var(--terracotta);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
}
.error-msg.show { display: block; }

.success-msg {
  font-size: 13px;
  color: #2D5740;
  background: var(--sage-bg);
  border: 1px solid var(--sage);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
}
.success-msg.show { display: block; }
