/* Academia LKJFlow. Fonturile vin de pe site (assets/fonts), fără niciun server terț. */
@font-face { font-family: 'Montserrat'; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F; }
@font-face { font-family: 'Montserrat'; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 300 600; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 300 600; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --navy: #0f172a; --surface: #111827; --raised: #162033; --line: #24324a;
  --cyan: #06b6d4; --cyan-soft: rgba(6, 182, 212, .12); --cyan-light: #67e8f9;
  --white: #ffffff; --text: #e2e8f0; --muted: #94a3b8;
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, .12); --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12); --wait: #fbbf24; --wait-soft: rgba(251, 191, 36, .12);
  --h: 'Montserrat', sans-serif; --b: 'Plus Jakarta Sans', sans-serif;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body { background: var(--navy); color: var(--text); font: 16px/1.6 var(--b); min-height: 100vh;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(6,182,212,.10), transparent 60%),
                    radial-gradient(800px 500px at -10% 110%, rgba(6,182,212,.06), transparent 60%); background-attachment: fixed; }
a { color: var(--cyan-light); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(15,23,42,.92); }
.logo { font: 800 20px/1 var(--h); letter-spacing: .3px; color: var(--white); text-decoration: none; }
.logo b { color: var(--cyan); font-weight: 800; }
.logo small { display: block; font: 600 11px/1.4 var(--b); letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.top .cine { color: var(--muted); font-size: 14px; display: flex; gap: 14px; align-items: center; }
.link { background: none; border: 0; color: var(--cyan-light); cursor: pointer; text-decoration: underline; font-size: 14px; }

main { max-width: 860px; margin: 0 auto; padding: 32px 16px 80px; }
h1 { font: 800 clamp(26px, 4vw, 36px)/1.15 var(--h); color: var(--white); margin-bottom: 8px; letter-spacing: -.3px; }
h2 { font: 700 21px/1.3 var(--h); color: var(--white); margin: 28px 0 12px; }
h3 { font: 700 17px/1.35 var(--h); color: var(--white); margin: 22px 0 8px; }
p { margin: 0 0 12px; }
.sub { color: var(--muted); margin-bottom: 24px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 10px; border: 0; background: var(--cyan); color: #032a33; font: 700 16px/1 var(--h); cursor: pointer; text-decoration: none; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.alt { background: transparent; color: var(--cyan-light); border: 1px solid var(--cyan); }
.btn.rosu { background: var(--bad); color: #fff; }
.btn.mic { min-height: 36px; padding: 8px 14px; font-size: 14px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password], select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--navy); }
textarea { min-height: 120px; resize: vertical; }
.eroare { color: var(--bad); margin-top: 12px; min-height: 22px; }
.muted { color: var(--muted); }
.mic-text { font-size: 14px; }

/* Login */
.login { max-width: 420px; margin: 8vh auto 0; }
.login h1 { font-size: 30px; }

/* Traseul: cei 7 pași, ca marcajul unui drum */
.traseu { list-style: none; position: relative; margin: 8px 0 24px; }
.traseu::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 10px, transparent 10px 18px); }
.pas { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px 14px 0; animation: intra .5s both; }
.pas:nth-child(2) { animation-delay: .05s } .pas:nth-child(3) { animation-delay: .1s } .pas:nth-child(4) { animation-delay: .15s }
.pas:nth-child(5) { animation-delay: .2s } .pas:nth-child(6) { animation-delay: .25s } .pas:nth-child(7) { animation-delay: .3s }
@keyframes intra { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .pas { animation: none } .btn { transition: none } }
.bulina { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--h); background: var(--surface); border: 2px solid var(--line); color: var(--muted); z-index: 1; }
.pas.gata .bulina { background: var(--ok); border-color: var(--ok); color: #052e22; }
.pas.acum .bulina { border-color: var(--cyan); color: var(--cyan-light); box-shadow: 0 0 0 6px var(--cyan-soft); }
.pas .titlu { font: 700 16px/1.3 var(--h); color: var(--white); }
.pas .stare { font-size: 14px; color: var(--muted); }
.pas.acum { background: linear-gradient(90deg, var(--cyan-soft), transparent 70%); border-radius: var(--r); }

.eticheta { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 13px/1.5 var(--b); background: var(--raised); color: var(--muted); }
.eticheta.ok { background: var(--ok-soft); color: var(--ok); }
.eticheta.rau { background: var(--bad-soft); color: var(--bad); }
.eticheta.astept { background: var(--wait-soft); color: var(--wait); }
.status-mare { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Lecții */
.lista { list-style: none; }
.lista a, .lista button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.lista a:hover, .lista button:hover { border-color: var(--cyan); }
.text table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.text th, .text td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.text th { background: var(--raised); color: var(--white); font-family: var(--h); font-size: 14px; }
.text ul, .text ol { margin: 0 0 14px 22px; }
.text li { margin-bottom: 4px; }
.text blockquote { border-left: 3px solid var(--cyan); padding: 4px 0 4px 14px; color: var(--muted); margin: 0 0 14px; }
.text strong { color: var(--white); }
.nav-lectie { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* Apeluri model */
.replica { max-width: 82%; padding: 10px 14px; border-radius: 14px; margin-bottom: 8px; }
.replica.firma { background: var(--raised); border-bottom-left-radius: 4px; }
.replica.caller { background: var(--cyan-soft); border: 1px solid rgba(6,182,212,.3); margin-left: auto; border-bottom-right-radius: 4px; }
.replica small { display: block; font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* Test */
.q { margin-bottom: 18px; }
.q .enunt { font-weight: 600; color: var(--white); margin-bottom: 10px; }
fieldset.q.lipsa { border-color: var(--bad); background: var(--bad-soft); scroll-margin-top: 16px; }
.q.lipsa .enunt::after { content: ' (incompletă)'; color: var(--bad); font-weight: 400; }
.q .apel { white-space: pre-line; background: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: 15px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; font-weight: 400; }
.opt:hover { border-color: var(--cyan); }
.opt input { margin-top: 5px; accent-color: var(--cyan); }
.br { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.br .o { margin-bottom: 8px; }
.br-alege { display: flex; flex-wrap: wrap; gap: 8px; }
.br-alege label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 400; font-size: 14px; cursor: pointer; min-height: 40px; }
.br-alege label:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.br-alege input { accent-color: var(--cyan); width: 18px; height: 18px; }
.fb { margin-top: 8px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.fb.ok { background: var(--ok-soft); } .fb.rau { background: var(--bad-soft); }
.rand2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rand2 .jos { display: flex; align-items: flex-end; }


/* Simulator */
.telefon { text-align: center; padding: 30px 20px; }
.unda { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; background: var(--cyan-soft); border: 2px solid var(--cyan); display: grid; place-items: center; font: 800 26px var(--h); color: var(--cyan-light); }
.unda.activ { animation: puls 1.4s infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(6,182,212,.45) } 100% { box-shadow: 0 0 0 26px rgba(6,182,212,0) } }
.criterii { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

/* Admin */
.tabel { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabel th, .tabel td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tabel th { font: 700 13px var(--h); color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.tabel tr.clic { cursor: pointer; } .tabel tr.clic:hover td { background: var(--raised); }
.scroll { overflow-x: auto; }
.cronologie { list-style: none; border-left: 2px solid var(--line); margin-left: 6px; }
.cronologie li { padding: 4px 0 10px 16px; position: relative; font-size: 15px; }
.cronologie li::before { content: ''; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.cronologie time { color: var(--muted); font-size: 13px; margin-right: 8px; }
.bife { display: flex; flex-wrap: wrap; gap: 8px 16px; } .bife label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }

/* Formulare: fieldset fără chenarul implicit */
fieldset { border: 0; min-width: 0; }
fieldset.card { border: 1px solid var(--line); }
legend.enunt { float: left; width: 100%; padding: 0; }
legend.enunt + * { clear: both; }
.opt span { flex: 1; }
.opt:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.btn.lat { width: 100%; }

/* Meniul: rând sub antet pe calculator, bară jos pe telefon */
.meniu { display: none; }
body.cu-meniu .meniu { display: flex; justify-content: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: rgba(15,23,42,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.meniu a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font: 600 14px/1 var(--h); }
.meniu a:hover { color: var(--white); background: var(--raised); }
.meniu a.activ { color: var(--cyan-light); background: var(--cyan-soft); }
.meniu svg, .inapoi svg, .unda svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.inapoi { display: inline-flex; align-items: center; gap: 4px; margin: -8px 0 14px -6px; padding: 8px 10px 8px 4px; border-radius: 10px; color: var(--cyan-light); text-decoration: none; font-weight: 600; min-height: 44px; }
.inapoi:hover { background: var(--raised); }
.unda svg { width: 38px; height: 38px; }
.sageata { color: var(--muted); font-size: 22px; line-height: 1; }
.lista a { align-items: center; min-height: 52px; }
.bara-examen { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bife-lista { margin: 0 0 0 20px; } .bife-lista li { margin-bottom: 6px; }
.conversatie { padding: 16px; }
.top .cine .nume { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  .top { padding: 12px 16px; }
  .logo { font-size: 18px; }
  .logo small { font-size: 10px; letter-spacing: 2px; }
  main { padding: 22px 16px 110px; }
  .card { padding: 16px; }
  body.cu-meniu .meniu { position: fixed; top: auto; bottom: 0; left: 0; right: 0; justify-content: space-around; gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-bottom: 0; border-top: 1px solid var(--line); background: rgba(15,23,42,.97); }
  .meniu a { flex: 1; flex-direction: column; gap: 4px; padding: 6px 2px; font-size: 11px; min-height: 52px; justify-content: center; }
  .meniu svg { width: 22px; height: 22px; }
  .rand2 { grid-template-columns: 1fr; }
  .pas { grid-template-columns: 44px 1fr; padding-right: 8px; }
  .pas > :last-child { grid-column: 2; justify-self: start; }
  .btn.lat-mobil { width: 100%; }
  .nav-lectie { flex-direction: column-reverse; }
  .nav-lectie .btn { width: 100%; }
  .nav-lectie span:empty { display: none; }
  .replica { max-width: 92%; }
  .telefon .btn { min-width: 0 !important; }
  h2 { font-size: 19px; }
}

/* Panoul de administrare pe telefon: rândurile tabelului devin carduri */
@media (max-width: 760px) {
  .tabel.carduri thead { display: none; }
  .tabel.carduri, .tabel.carduri tbody, .tabel.carduri tr, .tabel.carduri td { display: block; width: 100%; }
  .tabel.carduri tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: var(--surface); }
  .tabel.carduri td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tabel.carduri td::before { content: attr(data-l); color: var(--muted); font-size: 13px; text-align: left; flex: none; }
  .tabel.carduri td:first-child { display: block; text-align: left; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
  .tabel.carduri td:first-child::before { content: none; }
  .card.scroll { padding: 0; background: none; border: 0; }
}

/* Fereastra de confirmare (ieșire din examen, din apel, predarea examenului) */
.fereastra { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 23, .72); backdrop-filter: blur(3px); animation: apare .15s ease-out; }
.fereastra-cutie { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.fereastra-cutie h2 { margin: 0 0 8px; }
.fereastra-cutie p { color: var(--text); margin-bottom: 18px; }
.fereastra-butoane { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) { .fereastra { place-items: end center; padding: 12px; } .fereastra-butoane { flex-direction: column; } .fereastra-butoane .btn { width: 100%; } }
@keyframes apare { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .fereastra { animation: none } }
