/* =========================================================================
   style.css — skupni oblikovalski sistem
   Dark mode · glassmorphism · zelena poudarjena barva · animacije · responsive
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Barve */
  --bg:        #0a0d12;
  --bg-2:      #0e131b;
  --card:      rgba(255, 255, 255, 0.045);
  --card-2:    rgba(255, 255, 255, 0.07);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.15);
  --text:      #e9edf3;
  --muted:     #8a95a6;
  --muted-2:   #5f6b7c;

  --accent:      #3d8bff;
  --accent-2:    #2563eb;
  --accent-soft: rgba(61, 139, 255, 0.14);
  --accent-glow: rgba(61, 139, 255, 0.35);

  --danger:  #ff5d6c;
  --warn:    #ffc857;
  --info:    #58a6ff;

  /* Oblika */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.45);
  --blur:      saturate(140%) blur(16px);

  --sidebar-w: 250px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(61, 139, 255, 0.12), transparent 60%),
    radial-gradient(760px 480px at 110% 0%, rgba(120, 90, 255, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, .brand, .stat-num, .kanban-col h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }

/* Drsni trak */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* =========================================================================
   POSTAVITEV: sidebar + vsebina
   ========================================================================= */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  padding: 22px 16px;
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 40;
  transition: transform 0.35s var(--ease);
}

.brand {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.15rem; font-weight: 700;
  padding: 6px 10px 20px;
}
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.brand .logo-img {
  width: 38px; height: 38px; display: block;
}
.brand small { color: var(--muted); font-weight: 500; font-size: 0.7rem; display: block; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 500; font-size: 0.93rem;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}
.nav a .ic { font-size: 1.05rem; width: 20px; text-align: center; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.active {
  color: var(--accent); background: var(--accent-soft);
  border-color: rgba(47, 227, 138, 0.25);
}
.nav .nav-admin { display: none; }               /* pokaže app.js, če je admin */

.side-user {
  border-top: 1px solid var(--border);
  padding-top: 14px; margin-top: 6px;
  display: flex; align-items: center; gap: 10px;
}
.side-user .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card-2); display: grid; place-items: center;
  font-weight: 700; color: var(--accent); border: 1px solid var(--border);
}
.side-user .who { flex: 1; min-width: 0; }
.side-user .who b { font-size: 0.85rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: 0.72rem; color: var(--muted); }

.content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 26px clamp(16px, 4vw, 42px) 60px;
  min-width: 0;
}

/* Topbar (mobilni preklop + naslov strani) */
.topbar {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.topbar h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
.topbar p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.menu-btn {
  display: none; width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 1.2rem; cursor: pointer;
}
.spacer { flex: 1; }

/* Zastor za mobilni sidebar */
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px); z-index: 35; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* =========================================================================
   KARTICE
   ========================================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.card.pad { padding: 22px; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Velike navigacijske kartice na Dashboardu */
.tile {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; min-height: 190px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  overflow: hidden; cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  animation: rise 0.5s var(--ease) both;
}
.tile::after {
  content: ""; position: absolute; inset: -1px;
  background: radial-gradient(500px 200px at 80% -20%, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity 0.35s;
}
.tile:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 26px 60px rgba(0,0,0,0.55); }
.tile:hover::after { opacity: 1; }
.tile .emoji {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--accent-soft); border: 1px solid rgba(47,227,138,0.25);
}
.tile h3 { font-size: 1.25rem; }
.tile p { color: var(--muted); font-size: 0.9rem; }
.tile .go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
}
.tile .go::after { content: "→"; transition: transform 0.25s; }
.tile:hover .go::after { transform: translateX(4px); }

/* Statistične kartice */
.stat { padding: 20px; }
.stat .label { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.stat .stat-num { font-size: 2rem; font-weight: 700; margin-top: 8px; }
.stat .stat-num.accent { color: var(--accent); }

/* =========================================================================
   TABELE
   ========================================================================= */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th {
  text-align: left; font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); font-weight: 600;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(14, 19, 27, 0.9);
  backdrop-filter: blur(6px);
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(255,255,255,0.03); }
tbody tr:last-child td { border-bottom: none; }
td .sub { color: var(--muted); font-size: 0.8rem; }

/* =========================================================================
   ZNAČKE / STATUSI
   ========================================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--border-2); color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.s-poklicano       { color: var(--info);   border-color: rgba(88,166,255,0.35);  background: rgba(88,166,255,0.10); }
.badge.s-ni-odgovora     { color: var(--muted);  }
.badge.s-poklici-kasneje { color: var(--warn);   border-color: rgba(255,200,87,0.35);  background: rgba(255,200,87,0.10); }
.badge.s-zainteresiran   { color: #2ec07a; border-color: rgba(46,192,122,0.4);  background: rgba(46,192,122,0.12); }
.badge.s-ni-zainteresiran{ color: var(--danger); border-color: rgba(255,93,108,0.35);  background: rgba(255,93,108,0.10); }

.count-pill {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px;
  padding: 0 8px; border-radius: 999px; font-weight: 700; font-size: 0.82rem;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(47,227,138,0.25);
}

/* =========================================================================
   GUMBI
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--border-2); background: var(--card-2); color: var(--text);
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.btn:hover { border-color: var(--border-2); background: rgba(255,255,255,0.10); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn.primary:hover { box-shadow: 0 12px 30px var(--accent-glow); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(255,93,108,0.35); background: rgba(255,93,108,0.08); }
.btn.danger:hover { background: rgba(255,93,108,0.16); }
.btn.sm { padding: 7px 12px; font-size: 0.8rem; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* =========================================================================
   OBRAZCI
   ========================================================================= */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.78rem; color: var(--muted); }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 0.92rem; color: var(--text);
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); background: rgba(47,227,138,0.05); outline: none;
}
textarea { resize: vertical; min-height: 96px; }
select option { background: var(--bg-2); color: var(--text); }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg input { display: none; }
.seg label {
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  font-size: 0.85rem; font-weight: 500; color: var(--muted); transition: all 0.18s;
}
.seg input:checked + label,
.seg label.on {
  color: var(--accent); background: var(--accent-soft);
  border-color: rgba(47,227,138,0.35);
}

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; }
.toolbar .search input { padding-left: 40px; }
.toolbar .search::before {
  content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; opacity: 0.7;
}
.toolbar select { width: auto; min-width: 150px; }

/* =========================================================================
   PRIJAVA (index.html)
   ========================================================================= */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 400px; padding: 34px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: var(--blur);
  box-shadow: var(--shadow); animation: rise 0.5s var(--ease) both;
}
.auth-card .brand { padding: 0 0 6px; font-size: 1.35rem; }
.auth-card .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 6px; background: rgba(255,255,255,0.03); padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; padding: 9px; border: none; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s;
}
.auth-tabs button.on { background: var(--card-2); color: var(--text); }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.85rem; }
.auth-alt button { background: none; border: none; color: var(--accent); font: inherit; cursor: pointer; }
.form-msg { font-size: 0.85rem; margin-top: 12px; min-height: 18px; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--accent); }

/* =========================================================================
   BELEŽKE
   ========================================================================= */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.note {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column;
  min-height: 190px; backdrop-filter: var(--blur);
  animation: rise 0.4s var(--ease) both;
}
.note .note-title {
  font-family: 'Space Grotesk'; font-weight: 600; font-size: 1rem;
  background: transparent; border: none; padding: 0 0 8px; color: var(--text);
}
.note textarea {
  flex: 1; border: none; background: transparent; padding: 0; min-height: 90px;
  font-size: 0.9rem; color: var(--text); resize: none;
}
.note textarea:focus { background: transparent; }
.note .note-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--muted);
}
.note .save-state { display: inline-flex; align-items: center; gap: 6px; }
.note .save-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.note .save-state.saving .dot { background: var(--warn); }
.note .save-state.saved .dot { background: var(--accent); }
.note .del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.9rem; }
.note .del:hover { color: var(--danger); }

/* =========================================================================
   KANBAN
   ========================================================================= */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.kanban-col {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; min-height: 200px;
  backdrop-filter: var(--blur); transition: border-color 0.2s, background 0.2s;
}
.kanban-col.drag-over { border-color: var(--accent); background: var(--accent-soft); }
.kanban-col > .col-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.kanban-col h3 { font-size: 0.98rem; display: flex; align-items: center; gap: 8px; }
.kanban-col h3 .tag { width: 9px; height: 9px; border-radius: 3px; }
.col-todo  h3 .tag { background: var(--info); }
.col-doing h3 .tag { background: var(--warn); }
.col-done  h3 .tag { background: var(--accent); }
.kanban-col .cnt { font-size: 0.78rem; color: var(--muted); }
.dropzone { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }

.task {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 14px; cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  animation: rise 0.3s var(--ease) both;
}
.task:hover { border-color: var(--border-2); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.task.dragging { opacity: 0.45; cursor: grabbing; }
.task .t-title { font-size: 0.9rem; font-weight: 500; word-break: break-word; }
.task .t-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.task .t-date { font-size: 0.72rem; color: var(--muted); }
.task .t-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.85rem; }
.task .t-del:hover { color: var(--danger); }
.add-task {
  width: 100%; margin-top: 12px; padding: 10px; border-radius: 10px;
  border: 1px dashed var(--border-2); background: transparent; color: var(--muted);
  cursor: pointer; font: inherit; font-size: 0.85rem; transition: all 0.2s;
}
.add-task:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================================
   MODAL
   ========================================================================= */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(2,4,8,0.7); backdrop-filter: blur(4px);
  display: none; place-items: center; z-index: 60; padding: 20px;
}
.modal-scrim.show { display: grid; animation: fade 0.2s; }
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
  animation: rise 0.3s var(--ease) both;
}
.modal h2 { font-size: 1.25rem; margin-bottom: 18px; }
.modal .modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* =========================================================================
   TOAST
   ========================================================================= */
.toast-box { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 12px 18px; border-radius: 12px; font-size: 0.88rem; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
  box-shadow: var(--shadow); animation: rise 0.3s var(--ease) both;
  display: flex; align-items: center; gap: 10px;
}
.toast.ok { border-color: rgba(47,227,138,0.4); }
.toast.ok::before { content: "✅"; }
.toast.err { border-color: rgba(255,93,108,0.4); }
.toast.err::before { content: "⚠️"; }

/* Prazna stanja / nalaganje */
.empty { text-align: center; color: var(--muted); padding: 44px 20px; }
.empty .big { font-size: 2.2rem; margin-bottom: 10px; }
.loading { display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-2); border-top-color: var(--accent); animation: spin 0.7s linear infinite; }
.center-load { display: grid; place-items: center; padding: 60px; }

/* =========================================================================
   ANIMACIJE
   ========================================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.stagger > * { animation: rise 0.5s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.18s; }
.stagger > *:nth-child(5) { animation-delay: 0.24s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; }
  .menu-btn { display: grid; place-items: center; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
  .content { padding: 18px 14px 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================================
   SVETLA TEMA  (aktivira se z data-theme="light" na <html>)
   ========================================================================= */
:root[data-theme="light"] {
  --bg:        #eef1f7;
  --bg-2:      #ffffff;
  --card:      rgba(255, 255, 255, 0.72);
  --card-2:    rgba(15, 23, 42, 0.05);
  --border:    rgba(15, 23, 42, 0.10);
  --border-2:  rgba(15, 23, 42, 0.16);
  --text:      #0f172a;
  --muted:     #5b6472;
  --muted-2:   #98a2b3;

  --accent:      #2563eb;
  --accent-2:    #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-glow: rgba(37, 99, 235, 0.22);

  --shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] body {
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(760px 480px at 110% 0%, rgba(120, 90, 255, 0.06), transparent 55%),
    var(--bg);
}
[data-theme="light"] .sidebar        { background: rgba(255, 255, 255, 0.82); }
[data-theme="light"] .card,
[data-theme="light"] .tile,
[data-theme="light"] .note,
[data-theme="light"] .kanban-col,
[data-theme="light"] .table-wrap,
[data-theme="light"] .auth-card       { background: rgba(255, 255, 255, 0.75); }
[data-theme="light"] thead th         { background: rgba(244, 246, 251, 0.95); }
[data-theme="light"] tbody tr:hover   { background: rgba(15, 23, 42, 0.035); }
[data-theme="light"] .kanban-col .task { background: rgba(255, 255, 255, 0.9); }
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea         { background: rgba(15, 23, 42, 0.035); }
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus   { background: rgba(37, 99, 235, 0.06); }
[data-theme="light"] .seg label,
[data-theme="light"] .auth-tabs,
[data-theme="light"] .nav a:hover     { background: rgba(15, 23, 42, 0.04); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.18); }

/* =========================================================================
   GUMB ZA PREKLOP TEME
   ========================================================================= */
.theme-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 90;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--border-2); }

/* v stranski vrstici je gumb za temo majhen (poleg odjave) */
.side-user .theme-mini { font-size: 0.95rem; }

/* =========================================================================
   BELEŽKE — kartica kot predogled + veliko okno za branje/urejanje
   ========================================================================= */
.note-card { cursor: pointer; transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.note-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 20px 44px rgba(0,0,0,0.4); }
.note-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.note-card-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.02rem;
  margin-bottom: 8px; word-break: break-word;
}
.note-card-text {
  flex: 1; color: var(--muted); font-size: 0.88rem; line-height: 1.55;
  overflow: hidden; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
}
.note-card .note-foot { margin-top: 12px; }
.note-card-open { color: var(--accent); font-weight: 600; }

/* Veliko okno */
.note-scrim .note-modal {
  max-width: 720px; width: 100%;
  height: min(78vh, 760px); max-height: 88vh;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 24px; overflow: hidden;
}
.note-modal-head { display: flex; align-items: center; gap: 12px; }
.note-modal-title {
  flex: 1; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.3rem; padding: 6px 0; border: none; background: transparent;
  border-bottom: 1px solid var(--border); border-radius: 0;
}
.note-modal-title:focus { background: transparent; border-color: var(--accent); }
.note-modal-close {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted); font-size: 0.95rem;
}
.note-modal-close:hover { color: var(--text); border-color: var(--border-2); }

.note-modal-text {
  flex: 1; min-height: 0; resize: none;
  font-size: 1rem; line-height: 1.75; padding: 16px;
  border-radius: var(--radius-sm);
}
.note-modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted);
}

@media (max-width: 640px) {
  .note-scrim .note-modal { height: 88vh; padding: 18px; }
  .note-modal-text { font-size: 0.95rem; padding: 12px; }
}

/* Opozorilo o podvojenem podjetju (v oknu za dodajanje) */
.dup-warn {
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 200, 87, 0.10);
  border: 1px solid rgba(255, 200, 87, 0.35);
  color: var(--warn); font-size: 0.85rem; line-height: 1.5;
  margin-bottom: 4px;
  animation: rise 0.25s var(--ease) both;
}
.dup-warn b { color: var(--warn); }

/* =========================================================================
   JAVNA STRAN — POVPRAŠEVANJE (ponudba.html)
   ========================================================================= */
.offer-wrap { max-width: 760px; margin: 0 auto; padding: 40px 18px 70px; }
.offer-head { text-align: center; margin-bottom: 26px; }
.offer-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 8px; }
.offer-sub { color: var(--muted); font-size: 0.95rem; max-width: 520px; margin: 0 auto; }
.offer-sec { margin-bottom: 18px; }
.offer-sec h2 { font-size: 1.12rem; margin-bottom: 16px; }
.offer-success { margin-bottom: 18px; }

/* Mreža checkboxov */
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.chk-grid label {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 10px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  font-size: 0.88rem; transition: all 0.18s;
}
.chk-grid label:hover { border-color: var(--border-2); }
.chk-grid input { width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 auto; }
[data-theme="light"] .chk-grid label { background: rgba(15,23,42,0.03); }

/* Paketi / cenik */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.plan {
  position: relative; cursor: pointer; display: block;
  padding: 18px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: rgba(255,255,255,0.03);
  transition: all 0.2s var(--ease);
}
[data-theme="light"] .plan { background: rgba(15,23,42,0.02); }
.plan:hover { border-color: var(--border-2); transform: translateY(-3px); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.plan-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.02rem; }
.plan-price { color: var(--accent); font-weight: 700; font-size: 1.35rem; margin: 4px 0 8px; }
.plan-desc { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.plan-badge {
  position: absolute; top: -9px; right: 12px;
  background: var(--accent); color: #fff; font-size: 0.66rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .offer-wrap { padding: 24px 14px 60px; }
  .grid.cols-3 { grid-template-columns: 1fr; }
}
