/* Σχολή Οδηγών Κοτορλός — εφαρμογή μαθητή. Κόκκινο / σκούρο μπλε / λευκό (όπως τα σχέδια). */
.kot { --red: #e30613; --red2: #c00010; --navy: #0b2346; --ink: #1d2433; --mut: #5d6779; --line: #e3e8f0; --bg: #f5f7fb; --ok: #16a34a; --no: #dc2626; --amber: #d97706;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); max-width: 860px; margin: 0 auto; padding: 8px 0 40px; font-size: 16px; line-height: 1.5; }
.kot *, .kot *::before, .kot *::after { box-sizing: border-box; }
.kot [hidden] { display: none !important; }
.kot h2 { font-size: 24px; margin: 0 0 6px; color: var(--navy); font-weight: 800; }
.kot h3 { font-size: 18px; margin: 0 0 10px; color: var(--navy); font-weight: 800; }
.kot p { margin: 0 0 10px; }
.kot a { color: var(--red); }
.kot button { font: inherit; cursor: pointer; }
.kot button:disabled { cursor: default; opacity: .5; }
.kot-loading { padding: 40px 10px; text-align: center; color: var(--mut); }
.kot-small { font-size: 13px; color: var(--mut); }
.kot-err { color: var(--no); font-weight: 600; }
.kot-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 14px 0; box-shadow: 0 2px 10px rgba(11, 35, 70, .05); }
.kot-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--red); color: #fff !important; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 700; text-decoration: none; min-height: 46px; }
.kot-btn:hover { background: var(--red2); }
.kot-btn--ghost { background: #fff; color: var(--navy) !important; border: 1.5px solid var(--line); }
.kot-btn--ghost:hover { background: var(--bg); }
.kot-btn--sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.kot-link { color: var(--mut) !important; font-size: 14px; }
.kot-back { background: none; border: 0; color: var(--navy); font-weight: 700; padding: 6px 0; }
.kot-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 99999; opacity: 0; transition: .25s; max-width: 92vw; font-family: system-ui, sans-serif; }
.kot-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Σύνδεση */
.kot-login { max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.kot-login form p { margin: 0 0 12px; }
.kot-login label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.kot-login input[type=text], .kot-login input[type=password] { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; }
.kot-login input[type=submit] { background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; font-size: 16px; width: 100%; cursor: pointer; }

/* Αρχική */
.kot-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 8px; }
.kot-hello small { color: var(--mut); }
.kot-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.kot-tab { white-space: nowrap; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; color: var(--navy); }
.kot-tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.kot-ready { border-radius: 16px; padding: 16px 18px; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 3px; border: 1px solid; }
.kot-ready b { font-size: 18px; }
.kot-ready em { font-style: normal; font-size: 13px; opacity: .8; }
.kot-ready--ready { background: #ecfdf3; border-color: #a7f3c0; color: #14532d; }
.kot-ready--close { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.kot-ready--not { background: #eff4ff; border-color: #c7d7fe; color: var(--navy); }
.kot-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.kot-act { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-height: 76px; }
.kot-act b { color: var(--navy); font-size: 16px; }
.kot-act span { color: var(--mut); font-size: 13px; }
.kot-act--main { background: var(--red); border-color: var(--red); }
.kot-act--main b, .kot-act--main span { color: #fff; }
.kot-weak { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; color: var(--amber); font-size: 14px; }
.kot-weak button { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.kot-hist { display: flex; align-items: flex-end; gap: 5px; height: 70px; }
.kot-hist i { flex: 1; max-width: 28px; border-radius: 5px 5px 2px 2px; }
.kot-hist i.ok { background: var(--ok); }
.kot-hist i.no { background: var(--no); }
.kot-chs { display: flex; flex-direction: column; gap: 6px; }
.kot-ch { display: grid; grid-template-columns: 30px 1fr 70px 42px; gap: 10px; align-items: center; text-align: left; background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; }
.kot-ch:hover { border-color: var(--line); background: #fff; }
.kot-ch.weak { background: #fff7ed; }
.kot-ch__no { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.kot-ch__t { font-size: 13px; font-weight: 700; color: var(--navy); min-width: 0; }
.kot-ch__t small { display: block; font-weight: 500; color: var(--mut); }
.kot-ch__bar { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; }
.kot-ch__bar i { display: block; height: 100%; background: var(--ok); }
.kot-ch.weak .kot-ch__bar i { background: var(--amber); }
.kot-ch__pct { font-size: 13px; font-weight: 800; text-align: right; }
.kot-resume { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Τεστ */
.kot-quiz { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.kot-qhead { display: flex; align-items: center; gap: 10px; }
.kot-qhead b { flex: 1; color: var(--navy); }
.kot-qhead span { font-weight: 700; color: var(--mut); }
.kot-timer { background: var(--navy); color: #fff !important; border-radius: 8px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.kot-timer.low { background: var(--no); }
.kot-prog { height: 5px; background: var(--line); border-radius: 9px; margin: 10px 0 14px; overflow: hidden; }
.kot-prog i { display: block; height: 100%; background: var(--red); transition: width .3s; }
.kot-q small { color: var(--mut); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.kot-q h3 { font-size: 19px; line-height: 1.4; margin: 4px 0 12px; color: var(--ink); }
.kot-qimg { text-align: center; margin: 6px 0 12px; }
.kot-qimg img { max-width: 100%; max-height: 300px; border-radius: 10px; }
.kot-opts { display: flex; flex-direction: column; gap: 8px; }
.kot-opts--img { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kot-opt { display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 54px; color: var(--ink); }
.kot-opt:hover:not(:disabled) { border-color: #9fb3d9; }
.kot-opt:disabled { opacity: 1; }
.kot-opt__k { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 800; color: var(--navy); }
.kot-opt__t img { max-width: 100%; max-height: 120px; display: block; }
.kot-opt.sel { border-color: var(--navy); background: #eef3ff; }
.kot-opt.sel .kot-opt__k { background: var(--navy); color: #fff; }
.kot-opt.right { border-color: var(--ok); background: #ecfdf3; }
.kot-opt.right .kot-opt__k { background: var(--ok); color: #fff; }
.kot-opt.wrong { border-color: var(--no); background: #fef2f2; }
.kot-opt.wrong .kot-opt__k { background: var(--no); color: #fff; }
.kot-fb { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.kot-fb.ok { background: #ecfdf3; color: #14532d; }
.kot-fb.no { background: #fef2f2; color: #7f1d1d; }
.kot-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.kot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-top: 14px; }
.kot-grid button { height: 36px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; color: var(--mut); }
.kot-grid button.done { background: #eef3ff; border-color: #c7d7fe; color: var(--navy); }
.kot-grid button.cur { border-color: var(--red); color: var(--red); }

/* Αποτελέσματα */
.kot-res { border-radius: 18px; padding: 22px; text-align: center; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 4px; }
.kot-res b { font-size: 28px; }
.kot-res--ok { background: var(--ok); }
.kot-res--no { background: var(--no); }
.kot-tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.kot-tbl th, .kot-tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.kot-tbl th { color: var(--mut); font-size: 12px; text-transform: uppercase; }
.kot-tbl tr.weak td { color: #9a3412; background: #fff7ed; }
.kot-tbl td.ok { color: var(--ok); font-weight: 700; }
.kot-tbl td.no { color: var(--no); font-weight: 700; }
.kot-rev { border-top: 1px solid var(--line); padding: 12px 0; }
.kot-rev p { margin: 4px 0 0; font-size: 14px; }
.kot-rev p.ok { color: #14532d; }
.kot-rev p.no { color: #7f1d1d; }
.kot-rev img { max-height: 70px; vertical-align: middle; }
.kot-rev__img { display: block; max-height: 140px !important; margin: 6px 0; border-radius: 8px; }
.kot-cta { border-color: #fecaca; background: #fff7f7; }
.kot-free { text-align: center; padding: 28px 18px; }

@media (max-width: 560px) {
  .kot h2 { font-size: 21px; }
  .kot-q h3 { font-size: 17px; }
  .kot-ch { grid-template-columns: 28px 1fr 46px; }
  .kot-ch__bar { display: none; }
  .kot-nav .kot-btn { flex: 1; }
}

/* Σήματα */
.kot-rule { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.kot-rule p { margin: 0; font-size: 14px; color: var(--mut); }
.kot-shape { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; }
.kot-shape svg { width: 44px; height: 44px; }
.kot-sgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kot-sg { background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.kot-sg b { color: var(--navy); }
.kot-sg > span:not(.kot-shape) { font-size: 12px; color: var(--mut); }
.kot-sg .kot-ch__bar { display: block; width: 100%; height: 6px; margin-top: 4px; }
.kot-flash { text-align: center; padding: 10px 0; }
.kot-flash img { max-width: 70%; max-height: 240px; display: block; margin: 0 auto 16px; }
.kot-mean { font-size: 19px; font-weight: 800; color: var(--navy); background: #eef3ff; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.kot-grade { display: flex; gap: 10px; justify-content: center; }
.kot-btn--ok { background: var(--ok); }
.kot-btn--ok:hover { background: #15803d; }

/* Βοηθός */
.kot-ai-btn { margin-top: 10px; background: #eef3ff; color: var(--navy); border: 1.5px solid #c7d7fe; border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.kot-ai { margin-top: 10px; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 12px; padding: 12px 14px; font-size: 15px; color: #2e1065; }
.kot-msgs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 55vh; overflow-y: auto; }
.kot-msg { padding: 10px 14px; border-radius: 14px; max-width: 88%; font-size: 15px; }
.kot-msg--user { align-self: flex-end; background: var(--navy); color: #fff; }
.kot-msg--assistant { align-self: flex-start; background: var(--bg); }
.kot-msg--wait { opacity: .6; }
.kot-ask { display: flex; gap: 8px; }
.kot-ask input { flex: 1; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; min-width: 0; }

/* «Για ποιο δίπλωμα;» */
.kot-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 10px 0 14px; text-align: center; }
.kot-pick__c { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 8px; color: var(--navy); min-height: 92px; justify-content: center; }
.kot-pick__c b { font-size: 14px; line-height: 1.25; }
.kot-pick__c small { color: var(--mut); font-size: 12px; }
.kot-pick__c.on { border-color: var(--red); background: #fff5f5; box-shadow: 0 0 0 2px var(--red) inset; }
.kot-pick__i { font-size: 28px; line-height: 1; }
.kot-pick__sum { background: var(--bg); border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.kot-free .kot-pick__sum { text-align: left; }
@media (max-width: 480px) { .kot-pick { grid-template-columns: repeat(2, 1fr); } }

/* 0.8.0 — «Τεστ Υπουργείου»: οθόνη σαν του τερματικού της εξέτασης (γαλαζοπράσινο φόντο, ερώτηση/εικόνα, μεγάλα κουμπιά). */
html.kot-min-on, html.kot-min-on body { overflow: hidden; }
.kot-act--min { background: #0f5f63; border-color: #0f5f63; }
.kot-min { position: fixed; inset: 0; z-index: 100000; background: #c1ddde; color: #10202a; display: flex; flex-direction: column; overflow-y: auto; font-family: Arial, "Helvetica Neue", sans-serif; }
.kot-min__top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #0f5f63; color: #fff; position: sticky; top: 0; z-index: 1; }
.kot-min__brand { flex: 1; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kot-min__time { font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .15); border-radius: 8px; padding: 4px 10px; }
.kot-min__time.low { background: #e30613; }
.kot-min__x { background: transparent; border: 0; color: #fff; font-size: 20px; line-height: 1; padding: 6px; }
.kot-min__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 32px; }
.kot-min__main h4 { margin: 0 0 10px; text-align: center; font-size: 20px; letter-spacing: .5px; color: #10202a; }
.kot-min__q { background: #d9eaeb; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); padding: 16px 18px; font-size: 21px; font-weight: 700; line-height: 1.4; margin-bottom: 26px; }
.kot-min__opts { display: flex; flex-direction: column; gap: 10px; }
.kot-min__opt { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid #8fa9ab; border-radius: 2px; padding: 12px 14px; font-size: 18px; color: #10202a; min-height: 52px; }
.kot-min__opt b { flex: 0 0 auto; }
.kot-min__opt:hover { background: #fdfbe6; }
.kot-min__opt.sel { background: #f6f39a; border-color: #b9b23a; }
.kot-min__opts--img { flex-direction: row; flex-wrap: wrap; }
.kot-min__opts--img .kot-min__opt { width: auto; flex: 1 1 140px; justify-content: center; }
.kot-min__opt img { max-width: 120px; max-height: 120px; display: block; }
.kot-min__side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.kot-min__img { width: 100%; aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.kot-min__img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.kot-min__img--none { background: transparent; box-shadow: none; aspect-ratio: auto; height: 0; }
.kot-min__count { font-size: 15px; font-weight: 700; }
.kot-min__bar { width: 100%; height: 12px; background: #fff; border: 1px solid #10202a; border-radius: 3px; overflow: hidden; }
.kot-min__bar i { display: block; height: 100%; background: #2f8f95; }
/* 0.8.1: «ΕΠΙΒΕΒΑΙΩΣΗ ΑΠΑΝΤΗΣΗΣ» — σβηστό μέχρι να επιλεγεί απάντηση, όπως στην πραγματική εξέταση */
.kot-min__ok { width: 100%; min-height: 56px; border: 2px solid #9fb1b2; border-radius: 6px; background: #e3eaea; color: #8a9a9b; font-size: 16px; font-weight: 800; letter-spacing: .3px; cursor: default; }
.kot-min__ok.on { border-color: #0b4d8c; background: linear-gradient(#fff36b, #e9d81f); color: #0b3d6e; box-shadow: 0 3px 0 #0b4d8c; cursor: pointer; }
.kot-min__ok.on:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b4d8c; }
.kot-min__next { width: 100%; min-height: 64px; border: 2px solid #0b4d8c; border-radius: 6px; background: linear-gradient(#36b5e5, #0f7fb8); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .3px; box-shadow: 0 3px 0 #0b4d8c; }
.kot-min__next:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b4d8c; }
.kot-min__row { display: flex; gap: 8px; width: 100%; }
.kot-min__prev { flex: 1; min-height: 42px; background: #e7f1f2; border: 1px solid #8fa9ab; border-radius: 4px; color: #10202a; font-size: 14px; }
@media (max-width: 760px) {
  .kot-min__body { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 12px 24px; }
  .kot-min__q { font-size: 18px; margin-bottom: 14px; }
  .kot-min__opt { font-size: 16px; }
  .kot-min__side { display: contents; }
  .kot-min__img { order: 1; max-width: 360px; justify-self: center; }
  .kot-min__main { order: 2; }
  .kot-min__count { order: 3; justify-self: center; }
  .kot-min__bar { order: 4; }
  .kot-min__ok { order: 5; }
  .kot-min__next { order: 6; }
  .kot-min__row { order: 7; }
}
