/* small additions on top of simple.css -- keep this file short */

.notice {
  padding: 0.75rem 1rem;
  border-radius: var(--standard-border-radius, 5px);
  margin-bottom: 1rem;
}

.error.notice {
  background: #fde8e8;
  border: 1px solid #d33;
  color: #a11;
}

.success.notice {
  background: #e6f6e6;
  border: 1px solid #2a2;
  color: #163;
}

/* likert-scale question tables (PHQ-9 / GAD-7 / WHODAS) */

table.likert {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

table.likert th,
table.likert td {
  text-align: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border, #ccc);
}

table.likert td:first-child,
table.likert th:first-child {
  text-align: left;
  width: 45%;
}

table.likert input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
}

.score-preview {
  font-weight: bold;
}

/* status badges in admin lists */

.badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
}

.badge-submitted { background: #dbe9fb; color: #1a4c8f; }
.badge-reviewed { background: #e6f6e6; color: #163; }
.badge-archived { background: #eee; color: #555; }
.badge-flag { background: #fde8e8; color: #a11; }

/* simple admin search bar */

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 1rem;
}

.admin-toolbar label {
  display: block;
  font-weight: bold;
  font-size: 0.9rem;
}

table.admin-list {
  width: 100%;
  border-collapse: collapse;
}

table.admin-list th,
table.admin-list td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border, #ccc);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.form-row .hint {
  font-weight: normal;
  font-size: 0.85rem;
  opacity: 0.8;
}

fieldset {
  margin-bottom: 1.5rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
