/* Panou Credos — stiluri interne (brand: ghid-brand.md) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20C0;
}
:root {
  --emerald: #065F46; --emerald-dark: #064637; --sand: #E2B96F; --sand-dark: #C99C4E;
  --ivory: #F7F6F2; --white: #fff; --ink: #15201B; --ink-soft: #4A5A52; --line: #E5E2D9;
  --ok: #1B7F4D; --err: #B3402A; --radius: 10px;
  --shadow: 0 4px 16px rgba(21,32,27,0.10);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--ivory); color: var(--ink); font-size: 15px; line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--white); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); }
label { font-size: 12px; font-weight: 700; color: var(--ink-soft); display: block; margin: 10px 0 4px; }

.topbar {
  background: var(--emerald-dark); color: #fff; display: flex; align-items: center;
  gap: 16px; padding: 10px 18px; position: sticky; top: 0; z-index: 30;
}
.topbar img { height: 26px; }
.topbar .cauta { flex: 1; max-width: 420px; }
.topbar .cauta input { background: rgba(255,255,255,0.12); border-color: transparent; color: #fff; }
.topbar .cauta input::placeholder { color: rgba(255,255,255,0.55); }
.topbar .user { margin-left: auto; font-size: 12.5px; color: rgba(255,255,255,0.7); white-space: nowrap; }

.btn {
  border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px;
  background: var(--emerald); color: #fff; transition: background 0.15s;
}
.btn:hover { background: var(--emerald-dark); }
.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: var(--sand-dark); }
.btn--ghost { background: transparent; color: var(--emerald); border: 1.5px solid var(--emerald); }
.btn--mic { padding: 5px 12px; font-size: 12.5px; }
.btn--rosu { background: var(--err); }

.statistici {
  display: flex; gap: 12px; padding: 14px 18px 0; flex-wrap: wrap;
}
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px; min-width: 130px;
}
.stat b { display: block; font-size: 22px; color: var(--emerald); }
.stat span { font-size: 12px; color: var(--ink-soft); }

.kanban {
  display: flex; gap: 12px; padding: 14px 18px 24px; overflow-x: auto; align-items: flex-start;
}
.coloana {
  background: #EFEDE6; border-radius: var(--radius); min-width: 250px; width: 250px;
  flex-shrink: 0; padding: 10px; max-height: calc(100vh - 210px); overflow-y: auto;
}
.coloana h3 {
  margin: 2px 4px 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); display: flex; justify-content: space-between;
}
.coloana h3 .nr { background: var(--white); border-radius: 999px; padding: 0 8px; }
.coloana.drag-over { outline: 2px dashed var(--emerald); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(21,32,27,0.05);
}
.card:hover { border-color: var(--emerald); }
.card b { display: block; font-size: 14px; }
.card .meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.card .etichete { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.eticheta {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--ivory); color: var(--ink-soft); border: 1px solid var(--line);
}
.eticheta--tip { background: #E8F2EE; color: var(--emerald); border-color: #CBE3D9; }
.eticheta--sursa { background: #FAF3E5; color: #8A6A2F; border-color: #EEDDBA; }

.panou-lateral {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--white);
  box-shadow: -12px 0 40px rgba(21,32,27,0.18); z-index: 40; transform: translateX(105%);
  transition: transform 0.22s ease; display: flex; flex-direction: column;
}
.panou-lateral.deschis { transform: none; }
.panou-lateral header {
  padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
}
.panou-lateral header h2 { margin: 0; font-size: 18px; flex: 1; }
.panou-lateral .continut { overflow-y: auto; padding: 6px 20px 30px; flex: 1; }
.inchide { background: none; border: 0; font-size: 22px; color: var(--ink-soft); }

.sectiune { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.sectiune h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.grila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rand-doc, .rand-dep, .rand-nota {
  display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.rand-doc a { color: var(--emerald); font-weight: 600; text-decoration: none; }
.rand-nota { display: block; }
.rand-nota .cine { font-size: 11.5px; color: var(--ink-soft); }
.gol { color: var(--ink-soft); font-size: 13px; font-style: italic; }

.modal-fundal {
  position: fixed; inset: 0; background: rgba(21,32,27,0.45); z-index: 50;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal-fundal.deschis { display: flex; }
.modal {
  background: var(--white); border-radius: 14px; padding: 22px 24px; width: 100%;
  max-width: 520px; box-shadow: var(--shadow);
}
.modal h2 { margin: 0 0 6px; font-size: 19px; }
.actiuni { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.mesaj-global {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.mesaj-global.vizibil { opacity: 1; }
.ecran-blocat { max-width: 520px; margin: 12vh auto; text-align: center; padding: 0 20px; }
.ecran-blocat img { width: 64px; margin-bottom: 14px; }
@media (max-width: 640px) {
  .statistici { padding: 10px 10px 0; } .kanban { padding: 10px; }
  .grila2 { grid-template-columns: 1fr; }
}
