@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #F5F7F3;
  --surface: #FFFFFF;
  --ink: #1E2A24;
  --ink-muted: #5B6B62;
  --primary: #0B6E4F;
  --primary-dark: #084A36;
  --accent: #D98E2B;
  --border: #DCE3DD;
  --danger: #B3261E;
  --danger-bg: #FBEAE9;
  --success-bg: #E9F5EE;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 0.4em;
}

a { color: var(--primary); }

.vitals-divider {
  height: 20px;
  margin: 0 auto 2rem;
  max-width: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 20'%3E%3Cpolyline points='0,10 60,10 72,2 84,18 96,10 220,10' fill='none' stroke='%230B6E4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.narrow { max-width: 440px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.hero h1 { font-size: 2.4rem; max-width: 640px; margin: 0 auto 0.6rem; }
.hero p { color: var(--ink-muted); max-width: 520px; margin: 0 auto 2rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #2A1B04; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-block { display: block; width: 100%; text-align: center; }

label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 1rem 0 0.35rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.password-field { position: relative; }
.password-field input { padding-right: 2.6rem; }
.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
}
.password-toggle:hover { color: var(--primary); }
.password-toggle svg { width: 18px; height: 18px; }

.form-actions { margin-top: 1.5rem; }

.alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--primary-dark); }

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-clean, .tag-confirmed, .tag-completed { background: var(--success-bg); color: var(--primary-dark); }
.tag-blocked, .tag-cancelled { background: var(--danger-bg); color: var(--danger); }
.tag-pending, .tag-requested { background: #FCF1DF; color: #8A5A0C; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: var(--ink-muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

.account-menu { position: relative; display: inline-block; }
.account-menu-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; color: var(--ink-muted); padding: 0.3rem 0.6rem; border-radius: 6px;
}
.account-menu-btn:hover { background: var(--bg); }
.account-menu-dropdown {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 0.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08); min-width: 180px; z-index: 20; overflow: hidden;
}
.account-menu-dropdown.open { display: block; }
.account-menu-dropdown a, .account-menu-dropdown button {
  display: block; width: 100%; text-align: left; padding: 0.6rem 1rem;
  background: none; border: none; font-size: 0.9rem; color: var(--ink); cursor: pointer;
  text-decoration: none; font-family: inherit;
}
.account-menu-dropdown a:hover, .account-menu-dropdown button:hover { background: var(--bg); }
.account-menu-dropdown .danger { color: var(--danger); }

footer {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  padding: 2rem;
}

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}
