/* Dashboard chrome — functional utility screens, not marketing pages.
   Color values mirror public/assets/css/theme.css; duplicated rather than
   shared for the same reason as dashboard.js (different serving contexts,
   no build step to bridge them). */
:root {
  --color-primary: #1f7a5c;
  --color-primary-light: #2f9973;
  --color-primary-dark: #145a42;
  --color-secondary: #f0faf6;
  --color-secondary-dark: #dcf0e8;
  --color-neutral: #fdfdfd;
  --color-neutral-dark: #f7f7f7;
  --color-error: #b3261e;
  --color-error-bg: #fdecea;
  --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  margin: 0;
  color: #222;
  background: var(--color-neutral-dark);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: white;
}
.dashboard-header a { color: white; text-decoration: none; }
.dashboard-header__logo { font-weight: bold; font-size: 1.1rem; }
.dashboard-header__nav { display: flex; gap: 1.25rem; align-items: center; font-size: 0.9rem; }
.dashboard-header__nav a:hover { text-decoration: underline; }
.dashboard-header__actions button {
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Admin sub-nav — Therapists / Locations / Services tabs, shown below the
   header on every /admin/* page. Active tab set per-page via the
   .active class (no shared templating for dashboard/ pages, so this is
   duplicated markup, same convention as the rest of this dashboard). */
.admin-tabs {
  display: flex;
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-secondary-dark);
  padding: 0 1.5rem;
}
.admin-tabs a {
  padding: 0.75rem 1.1rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.admin-tabs a:hover { background: var(--color-secondary-dark); }
.admin-tabs a.active { border-bottom-color: var(--color-primary); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
main.wide { max-width: 960px; }

.card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.1rem; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1rem 0 0.3rem;
}
label:first-child { margin-top: 0; }

input, textarea, select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
textarea { min-height: 100px; resize: vertical; }

.field-hint { font-size: 0.8rem; color: #666; margin-top: 0.25rem; }

button.primary {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.2rem;
}
button.primary:hover { background: var(--color-primary-dark); }
button.primary:disabled { opacity: 0.6; cursor: not-allowed; }

button.link {
  background: none;
  border: none;
  color: var(--color-primary-dark);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.message.error { background: var(--color-error-bg); color: var(--color-error); }
.message.success { background: var(--color-secondary-dark); color: var(--color-primary-dark); }

.photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-secondary);
  display: block;
  margin-bottom: 0.75rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid #eee; }
th { font-size: 0.8rem; text-transform: uppercase; color: #666; }

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-badge.pending { background: #fff4e0; color: #8a5a00; }
.status-badge.verified { background: var(--color-secondary-dark); color: var(--color-primary-dark); }
.status-badge.suspended { background: var(--color-error-bg); color: var(--color-error); }
.status-badge.rejected { background: #eee; color: #666; }
.status-badge.inactive { background: #eee; color: #666; }

.row-actions button {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  margin-right: 0.3rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}
.row-actions button:hover { background: var(--color-neutral-dark); }
.row-actions button.destructive { border-color: var(--color-error); color: var(--color-error); }

.empty-state {
  text-align: center;
  color: #666;
  padding: 2rem 1rem;
}

.auth-shell {
  max-width: 380px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.auth-shell h1 { text-align: center; }
.auth-shell .card { margin-top: 1.5rem; }
.auth-shell .switch-link { text-align: center; margin-top: 1rem; font-size: 0.9rem; }

/* Rich-text bio editor (Quill, loaded via CDN — see dashboard.js's
   initRichEditor()). Quill ships its own "snow" theme CSS; these rules
   just match its container to the same border/radius/font as every other
   input/textarea on this page (dashboard.css's `input, textarea, select`
   rule above), so it doesn't look like a foreign widget dropped in. */
.rich-editor {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  background: white;
}
.rich-editor .ql-toolbar { border: none; border-bottom: 1px solid #ccc; border-radius: 6px 6px 0 0; }
.rich-editor .ql-container { border: none; border-radius: 0 0 6px 6px; font-size: 1rem; min-height: 100px; }
