:root {
  --szamos: #20b099;
  --szamos-dark: #133c44;
  --sidebar: #263b3d;
  --sidebar-soft: #31494b;
  --page: #f2f7f6;
  --card: #ffffff;
  --line: #d7e2e0;
  --text: #213438;
  --muted: #698085;
  --danger: #b33b4b;
  --warning: #a96d0c;
  --success: #167b63;
  --shadow: 0 8px 24px rgba(19, 60, 68, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: Cambria, Georgia, "Times New Roman", serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.45;
}

a { color: var(--szamos-dark); }
button, input, select, textarea { font: inherit; }

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--sidebar); color: #e9f5f3; padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; margin: 2px 4px 24px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--szamos); display: grid; place-items: center; color: white; font-weight: 700; }
.brand strong { color: var(--szamos); letter-spacing: .5px; }
.brand span { color: #6f8588; }
.nav-section { margin: 18px 6px 8px; font-size: 11px; letter-spacing: 1px; color: #79a19e; text-transform: uppercase; font-family: Arial, sans-serif; }
.nav-link { display: block; color: #cbe0dd; text-decoration: none; padding: 10px 12px; border-radius: 8px; margin: 3px 0; font-family: Arial, sans-serif; font-size: 14px; }
.nav-link:hover, .nav-link.active { background: var(--szamos); color: white; }
.sidebar-footer { margin-top: 28px; border-top: 1px solid #456063; padding-top: 14px; font-family: Arial, sans-serif; font-size: 13px; }

.main { min-width: 0; }
.topbar { height: 64px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 18px; margin: 0; }
.content { padding: 24px; max-width: 1500px; }
.page-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.page-title h2 { margin: 0 0 4px; font-size: 28px; color: var(--szamos-dark); }
.page-title p { margin: 0; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card h3 { margin-top: 0; color: var(--szamos-dark); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { border-left: 5px solid var(--szamos); }
.stat .value { font-size: 34px; font-weight: 700; color: var(--szamos-dark); }
.stat .label { color: var(--muted); font-family: Arial, sans-serif; }

label { display: block; font-weight: 700; margin-bottom: 5px; }
.field { margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #b9ccca; border-radius: 8px; background: white; color: var(--text);
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(32,176,153,.15); border-color: var(--szamos); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.help { color: var(--muted); font-size: 13px; margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 10px 15px; text-decoration: none; cursor: pointer; font-weight: 700; font-family: Arial, sans-serif; }
.btn-primary { background: var(--szamos); color: white; }
.btn-secondary { background: var(--szamos-dark); color: white; }
.btn-light { background: #e9f1f0; color: var(--szamos-dark); }
.btn-danger { background: var(--danger); color: white; }
.btn-small { padding: 7px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--szamos-dark); color: white; font-family: Arial, sans-serif; font-size: 13px; }
tr:hover td { background: #f7fbfa; }

.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; background: #e7efee; color: var(--szamos-dark); }
.badge-success { background: #dff3ec; color: var(--success); }
.badge-danger { background: #f8e2e5; color: var(--danger); }
.badge-warning { background: #fff0d7; color: var(--warning); }
.badge-teal { background: #dff5f1; color: #0d6f5f; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; border-left: 5px solid; background: white; }
.alert-success { border-color: var(--success); }
.alert-danger { border-color: var(--danger); }
.alert-warning { border-color: var(--warning); }
.alert-info { border-color: var(--szamos); }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #eaf5f2, #f6f9f8); }
.login-card { max-width: 460px; width: 100%; }
.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo .brand-mark { margin: 0 auto 8px; }

.participant-shell { min-height: 100vh; }
.participant-header { background: var(--szamos-dark); color: white; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; }
.participant-header .brand span { color: #aac0c1; }
.participant-content { max-width: 1100px; margin: 0 auto; padding: 24px; }
.hero { background: linear-gradient(135deg, var(--szamos-dark), #1d5b60); color: white; border-radius: 16px; padding: 26px; margin-bottom: 20px; }
.hero h1 { margin: 0 0 8px; }
.hero p { margin: 0; color: #d9eeee; }

.test-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; }
.test-sidebar { position: sticky; top: 18px; align-self: start; }
.timer { font-family: Arial, sans-serif; font-size: 30px; font-weight: 800; color: var(--szamos-dark); text-align: center; padding: 10px; border: 2px solid var(--szamos); border-radius: 10px; }
.timer.warning { color: var(--warning); border-color: var(--warning); }
.timer.danger { color: var(--danger); border-color: var(--danger); }
.progress { height: 10px; background: #e3ecea; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--szamos); width: 0; }
.question-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.question-dot { border: 1px solid #a9bfbc; background: white; color: var(--szamos-dark); border-radius: 6px; padding: 7px 0; cursor: pointer; }
.question-dot.answered { background: var(--szamos); color: white; border-color: var(--szamos); }
.question-dot.current { outline: 3px solid rgba(19,60,68,.25); }
.question-area { color: var(--szamos); font-family: Arial, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.question-text { font-size: 23px; margin: 8px 0 20px; color: var(--szamos-dark); }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1px solid #bcd0cd; border-radius: 10px; margin-bottom: 10px; cursor: pointer; background: white; }
.option:hover { border-color: var(--szamos); background: #f5fbf9; }
.option.selected { border-color: var(--szamos); background: #e6f7f3; box-shadow: inset 0 0 0 1px var(--szamos); }
.option-key { min-width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e8efee; font-family: Arial, sans-serif; font-weight: 700; }
.option.selected .option-key { background: var(--szamos); color: white; }
.save-status { color: var(--muted); font-family: Arial, sans-serif; font-size: 13px; }
.score-box { text-align: center; padding: 22px; border-radius: 12px; background: #eef7f5; }
.score-box .score-value { font-size: 50px; font-weight: 700; color: var(--szamos-dark); }

.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.no-margin { margin: 0; }
.code { font-family: Consolas, monospace; background: #eef2f1; padding: 2px 5px; border-radius: 4px; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { flex: 1; }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .grid-4, .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .test-shell { grid-template-columns: 1fr; }
  .test-sidebar { position: static; }
}

/* Mérési áttekintés */
.overview-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.overview-area {
  border: 1px solid #bcd0cd;
  border-radius: 10px;
  background: #f7fbfa;
  color: var(--text);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.overview-area:hover { border-color: var(--szamos); background: #eaf7f4; }
.overview-area strong { display: block; color: var(--szamos-dark); margin-bottom: 4px; }
.overview-area span { color: var(--muted); font-family: Arial, sans-serif; font-size: 13px; }
.overview-heading { margin: 18px 0 10px; color: var(--szamos-dark); }
.overview-missing { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-missing .question-dot { width: 44px; }
.overview-ready {
  border-left: 5px solid var(--success);
  background: #eef8f5;
  border-radius: 8px;
  padding: 16px;
  color: var(--szamos-dark);
}

@media (max-width: 700px) {
  .overview-summary { grid-template-columns: 1fr; }
}

/* 0.2 - hivatalos Szamos arculat és beszámítási kérelem */
.brand-panel {
  display: block;
  margin: 0 0 24px;
  padding: 12px 10px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}
.brand-module {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #dce7e5;
  color: var(--szamos-dark);
  font: 700 13px/1.2 Arial, sans-serif;
  letter-spacing: .35px;
  text-align: center;
  text-transform: uppercase;
}
.participant-brand { display: flex; align-items: center; gap: 12px; }
.participant-logo-wrap {
  display: inline-flex;
  align-items: center;
  width: 210px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff;
}
.participant-logo-wrap img { display: block; width: 100%; height: auto; }
.participant-module { font: 700 15px/1.2 Arial, sans-serif; letter-spacing: .4px; }
.login-logo img { display: block; width: min(340px, 90%); height: auto; margin: 0 auto 14px; }
.login-logo h1 { margin: 0 0 4px; color: var(--szamos-dark); }
.step-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.step-title > span {
  flex: 0 0 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--szamos); color: #fff;
  font: 700 16px/1 Arial, sans-serif;
}
.step-title h3 { margin: 0 0 2px; }
.step-title p { margin: 0; }
.application-card, .application-admin-card { border-top: 5px solid var(--szamos); }
.application-declaration {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid #b8cbc8;
  border-radius: 10px;
  background: #f2f8f7;
}
.application-declaration label { margin: 0; font-weight: 600; }
.application-success {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px;
  border: 1px solid #9dd4c9;
  border-radius: 10px;
  background: #eaf7f4;
}
.application-statement {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 4px solid var(--szamos);
  background: #fff;
  white-space: pre-wrap;
}
.retry-details {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfa;
}
.retry-details summary { cursor: pointer; font-weight: 700; color: var(--muted); }

@media (max-width: 700px) {
  .participant-header { align-items: flex-start; gap: 10px; flex-direction: column; }
  .participant-logo-wrap { width: 180px; }
  .application-success { align-items: flex-start; flex-direction: column; }
}

/* 0.3 - visszafogottabb logóméretek */
.brand-panel { padding: 9px 8px 8px; margin-bottom: 18px; }
.brand-logo { width: 82%; max-width: 118px; margin: 0 auto; }
.brand-module { font-size: 11px; }
.participant-logo-wrap { width: 150px; }
.login-logo img { width: min(230px, 74%); }


.onboarding-banner {
  position: relative;
  z-index: 10000;
  padding: 10px 18px;
  background: #fff3cd;
  color: #5f4300;
  border-bottom: 1px solid #e6cf82;
  text-align: center;
  font-size: 14px;
}


/* v0.6.8 – mobil hardening + személyes QR/rövid kódos belépés */
img, svg { max-width: 100%; }
input[type="file"] { width: 100%; max-width: 100%; min-width: 0; }
.participant-content, .participant-content .card, .test-shell, .test-shell > *, .option, .field { min-width: 0; }
.participant-shell input[type="text"], .participant-shell input[type="email"], .participant-shell input[type="password"], .participant-shell input[type="date"], .participant-shell input[type="number"], .participant-shell input[type="file"], .participant-shell select, .participant-shell textarea { font-size: 16px; }
.participant-shell .btn { min-height: 44px; }
.question-dot { min-height: 44px; padding: 9px 0; touch-action: manipulation; }
.option { min-height: 52px; touch-action: manipulation; }
.participant-access-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.access-code-mini, .access-code-inline { display: inline-block; padding: 6px 9px; border-radius: 7px; background: #eef7f5; color: var(--szamos-dark); font: 800 15px/1.1 Consolas, monospace; letter-spacing: 1px; }
.access-display { min-height: calc(100vh - 120px); display: grid; place-items: start center; padding: 10px 0 30px; }
.access-display-card { width: min(620px, 100%); text-align: center; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.access-display-card h2 { margin: 2px 0 4px; color: var(--szamos-dark); font-size: 30px; }
.access-eyebrow { margin: 0; font: 800 13px/1 Arial, sans-serif; letter-spacing: 1.4px; color: var(--szamos); }
.participant-qr { display: block; width: min(330px, 82vw); height: auto; margin: 18px auto 14px; background: white; }
.access-code-large { display: inline-block; margin: 16px auto 8px; padding: 12px 18px; border: 2px solid var(--szamos); border-radius: 12px; background: #eef8f5; color: var(--szamos-dark); font: 900 32px/1 Consolas, monospace; letter-spacing: 4px; }
.access-instruction { max-width: 520px; margin: 10px auto; }
.access-copy { margin-top: 18px; }
.access-warning { margin: 18px 0 0; text-align: left; }
.kiosk-wrap { min-height: calc(100vh - 110px); display: grid; place-items: center; padding: 18px 0; }
.kiosk-card { width: min(520px, 100%); margin: 0; }
.kiosk-heading { text-align: center; margin-bottom: 20px; }
.kiosk-heading h1 { color: var(--szamos-dark); margin: 0 0 6px; }
.kiosk-heading p { color: var(--muted); margin: 0; }
.access-code-input { text-align: center; font: 800 30px/1.2 Consolas, monospace !important; letter-spacing: 4px; text-transform: uppercase; }
.kiosk-submit { width: 100%; font-size: 17px; }
.kiosk-note { margin-top: 18px; padding: 12px 14px; border-radius: 9px; background: #f3f7f6; color: var(--muted); font-size: 14px; }
@media (max-width: 420px) {
  .participant-content { padding: 12px; } .participant-header { padding: 11px 12px; } .participant-logo-wrap { width: 138px; } .participant-module { font-size: 13px; }
  .hero { padding: 18px 16px; border-radius: 12px; } .hero h1 { font-size: 24px; line-height: 1.15; } .card { padding: 15px; border-radius: 12px; }
  .question-text { font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; } .option { gap: 9px; padding: 12px 10px; } .option > * { min-width: 0; overflow-wrap: anywhere; }
  .question-grid { gap: 5px; } .question-dot { font-size: 14px; }
  .test-nav { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; align-items: stretch; } .test-nav .save-status { grid-column: 1 / -1; grid-row: 1; text-align: center; min-height: 22px; } .test-nav #prev-button, .test-nav #next-button { width: 100%; }
  .copy-field { flex-direction: column; } .copy-field .btn { width: 100%; }
  .access-display-card { padding: 18px 14px; } .access-display-card h2 { font-size: 25px; } .access-code-large { font-size: 26px; letter-spacing: 3px; } .kiosk-wrap { padding: 0; } .kiosk-card { padding: 18px 14px; }
}
@media (max-width: 340px) { .participant-content { padding: 8px; } .participant-header { padding: 10px 8px; } .card { padding: 12px; } .hero { padding: 16px 12px; } .question-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .access-code-input { font-size: 25px !important; letter-spacing: 3px; } }

/* v0.6.9 – résztvevői adatkezelési kapu */
.privacy-gate { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; padding: 20px; background: rgba(19, 60, 68, .88); backdrop-filter: blur(5px); }
.privacy-gate-card { width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 30px 24px; border-top: 7px solid var(--szamos); border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .30); }
.privacy-gate-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.privacy-gate-brand img { width: 190px; height: auto; }
.privacy-gate-brand span, .privacy-kicker { color: var(--szamos); font: 800 12px/1.3 Arial, sans-serif; letter-spacing: 1.2px; }
.privacy-kicker { margin: 20px 0 5px; }
.privacy-gate-card h2 { margin: 0 0 10px; color: var(--szamos-dark); font-size: 30px; }
.privacy-gate-card > p { margin-top: 0; }
.privacy-gate-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.privacy-checkbox { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 18px; padding: 15px; border: 1px solid #b8cbc8; border-radius: 9px; background: #f2f8f7; font-weight: 700; }
.privacy-checkbox input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--szamos); }
.privacy-continue { width: 100%; font-size: 16px; }
.privacy-version { margin: 13px 0 0 !important; color: var(--muted); font-size: 12px; text-align: center; }
.privacy-recorded { margin: 0 0 14px; padding: 12px 14px; border-left: 5px solid var(--success); border-radius: 8px; background: #eaf7f4; }
.privacy-recorded span { color: var(--muted); font-size: 13px; }
.privacy-document { max-width: 900px; margin: 0 auto; padding: 32px 38px; border-top: 7px solid var(--szamos); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.privacy-document-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.privacy-document-head h1 { margin: 0 0 5px; color: var(--szamos-dark); font-size: 34px; }
.privacy-document h2 { margin: 27px 0 8px; color: var(--szamos); font-size: 21px; }
.privacy-document p { margin: 0 0 12px; }
.privacy-contact { margin-top: 28px; padding: 17px 19px; border-left: 5px solid var(--szamos); background: #eef7f5; }
@media (max-width: 600px) {
  .privacy-gate { padding: 8px; }
  .privacy-gate-card { max-height: calc(100vh - 16px); padding: 20px 16px 17px; border-radius: 11px; }
  .privacy-gate-brand img { width: 145px; }
  .privacy-gate-card h2 { font-size: 25px; }
  .privacy-gate-links, .privacy-gate-links .btn { width: 100%; }
  .privacy-document { padding: 22px 17px; }
  .privacy-document-head { flex-direction: column; }
  .privacy-document-head h1 { font-size: 28px; }
}
