/* Adminul EQP AI, pe grafica Equipicker:
   bleumarin #16365C pe adancime #0A1E33, cyan #1CCCF0 (butonul lor primar,
   text bleumarin, raza 10px); fontul brandului: Faktum (self-hosted, luat
   din tema Equipicker). */

@font-face {
  font-family: 'Faktum';
  src: url('assets/FaktumRegular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Faktum';
  src: url('assets/FaktumSemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}

:root {
  --navy: #16365C;
  --navy-adanc: #0A1E33;
  --cyan: #1CCCF0;
  --albastru: #0B74A6;
  --albastru-inchis: #095F88;
  --cerneala: #16242E;
  --gri: #5E7280;
  --linie: #E2E9ED;
  --fundal: #F4F7F9;
  --card: #FFFFFF;
  --verde: #008749;
  --rosu: #C52121;
  --chihlimbar: #B96A00;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Faktum', system-ui, sans-serif;
  background: var(--fundal);
  color: var(--cerneala);
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3, .cifra {
  font-family: 'Faktum', sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--navy);
}
a { color: var(--albastru); }
button { font: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; color: var(--cerneala);
  background: #fff; border: 1px solid #C4CED3; border-radius: 10px;
  padding: 9px 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(19,204,235,.15); }
textarea { resize: vertical; min-height: 84px; }

/* ---------- schela ---------- */
.aplicatie { display: flex; min-height: 100vh; }
.meniu {
  width: 244px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-adanc) 100%);
  color: #fff; display: flex; flex-direction: column;
  padding: 20px 12px; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.meniu .sigla { padding: 2px 12px 18px; }
.meniu .sigla img { width: 190px; display: block; }
.meniu .sigla .produs { color: var(--cyan); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 7px; padding-left: 2px; }
.meniu a.element {
  display: block; padding: 9px 14px; border-radius: 9px;
  color: #B9C8D2; text-decoration: none; font-size: 14.5px;
  border-left: 3px solid transparent;
}
.meniu a.element:hover { color: #fff; background: rgba(255,255,255,.06); }
.meniu a.element.activ {
  color: #fff; background: rgba(19,204,235,.13);
  border-left-color: var(--cyan); font-weight: 600;
}
.meniu .separator { height: 1px; background: rgba(255,255,255,.1); margin: 10px 12px; }
.meniu .subsol { margin-top: auto; padding: 12px 14px; font-size: 12.5px; color: #8FA3B0; }
.meniu .subsol b { color: #D8E2E8; display: block; }
.meniu .subsol button { background: none; border: none; color: var(--cyan); padding: 4px 0 0; font-size: 12.5px; }

.continut { flex: 1; padding: 26px 34px 60px; min-width: 0; }
.antet { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.antet h1 { font-size: 30px; margin: 0; }
.antet .sub { color: var(--gri); font-size: 14px; }

/* ---------- componente ---------- */
.card {
  background: var(--card); border: 1px solid var(--linie); border-radius: 14px;
  padding: 20px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,46,69,.05);
}
.card h2 { font-size: 18px; margin: 0 0 12px; }
.rand { display: flex; gap: 16px; flex-wrap: wrap; }
.rand > .card { flex: 1; min-width: 240px; margin-bottom: 0; }
.rand { margin-bottom: 16px; }

.kpi .eticheta { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gri); }
.kpi .cifra { font-size: 32px; line-height: 1.15; margin-top: 2px; }
.kpi .detaliu { font-size: 13px; color: var(--gri); margin-top: 2px; }

.taburi { display: flex; gap: 4px; border-bottom: 2px solid var(--linie); margin-bottom: 18px; }
.taburi button {
  background: none; border: none; padding: 10px 18px; font-size: 14.5px; font-weight: 600;
  color: var(--gri); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.taburi button.activ { color: var(--navy); border-bottom-color: var(--cyan); }

table { border-collapse: collapse; width: 100%; }
th {
  text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gri); padding: 9px 12px; border-bottom: 2px solid var(--linie); white-space: nowrap;
}
td { padding: 11px 12px; border-bottom: 1px solid var(--linie); font-size: 14px; vertical-align: top; }
tbody tr:hover { background: #F3FAFD; }
tr.apasabil { cursor: pointer; }

.buton {
  background: var(--cyan); color: #002E45; border: none; border-radius: 10px;
  padding: 10px 18px; font-weight: 700; font-size: 14px;
}
.buton:hover { background: #15B8D9; }
.buton:disabled { opacity: .55; cursor: default; }
.buton.discret { background: #fff; color: var(--navy); border: 1px solid #C4CED3; font-weight: 600; }
.buton.discret:hover { background: #F3FAFD; border-color: var(--cyan); }
.buton.pericol { background: #fff; color: var(--rosu); border: 1px solid #E8C4C4; font-weight: 600; }
.buton.mic { padding: 6px 12px; font-size: 13px; }

.insigna { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.insigna.verde { background: #DCF5E7; color: var(--verde); }
.insigna.gri { background: #EBF0F3; color: var(--gri); }
.insigna.rosie { background: #FBE4E4; color: var(--rosu); }
.insigna.chihlimbar { background: #FCEEDC; color: var(--chihlimbar); }
.insigna.cyan { background: #D0F5FB; color: #0A7D93; }

.eticheta-camp { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--gri); margin-bottom: 5px; }
.camp { display: flex; flex-direction: column; }
.formular { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }

.gol { color: var(--gri); font-size: 14px; padding: 18px 4px; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.ajutor { font-size: 13px; color: var(--gri); }
.nota-regula {
  background: #F0FAFD; border: 1px solid #C3ECF5; border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; color: #0A5A6B; margin-bottom: 14px;
}

/* ---------- login ---------- */
.scena-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1100px 600px at 70% -10%, #1B4E7A 0%, var(--navy) 45%, var(--navy-adanc) 100%);
  padding: 24px;
}
.cutie-login {
  width: 400px; background: #fff; border-radius: 18px; padding: 34px;
  box-shadow: 0 24px 60px rgba(0,10,20,.45);
}
/* Sigla Equipicker e varianta inversata (text alb): pe cardul alb sta pe un
   banner bleumarin, ca pe site-ul lor. */
.cutie-login .sigla {
  margin: -34px -34px 22px; padding: 22px 34px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-adanc) 100%);
  border-radius: 18px 18px 0 0; display: flex; justify-content: center;
}
.cutie-login .sigla img { width: 220px; display: block; }
.cutie-login h1 { font-size: 24px; margin: 0 0 4px; }
.cutie-login .camp { margin-bottom: 14px; }
.cutie-login input { width: 100%; }
.cutie-login .buton { width: 100%; padding: 12px; margin-top: 4px; }
.cod-2fa { text-align: center; font-size: 26px; letter-spacing: 10px; font-family: ui-monospace, Menlo, monospace; }
.qr-tinta { display: flex; justify-content: center; margin: 12px 0; }
.qr-tinta img, .qr-tinta canvas { border: 8px solid #fff; outline: 1px solid var(--linie); border-radius: 6px; }

.eroare { background: #FBE4E4; color: var(--rosu); border-radius: 9px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 12px; }

/* ---------- fereastra modala ---------- */
.valul { position: fixed; inset: 0; background: rgba(0,26,41,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.fereastra { background: #fff; border-radius: 16px; padding: 26px; width: min(860px, 100%); max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,10,20,.4); }
.fereastra h2 { margin-top: 0; }

/* ---------- balonul de conversatie ---------- */
.dialog { display: flex; flex-direction: column; gap: 10px; }
.balon { max-width: 82%; padding: 10px 14px; border-radius: 13px; font-size: 14px; white-space: pre-wrap; }
.balon.om { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 3px; }
.balon.ai { align-self: flex-start; background: var(--fundal); border: 1px solid var(--linie); border-bottom-left-radius: 3px; }
.balon .meta { font-size: 11.5px; opacity: .65; margin-top: 4px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0,10,20,.35); z-index: 99;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
#toast.vizibil { opacity: 1; }

.snippet { background: var(--navy-adanc); color: #9BE8C9; border-radius: 10px; padding: 14px 16px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; overflow-x: auto; white-space: pre; }
.grafic-linie { width: 100%; }

/* ---------- mobil: bara sus + sertar lateral (nu lista infoiata) ---------- */
.bara-mobila { display: none; }
.valul-meniu { display: none; }

@media (max-width: 900px) {
  .bara-mobila {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 40;
    background: var(--navy); color: #fff;
    padding: 10px 14px;
    box-shadow: 0 2px 10px rgba(0,10,20,.25);
  }
  .bara-mobila img { height: 26px; }
  .bara-mobila .titlu-bara { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bara-mobila .titlu-bara { font-family: 'Faktum', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .02em; }
  .bara-mobila .hamburger {
    background: none; border: none; color: #fff; padding: 6px;
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
  }
  .bara-mobila .hamburger span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .22s, opacity .22s; }
  .bara-mobila .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .bara-mobila .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .bara-mobila .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .aplicatie { flex-direction: column; }
  .meniu {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
    width: min(300px, 84vw); height: 100vh;
    transform: translateX(-105%); transition: transform .26s ease;
    box-shadow: none;
  }
  .meniu.deschis { transform: none; box-shadow: 12px 0 40px rgba(0,10,20,.45); }
  .valul-meniu { position: fixed; inset: 0; background: rgba(0,26,41,.55); z-index: 55; }
  .valul-meniu.deschis { display: block; }

  .continut { padding: 18px 16px 60px; }
  .antet h1 { font-size: 24px; }
  .rand > .card { min-width: 100%; }
}
