/* ═══ RheumaScore v4 — Shared Style ═══
   Single source of truth for all pages.
   Updated from v3 purple to v4 green accent, deep slate bg.
*/

:root {
  --bg: #020617;
  --bg2: #0a0f1e;
  --card: rgba(15, 23, 42, 0.6);
  --card-hover: rgba(30, 41, 59, 0.7);
  --card-active: rgba(30, 41, 59, 0.9);
  --border: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.10);
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.08);
  --accent-glow: rgba(34, 197, 94, 0.20);
  --teal: #3b82f6;
  --teal-soft: rgba(59, 130, 246, 0.06);
  --teal-glow: rgba(59, 130, 246, 0.15);
  --green: #22c55e;
  --yellow: #eab308;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #a855f7;
  --pink-soft: rgba(168, 85, 247, 0.06);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim: #475569;
  --glass: rgba(2, 6, 23, 0.92);
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.6;
}

::selection { background: rgba(34, 197, 94, 0.3); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(34,197,94,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34,197,94,0.3); }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 900; }
h1 { font-size: 2.2rem; letter-spacing: -1px; color: var(--text); margin-bottom: 16px; }
h2 { font-size: 1.3rem; letter-spacing: -0.5px; color: var(--text); margin-bottom: 12px; }

/* ── Old Nav Bar — HIDDEN (replaced by sidebar-inject.js) ── */
.nav-bar { display: none !important; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition); margin-bottom: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card:hover { border-color: var(--border-light); transform: translateY(-1px); }

/* Buttons */
.btn {
  padding: 12px 24px; border: none; border-radius: 14px;
  font-family: var(--sans); font-weight: 700; font-size: 0.88rem;
  cursor: pointer; transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #020617;
  box-shadow: 0 8px 24px rgba(34,197,94,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(34,197,94,0.3);
}

/* Footer */
.shared-footer {
  text-align: center; padding: 32px 24px; margin-top: 48px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-dim); line-height: 1.8;
  border-radius: 32px 32px 0 0;
  background: var(--card);
}
.shared-footer a { color: var(--accent); text-decoration: none; }
.shared-footer a:hover { text-decoration: underline; }

/* Utility */
a { color: var(--accent); }
select, input[type=number], input[type=text], textarea {
  background: rgba(2,6,23,0.5); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 10px 14px; color: var(--text);
  font-size: 0.88rem; font-family: var(--sans);
  transition: all var(--transition);
}
select:focus, input:focus, textarea:focus {
  outline: none; border-color: rgba(34,197,94,0.5);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
label { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Tables (used in some pages) */
table { width: 100%; border-collapse: collapse; }
th { font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
tr:hover td { background: rgba(255,255,255,0.02); }

@media(max-width:600px) {
  h1 { font-size: 1.5rem; }
  .container { padding: 0 16px; }
}
