/* ═══════════════════════════════════════════════════════════════
   kamzdaj.si — enotna tema za dashboarde (HLADNA paleta 2b)
   Ujema se z ostalim spletnim mestom (prosta dela, prijava …).
   Strukturne izboljšave: hairline kartice, zlati aktivni poudarek,
   tabelarične številke, mikro-labele z velikimi črkami, brez senc.
   Sidebar: svetel za iskalca/delodajalca, TEMEN za admina.

   Namestitev:
   1) public/assets/kamzdaj-theme.css
   2) v <head> vsake datoteke ZA obstoječim <style>:
        <link rel="stylesheet" href="/assets/kamzdaj-theme.css">
   3) SAMO admin-dashboard.html: <body class="theme-admin">
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #F5F5F8;              /* T4 toplo modra — glej HANDOFF-ozadje-t4.md */
  --sidebar: #FFFFFF;
  --sidebar-border: #E2E8F0;
  --sidebar-hover: rgba(201,169,110,0.07);
  --sidebar-active: linear-gradient(90deg, rgba(201,169,110,0.08), transparent);
  --sidebar-active-color: #0F172A;
  --sidebar-inactive: #475569;
  --brand: #3B5A8A;
  --brand-navy: #0F172A;
  --brand-lime: #C9A96E;      /* zlata (isti token — JS/HTML dela naprej) */
  --text-dark: #0F172A;
  --text-mid: #64748B;
  --text-light: #94A3B8;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
}

body {
  background: var(--bg);
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

/* ── Sidebar (svetel — iskalec, delodajalec) ── */
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: none;
}
.sidebar-logo { border-bottom: 1px solid var(--border); }
.sidebar-logo-icon { background: var(--brand-navy); border-radius: 6px; }
.sidebar-logo-name .txt { color: var(--text-dark); font-weight: 700; }
.sidebar-logo-name .spark { color: var(--brand-lime); }
.sidebar-section-label {
  font-size: 10px; letter-spacing: 1.4px; color: var(--text-light);
}

.nav-item {
  border-radius: 0;
  border-left: 2px solid transparent;
  color: var(--sidebar-inactive);
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--text-dark); }
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-color);
  border-left-color: var(--brand-lime);
  font-weight: 600;
}
.nav-item.active::before { display: none; }

.user-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  text-align: left;
}
.user-avatar { background: var(--brand-navy); color: var(--brand-lime); }

/* ── Sidebar redesign: logo kartica + klikljiva uporabniška kartica + skupine ── */
.sb-brand-card {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 14px 10px; padding: 10px 12px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
}
.sb-brand-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.sb-brand-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--brand-navy); position: relative; flex-shrink: 0; }
.sb-brand-icon::after { content: ''; position: absolute; top: 8px; left: 8px; width: 12px; height: 12px; border-radius: 3px; background: var(--brand-lime); }
.sb-brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 15px; color: var(--text-dark); }
.sb-brand-name .spark { color: var(--brand-lime); }
.sb-bell-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; color: var(--text-mid); font-size: 13px; padding: 0;
}
.sb-bell-btn:hover { border-color: var(--brand-lime); }
.sb-bell-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--white); }

.sb-user-card {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 28px);
  margin: 14px 14px; padding: 10px; background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; text-align: left; font-family: inherit;
}
.sb-user-meta { min-width: 0; }
.sb-user-meta .user-name { font-size: 12.5px; font-weight: 700; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-meta .user-email-text { font-size: 11px; color: var(--brand-lime); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sb-beta-badge {
  display: inline-block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--text-mid); background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: middle;
}
.sb-ext-icon { margin-left: auto; font-size: 11px; color: var(--text-light); }

.sidebar-bottom-row {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-top: 1px solid var(--border);
}
.sb-footer-link {
  border: none; background: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 600; color: var(--text-mid); padding: 0;
}
.sb-footer-link:hover { color: var(--text-dark); }

/* ── Naslovna vrstica ── */
.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.top-bar { border-bottom: 1px solid var(--border); padding-bottom: 18px; }

/* ── Kartice: hairline, radius 10, BREZ senc ── */
.stat-card, .pref-card, .section-info {
  background: var(--white);
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.stat-card { border-left-width: 1px !important; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text-light);
}

/* Zavihki — podčrtaj z zlatom */
.tab-btn { border-radius: 0; background: transparent; }
.tab-btn.active {
  background: transparent;
  color: var(--text-dark);
  border-bottom: 2px solid var(--brand-lime);
  font-weight: 600;
}

/* Gumbi */
.btn-ep-save { background: var(--brand-navy); border-radius: 6px; }
.btn-ep-save:hover { background: #1E293B; }
.check-pill { border-radius: 6px; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN — grafitni temen sidebar, zlato besedilo postavk
   ═══════════════════════════════════════════════════════════════ */
/* Uporabnikova zahteva: "sidebar na admin strani nima modre" — bilo #1E1B1A (temno grafitna, ne
   modra). To je pravi, dejansko uporabljeni vir (body.theme-admin ima večjo specifičnost kot
   :root, zato zmaga nad --sidebar v inline <style> admin-dashboard.html — tisti vnos je za to
   stran mrtva koda, glej opombo tam). Pot: var(--brand) #3B5A8A → var(--sp-navy) #14213D →
   uporabnikova zahteva po še temnejši od dveh prej ponujenih možnosti: var(--brand-navy) #0F172A,
   skoraj črna mornarska, uporabljena tudi za temne gumbe/CTA-je po strani. Zlato besedilo/poudarki
   ostajajo — berljivi na vseh treh. */
body.theme-admin {
  --sidebar: #0F172A;
  --sidebar-border: rgba(255,255,255,0.08);
  --sidebar-hover: rgba(255,255,255,0.05);
  --sidebar-active: rgba(255,255,255,0.07);
  --sidebar-active-color: #FFFFFF;
  --sidebar-inactive: #C9A96E;
}
body.theme-admin .nav-item:hover { color: #FFFFFF; }
body.theme-admin .mi-side-label { color: #8A8580; }
body.theme-admin .mi-side-sep { background: rgba(255,255,255,0.08); }
body.theme-admin .sidebar-logo { border-bottom-color: rgba(255,255,255,0.08); }
body.theme-admin .sidebar-logo-icon { background: var(--brand-lime); }
body.theme-admin .sidebar-logo-name .txt { color: #fff; }
body.theme-admin .sidebar-section-label { color: #8A8580; }
body.theme-admin .sidebar-admin-badge {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  color: var(--brand-lime);
  letter-spacing: 2px;
}
body.theme-admin .user-card { border-top-color: rgba(255,255,255,0.08); }
body.theme-admin .user-card .user-name { color: #fff; }
body.theme-admin .user-avatar {
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.35);
  color: var(--brand-lime);
}
body.theme-admin .user-role-badge {
  color: var(--brand-lime);
  background: transparent;
  border-color: rgba(201,169,110,0.35);
}
body.theme-admin .logout-btn { border-color: rgba(255,255,255,0.15); color: #8296B3; }

/* ═══════════════════════════════════════════════════════════════
   Iskalec — sekcija "Moja aktivnost" (KPI vrstica + desni stolpec)
   ═══════════════════════════════════════════════════════════════ */
.act-kpis {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; display: grid; grid-template-columns: repeat(4,1fr);
  margin-bottom: 18px;
}
.act-kpi { padding: 16px 20px; border-right: 1px solid #EDF1F6; }
.act-kpi:last-child { border-right: none; }
.act-kpi-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text-light);
}
.act-kpi-val { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; margin-top: 6px; }
.act-kpi-sub { font-size: 11.5px; color: var(--text-mid); margin-top: 4px; }
.act-kpi-accent { color: var(--brand-lime); }
.act-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; align-items: start; }
.act-main { display: flex; flex-direction: column; }
.act-rail { display: flex; flex-direction: column; gap: 16px; }
.act-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.act-card-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
}
.act-accent-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--brand-lime); }
.act-progress { height: 5px; background: #EEF2F7; border-radius: 3px; margin: 12px 0 4px; overflow: hidden; }
.act-progress-bar { height: 100%; background: linear-gradient(90deg, var(--brand) 0%, #C7CED9 50%, var(--brand-lime) 100%); transition: width .4s; }
.act-check { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-size: 12.5px; }
.ac-row { display: flex; align-items: center; gap: 9px; color: var(--text-light); }
.ac-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #CBD5E1; flex-shrink: 0; }
.ac-row.done { color: var(--text-mid); }
.ac-row.done .ac-dot { background: var(--success); border-color: var(--success); position: relative; }
.ac-row.done .ac-dot::after { content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.act-btn-outline {
  width: 100%; margin-top: 16px; padding: 10px; border: 1px solid var(--brand-navy);
  background: none; border-radius: 7px; font-weight: 600; font-size: 12.5px;
  color: var(--brand-navy); cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.act-btn-outline:hover { background: var(--brand-navy); color: #fff; }
.act-rail-link { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-lime); text-decoration: none; }
.act-rail-empty { font-size: 12.5px; color: var(--text-light); padding: 6px 0; }
.act-rail-job { padding: 11px 0; border-bottom: 1px solid #EDF1F6; }
.act-rail-job:last-child { border-bottom: none; }
.arj-title { font-weight: 600; font-size: 13px; }
.arj-sub { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }
.act-card-dark { background: #3A3F4A; color: #fff; }
.act-card-dark-label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand-lime); }
.act-card-dark-text { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; margin-top: 8px; }
.act-card-dark-cta { margin-top: 12px; font-weight: 600; font-size: 12.5px; color: var(--brand-lime); }
@media (max-width: 1000px) {
  .act-grid { grid-template-columns: 1fr; }
  .act-kpis { grid-template-columns: repeat(2,1fr); }
  .act-kpi:nth-child(2) { border-right: none; }
  .act-kpi:nth-child(1), .act-kpi:nth-child(2) { border-bottom: 1px solid #EDF1F6; }
}

/* Levi seznam kot kartica + tabela (kot mockup 2a) */
.act-list-card { padding: 0; }
.act-list-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #EDF1F6; }
.act-list-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; }
/* Isti oblik pilule kot .review-tab (admin-dashboard.html) in .jobs-tab (dashboard-delodajalec.html) —
   prej je bil tu tretji, podčrtan slog (glej uporabnikovo vprašanje "zakaj se stvari razlikujejo"). */
.act-list-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.act-list-tabs .alt {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--text-mid); transition: all 0.15s; white-space: nowrap;
}
.act-list-tabs .alt:hover { border-color: var(--brand-lime); color: var(--brand-navy); background: rgba(201,169,110,0.08); }
.act-list-tabs .alt.active { background: #E9D9AE; border-color: var(--brand-lime); color: var(--brand-navy); font-weight: 700; }
.act-table { width: 100%; border-collapse: collapse; }
.act-table thead th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-light); padding: 12px 22px; border-bottom: 1px solid #EDF1F6; }
.act-table tbody td { padding: 14px 22px; border-bottom: 1px solid #F2F4F8; vertical-align: middle; }
.act-table tbody tr:last-child td { border-bottom: none; }
.act-row { cursor: pointer; transition: background .12s; }
.act-row:hover { background: #FAFBFD; }
.att-title { font-weight: 600; font-size: 14px; }
.att-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.att-loc { font-size: 13px; color: var(--text-mid); }
.ex-ok { font-size: 12.5px; font-weight: 700; color: var(--success); }
.ex-warn { font-size: 12.5px; font-weight: 700; color: var(--danger); }
.ex-gone { font-size: 12.5px; font-weight: 700; color: var(--text-light); }
.ex-na { color: var(--text-light); }
.att-act { text-align: right; width: 40px; }
.att-remove { border: none; background: none; color: var(--brand-lime); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1; }
.att-remove:hover { color: var(--danger); }
#tab-content { padding: 14px 22px; }
.act-table { margin: -14px -22px 0; width: calc(100% + 44px); }

/* Stanje prijav trak */
.act-stanje { padding: 18px 22px; border-top: 1px solid #EDF1F6; }
.act-stanje-label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.act-stanje-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #EEF2F7; }
.act-stanje-bar span { display: block; height: 100%; }
.act-stanje-legend { display: flex; gap: 22px; margin-top: 10px; font-size: 12px; color: var(--text-mid); }
.act-stanje-legend span { display: inline-flex; align-items: center; gap: 7px; }
.act-stanje-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* Brez emoji ikon v navigaciji (resen videz kot mockup) */
.sidebar .nav-item .nav-icon { display: none; }
