/* ACTIVOO LITE — Minimal Dark UX
   Shared Activoo Lite visual language and minimal management forms.
   Visual language: restrained charcoal, clear hierarchy, generous space, single lime action accent.
*/
:root {
  color-scheme: dark;
  --bg: #111517;
  --header: #13181b;
  --surface: #1b2124;
  --surface-soft: #20272a;
  --input: #13191c;
  --line: #313a3e;
  --line-soft: #293135;
  --text: #f2f5f5;
  --muted: #a0adb1;
  --muted-soft: #849498;
  --accent: #b9ed70;
  --accent-hover: #cef994;
  --radius: 15px;
  --radius-control: 9px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Top bar — brand and navigation */
header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(19, 24, 27, .97);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.head {
  max-width: 1180px;
  min-height: 64px;
  margin: auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-name { font-size: 19px; line-height: 1; font-weight: 650; letter-spacing: .14em; }
.brand-subtitle {
  padding-left: 18px;
  border-left: 1px solid #3e474b;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0;
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; }
nav a, .navbutton {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #c5cdd0;
  font-size: 12px;
  font-weight: 480;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
nav a:hover, .navbutton:hover { color: white; }
nav a.active { color: var(--text); border-bottom-color: var(--accent); }
nav form { margin: 0; }
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #394247;
  border-radius: 50%;
  background: #293236;
  color: #e5eaea;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Page typography and shell */
main { max-width: 1180px; margin: auto; padding: 42px 24px 72px; }
footer {
  border-top: 1px solid var(--line-soft);
  padding: 24px 20px;
  text-align: center;
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: .11em;
}
.intro { margin: 0 0 26px; }
main:has(.report-form) > .intro { max-width: 790px; margin-left: auto; margin-right: auto; }
.eyebrow {
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
h1 {
  margin: 0 0 7px;
  font-size: clamp(28px, 3.4vw, 34px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.035em;
}
h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 23px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 620;
  letter-spacing: -.012em;
}
h3 { margin: 0 0 9px; font-size: 15px; font-weight: 600; }
p { margin-top: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; line-height: 1.6; }

/* Sections and basic forms */
.card {
  min-width: 0;
  margin-bottom: 16px;
  padding: 26px 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 9px 26px rgba(0, 0, 0, .055);
}
.step {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #333c40;
  border-radius: 50%;
  background: #2d3539;
  color: #f1f4f4;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: 0;
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 28px; }
.fields > * { min-width: 0; }
label { display: block; min-width: 0; color: #dce2e3; font-size: 12px; font-weight: 540; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 6px;
  padding: 10px 13px;
  border: 1px solid #3a454a;
  border-radius: var(--radius-control);
  background: var(--input);
  color: #f1f4f4;
  font-size: 13px;
  font-weight: 480;
  line-height: 1.45;
  outline: none;
  box-shadow: none;
  transition: border-color .16s ease, background-color .16s ease;
}
input, select { min-height: 41px; }
textarea { min-height: 82px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #536067; }
input:focus, select:focus, textarea:focus { border-color: #a4d273; }
input::placeholder, textarea::placeholder { color: #819095; opacity: 1; }
input[readonly] { color: #b1bec2; background: #181e21; cursor: default; }
select { padding-right: 32px; cursor: pointer; }
select option { background: #1b2225; color: #f2f5f5; }
label small { display: block; margin-top: 5px; color: #95a3a6; font-size: 10px; font-weight: 420; line-height: 1.5; }
.wide { grid-column: 1 / -1; }
input[type="date"], input[type="time"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  color-scheme: dark;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { margin-left: auto; }
input.locked-date { background: #1b2528; color: var(--text); cursor: default; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

.primary, .secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 17px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.primary { border: 1px solid transparent; background: var(--accent); color: #18221a; }
.primary:hover { background: var(--accent-hover); }
.primary:active, .secondary:active { transform: translateY(1px); }
.primary span { font-size: 16px; line-height: 1; }
.secondary { border: 1px solid #435056; background: #262e32; color: #e5ebec; }
.secondary:hover { background: #303a3e; border-color: #5a676e; }
.large { width: 100%; min-height: 47px; padding: 12px 20px; }
.report-form { max-width: 790px; margin: 0 auto; }
.report-form .card { padding: 23px 27px; }
.report-form > .tiny { margin: 12px 8px 0; text-align: center; }
.report-form > .primary { margin-top: 2px; }

/* Login */
.auth { max-width: 445px; margin: 6vh auto 8vh; padding: 36px; }
.auth h1 { font-size: 28px; }
.auth form { margin-top: 28px; }
.auth label { margin-bottom: 18px; }
.auth .primary { width: 100%; margin-top: 6px; justify-content: space-between; }

/* Feedback */
.alert {
  padding: 12px 17px;
  margin-bottom: 18px;
  border: 1px solid #53644c;
  border-radius: 10px;
  background: #243327;
  color: #e6f4df;
  font-size: 13px;
}
.alert.error { border-color: #845457; background: #3b2528; color: #ffdbdc; }

/* Dashboard and administrative views */
.split { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.split > * { min-width: 0; }
.filters { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; padding: 18px 22px; }
.filters label { min-width: 175px; flex: 1; }
.filters > button, .filters > a { margin-top: 4px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 20px 0 24px; }
.metric {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--surface);
}
.metric small { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin: 4px 0; font-size: clamp(24px, 3vw, 30px); font-weight: 650; line-height: 1.3; letter-spacing: -.035em; }
.metric span { color: #aebbb9; font-size: 11px; }
.card .intro { margin-bottom: 16px; }
.card .intro h2 { margin-bottom: 6px; }
.card .metrics { margin-bottom: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 12px; }
th, td { padding: 14px 13px; border-bottom: 1px solid #30393d; }
th { color: #9eacaf; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .055em; }
td { color: #e5ebeb; }
td small { display: block; color: var(--muted); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tbody tr:last-child td { border-bottom: 0; }
.point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.point { margin: 0; padding: 22px; }
.point > p { font-size: 12px; }
.point form { margin: 17px 0; }
.point label { margin: 12px 0; }
.point form button, .point > a { width: 100%; margin-top: 8px; }
.form-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.form-stack > input[type="hidden"] { display: none; }
.form-stack .primary { min-width: 0; }
.card > form:not(.fields):not(.filters):not(.form-stack):not(.report-form) > label { margin: 13px 0; }

/* Survey radio answer groups */
.survey-answer-card { border: 1px solid var(--line-soft); background: var(--surface); padding: 23px 27px; }
.survey-question { min-width: 0; margin: 0 0 12px; padding: 13px 0 19px; border: 0; border-bottom: 1px solid var(--line-soft); }
.survey-question:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.survey-question legend { padding: 0 0 8px; color: var(--text); font-size: 13px; font-weight: 560; }
.survey-question legend small { color: var(--muted); font-size: 11px; font-weight: 400; }
.survey-options { display: flex; flex-wrap: wrap; gap: 10px; }
.survey-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 9px 14px;
  border: 1px solid #3a464a;
  border-radius: 9px;
  background: #151c1f;
  color: #dce4e3;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .16s, background-color .16s;
}
.survey-options input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); }
.survey-options label:hover { border-color: #657477; }
.survey-options label:has(input:checked) { border-color: #7f9b6a; background: #29372a; color: #e5f5dc; }

@media (max-width: 950px) {
  nav { gap: 14px; }
  .brand-subtitle { display: none; }
  .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .head { flex-wrap: wrap; min-height: 0; gap: 6px 14px; padding: 13px 18px 9px; }
  nav { width: 100%; gap: 17px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  nav a, .navbutton { flex: 0 0 auto; white-space: nowrap; }
  .avatar { display: none; }
  main { padding: 27px 18px 52px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { display: block; }
  .split > a { margin-top: 15px; }
  .fields { gap: 17px 16px; }
}
@media (max-width: 540px) {
  .brand-name { font-size: 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 15px; gap: 11px; margin-bottom: 17px; }
  .card, .report-form .card, .survey-answer-card { padding: 20px 17px; border-radius: 13px; }
  .step { width: 30px; height: 30px; font-size: 12px; }
  .fields, .form-stack { grid-template-columns: minmax(0, 1fr); }
  .point-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { gap: 10px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 24px; }
  .filters { display: grid; gap: 10px; }
  .filters label { min-width: 0; }
  .filters > button, .filters > a { width: 100%; }
  .survey-options { gap: 7px; }
  .survey-options label { padding: 9px 11px; }
  .auth { padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
/* Keep existing CSRF and other hidden fields invisible regardless of shared input styling. */
input[type="hidden"] { display: none !important; }

/* ACTIVOO Lite - sade katalog ve saha atamaları */
.section-label{font-size:12px;font-weight:650;color:var(--muted);margin:18px 0 8px}
.variants-list{border-top:1px solid var(--line);margin-bottom:18px}
.variant-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.variant-row .inactive{opacity:.48;text-decoration:line-through}
.text-action{color:var(--muted);background:transparent;border:0;font:inherit;font-size:12px;cursor:pointer;padding:5px}
.text-action:hover,.text-action:focus-visible{color:var(--accent)}
.assignment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:7px;padding:12px 0;margin-bottom:10px}
.check-row{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;cursor:pointer}
.check-row input{width:18px;height:18px;min-width:18px;margin:0;accent-color:var(--accent)}

.survey-setup{border-top:1px solid var(--line);padding:12px 0;margin-top:18px}
.survey-setup summary{cursor:pointer;color:var(--text);font-weight:600}
.survey-setup label{margin-top:12px}.survey-setup p{margin:10px 0}

/* Anket grafikleri — sade ve responsive */
.survey-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 28px;margin-top:23px}.survey-chart{min-width:0}.survey-chart-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:9px;font-size:13px}.survey-chart-top strong:last-child{color:var(--accent);white-space:nowrap}.survey-track{height:9px;background:#303a3e;border-radius:30px;overflow:hidden}.survey-track span{display:block;height:100%;background:var(--accent);border-radius:30px}.survey-chart small{display:block;margin-top:8px;font-size:11px;color:var(--muted)}@media(max-width:640px){.survey-chart-grid{grid-template-columns:1fr;gap:22px}}
