/* AnsibleHealth Feedback — color tokens mirror /share/Container/portal2/src/styles/colors.scss
   and /share/Container/team-portal CLAUDE.md brand colors. */
:root {
  --color-primary: #5da1d8;          /* Health blue */
  --color-primary-dark: #4a8fce;
  --color-coral: #ff916e;            /* Coral / accent */
  --color-darkblue: #263f6e;         /* Ansible dark blue */
  --color-bg: #fafafa;
  --color-card: #ffffff;
  --color-border: #e0e0e0;
  --color-border-light: #f1f1f1;
  --color-text: #263f6e;
  --color-text-secondary: #646c7a;
  --color-text-muted: #929aa9;
  --color-success: #4ad68a;
  --color-error: #ff4a60;
  --color-warning: #ffb800;
  --header-h: 70px;
  --radius: 12px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 2px rgba(38, 63, 110, 0.06);
  --shadow-md: 0 4px 12px rgba(38, 63, 110, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ───────── Topnav ───────── */
.topnav {
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: white;
  padding: 0 32px;
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 10;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--color-darkblue); font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--color-darkblue), var(--color-primary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.topnav nav { display: flex; gap: 24px; flex: 1; }
.topnav nav a { color: var(--color-text-secondary); font-weight: 500; padding: 8px 4px; }
.topnav nav a.active { color: var(--color-darkblue); border-bottom: 2px solid var(--color-primary); }
#nav-user { display: flex; align-items: center; gap: 12px; color: var(--color-text-secondary); }
#nav-user img { width: 32px; height: 32px; border-radius: 50%; }

/* ───────── Layout ───────── */
main { max-width: 1200px; margin: 32px auto; padding: 0 32px; }
h1 { font-size: 28px; font-weight: 600; margin: 0 0 8px; color: var(--color-darkblue); }
h2 { font-size: 20px; font-weight: 600; margin: 24px 0 12px; color: var(--color-darkblue); }
h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
p.lead { color: var(--color-text-secondary); margin: 0 0 24px; }

/* ───────── Cards ───────── */
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border-light);
}
.card-row { display: flex; gap: 16px; align-items: flex-start; }
.card-row + .card-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border-light); }
.card.card-empty { color: var(--color-text-muted); text-align: center; padding: 48px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: white;
  font-family: inherit; font-weight: 600; font-size: 14px;
  border: none; padding: 10px 24px; border-radius: var(--radius-pill);
  height: 40px; cursor: pointer; min-width: 120px; gap: 8px;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--color-primary-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--color-text-muted); cursor: not-allowed; }
.btn-coral { background: var(--color-coral); }
.btn-coral:hover { background: #f57854; }
.btn-secondary { background: white; color: var(--color-darkblue); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-border-light); }
.btn-danger { background: var(--color-error); }
.btn-danger:hover { background: #e53d54; }
.btn-sm { height: 32px; padding: 4px 16px; min-width: 0; font-size: 13px; }

/* ───────── Forms ───────── */
label { display: block; font-weight: 500; color: var(--color-text-secondary); font-size: 13px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=date], input[type=datetime-local], input[type=number], textarea, select {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px; background: white; color: var(--color-text);
  outline: none; transition: border-color 0.15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); }
textarea { min-height: 100px; resize: vertical; font-family: inherit; }

.form-row { margin-bottom: 16px; }
.form-row.required label::after { content: ' *'; color: var(--color-error); }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ───────── Tables ───────── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border-light); }
th { font-weight: 600; color: var(--color-text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
tr:hover td { background: var(--color-border-light); }

/* ───────── Pills / chips ───────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 4px 10px; border-radius: 999px;
  background: var(--color-border-light); color: var(--color-text-secondary);
}
.chip-success { background: rgba(74, 214, 138, 0.15); color: #1f8c4e; }
.chip-warn { background: rgba(255, 184, 0, 0.18); color: #946400; }
.chip-error { background: rgba(255, 74, 96, 0.13); color: #b71f33; }
.chip-info { background: rgba(93, 161, 216, 0.13); color: var(--color-primary-dark); }

/* ───────── Rating scale ───────── */
.rating-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.rating-option {
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 0.15s ease;
}
.rating-option:hover { border-color: var(--color-primary); }
.rating-option.selected { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.rating-option .num { font-size: 20px; font-weight: 700; }
.rating-option .label { font-size: 11px; margin-top: 4px; line-height: 1.2; }

/* ───────── Person row ───────── */
.person-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.person-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--color-border); flex-shrink: 0; }
.person-info { flex: 1; min-width: 0; }
.person-name { font-weight: 600; color: var(--color-darkblue); }
.person-meta { font-size: 12px; color: var(--color-text-muted); }

/* ───────── Banner ───────── */
.banner { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.banner-info { background: rgba(93, 161, 216, 0.1); color: var(--color-primary-dark); border: 1px solid rgba(93, 161, 216, 0.25); }
.banner-warn { background: rgba(255, 184, 0, 0.1); color: #946400; border: 1px solid rgba(255, 184, 0, 0.3); }
.banner-error { background: rgba(255, 74, 96, 0.08); color: #b71f33; border: 1px solid rgba(255, 74, 96, 0.25); }

/* ───────── Progress dots ───────── */
.progress-stages { display: flex; gap: 4px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.stage-pill { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--color-border-light); font-size: 12px; font-weight: 500; color: var(--color-text-muted); }
.stage-pill.done { background: rgba(74, 214, 138, 0.18); color: #1f8c4e; }
.stage-pill.current { background: var(--color-primary); color: white; }

/* ───────── Loading / empty ───────── */
.loading { text-align: center; padding: 48px; color: var(--color-text-muted); }
.empty { text-align: center; padding: 48px; color: var(--color-text-muted); }

/* ───────── Login ───────── */
.login-card {
  max-width: 440px; margin: 80px auto; text-align: center;
  background: white; border-radius: var(--radius); padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.login-card .brand-mark { width: 64px; height: 64px; border-radius: 16px; font-size: 32px; margin: 0 auto 24px; }
.login-card h1 { font-size: 24px; }
.login-card p { color: var(--color-text-secondary); margin-bottom: 32px; }
