/* ===========================================================================
   Metoda Kalendar — brend-tačan stil.
   Boje, logo i tipografija strogo po Metoda brand specifikaciji (2026-06-08).
   =========================================================================== */
:root {
  --blue:#1a73e8; --accent:#29a3ec; --blue-d:#1660d6; --blue-dd:#155cc4;
  --ink:#0f172a; --text:#202124; --muted:#5f6368; --muted2:#64748b; --faint:#94a3b8;
  --bg:#f6f8fc; --bg2:#f0f9ff; --sel:#e8f0fe; --border:#e2e8f0; --line:#eef2f7;
  --ring:rgba(26,115,232,.14);
  --hero:linear-gradient(135deg,#29a3ec 0%,#1a73e8 55%,#1660d6 100%);
  --btn:linear-gradient(135deg,#1a73e8,#155cc4);
  --shadow-sm:0 1px 2px rgba(15,23,42,.06),0 1px 3px rgba(15,23,42,.10);
  --shadow-md:0 4px 16px rgba(3,105,161,.10),0 2px 6px rgba(15,23,42,.08);
  --shadow-lg:0 18px 50px rgba(15,23,42,.18),0 8px 20px rgba(15,23,42,.10);
  --r:14px;
}
* { box-sizing:border-box; }
html,body { height:100%; }
body {
  margin:0; font-family:'Inter','Segoe UI',Roboto,Arial,sans-serif;
  color:var(--text); background:var(--bg);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
button { font-family:inherit; cursor:pointer; }
a { color:var(--blue); text-decoration:none; }
::selection { background:var(--sel); }

/* ── Brend logo (po specifikaciji: ikona 41x41 rx9, tekst Inter 700 20px) ── */
.metoda-brand { display:flex; align-items:center; gap:12px; text-decoration:none; user-select:none; }
.metoda-brand .brand-ico { width:41px; height:41px; border-radius:9px; display:block; flex:0 0 auto; }
.metoda-brand .brand-text { font-weight:700; font-size:20px; color:var(--ink); letter-spacing:0; white-space:nowrap; }
.metoda-brand .service { color:var(--blue); }
.metoda-brand.reverse .brand-text { color:#fff; }

/* =========================== LOGIN =========================== */
.login { display:grid; grid-template-columns:1.05fr 1fr; min-height:100vh; }
.login__hero {
  position:relative; background:var(--hero); color:#fff; overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between; padding:48px 56px;
}
.login__hero::after { /* suptilni dekorativni sjaj */
  content:""; position:absolute; right:-160px; top:-120px; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.22),rgba(255,255,255,0) 70%);
}
.login__hero .metoda-brand { position:relative; z-index:1; }
.login__hero-body { position:relative; z-index:1; max-width:440px; }
.login__hero-body h1 { font-size:40px; line-height:1.12; font-weight:800; margin:0 0 16px; letter-spacing:-.02em; }
.login__hero-body p { font-size:17px; line-height:1.65; color:rgba(255,255,255,.86); margin:0; }
.login__hero-points { position:relative; z-index:1; display:flex; flex-direction:column; gap:14px; }
.login__hero-points li { list-style:none; display:flex; align-items:center; gap:12px; font-size:15px; color:rgba(255,255,255,.94); }
.login__hero-points .dot { width:30px; height:30px; border-radius:9px; background:rgba(255,255,255,.16); display:grid; place-items:center; flex:0 0 auto; }
.login__hero-points svg { width:17px; height:17px; }

.login__form-wrap { display:grid; place-items:center; padding:40px; }
.login__card { width:100%; max-width:380px; }
.login__card h2 { font-size:26px; font-weight:800; color:var(--ink); margin:0 0 6px; letter-spacing:-.01em; }
.login__card .sub { color:var(--muted2); font-size:14.5px; margin:0 0 28px; }
.field { margin-bottom:16px; }
.field label { display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:7px; }
.field input {
  width:100%; height:46px; padding:0 14px; font-size:15px; color:var(--text);
  border:1px solid var(--border); border-radius:10px; background:#fff; transition:border-color .15s, box-shadow .15s;
}
.field input:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 4px var(--ring); }
.btn {
  width:100%; height:48px; border:none; border-radius:10px; color:#fff; font-size:15.5px; font-weight:700;
  background:var(--btn); box-shadow:0 4px 16px rgba(3,105,161,.30); transition:transform .08s, box-shadow .2s, filter .2s;
}
.btn:hover { box-shadow:0 6px 22px rgba(3,105,161,.40); filter:brightness(1.03); }
.btn:active { transform:translateY(1px); }
.btn[disabled] { opacity:.65; cursor:default; }
.login__err { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; border-radius:10px; padding:10px 13px; font-size:13.5px; margin-bottom:16px; display:none; }
.login__err.show { display:block; }
.login__foot { margin-top:22px; font-size:12.5px; color:var(--faint); text-align:center; }

/* =========================== APP SHELL =========================== */
.app { display:none; flex-direction:column; height:100vh; }
.app.show { display:flex; }
.topbar {
  display:flex; align-items:center; gap:18px; height:64px; padding:0 20px;
  background:#fff; border-bottom:1px solid var(--border); flex:0 0 auto; z-index:20;
}
.topbar .nav-controls { display:flex; align-items:center; gap:6px; }
.icon-btn {
  width:38px; height:38px; border-radius:10px; border:1px solid transparent; background:transparent;
  color:var(--muted); display:grid; place-items:center; transition:background .15s,color .15s;
}
.icon-btn:hover { background:var(--bg); color:var(--ink); }
.icon-btn svg { width:20px; height:20px; }
.today-btn {
  height:38px; padding:0 16px; border-radius:10px; border:1px solid var(--border); background:#fff;
  font-weight:600; font-size:13.5px; color:var(--ink); transition:background .15s,border-color .15s;
}
.today-btn:hover { background:var(--bg); border-color:#cdd7e5; }
.period-label { font-size:21px; font-weight:700; color:var(--ink); letter-spacing:-.01em; min-width:210px; }
.period-label .yr { color:var(--muted2); font-weight:600; }
.spacer { flex:1; }
.tz-chip { display:flex; align-items:center; gap:7px; height:36px; padding:0 13px; border:1px solid var(--border); background:#fff; border-radius:10px; font-size:13px; font-weight:600; color:var(--muted); transition:background .15s,border-color .15s,color .15s; white-space:nowrap; }
.tz-chip:hover { background:var(--bg); border-color:#cdd7e5; color:var(--ink); }
.tz-chip svg { width:16px; height:16px; color:var(--blue); flex:0 0 auto; }
.tz-field { padding:10px 12px 12px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.tz-field label { display:block; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted2); margin-bottom:7px; }
.tz-field select { width:100%; height:38px; border:1px solid var(--border); border-radius:9px; padding:0 9px; font-size:13.5px; color:var(--ink); background:#fff; font-family:inherit; }
.tz-field select:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--ring); }
.tz-note { font-size:11.5px; color:var(--muted); margin-top:7px; line-height:1.4; }
.view-switch { display:flex; background:var(--bg); border-radius:11px; padding:4px; gap:2px; }
.view-switch button {
  height:32px; padding:0 15px; border:none; background:transparent; border-radius:8px;
  font-size:13.5px; font-weight:600; color:var(--muted); transition:all .15s;
}
.view-switch button.active { background:#fff; color:var(--blue); box-shadow:var(--shadow-sm); }
.usermenu { position:relative; }
.avatar {
  width:38px; height:38px; border-radius:50%; background:var(--btn); color:#fff;
  display:grid; place-items:center; font-weight:700; font-size:15px; border:none;
}
.usermenu .menu {
  position:absolute; right:0; top:46px; background:#fff; border:1px solid var(--border); border-radius:14px;
  box-shadow:var(--shadow-lg); min-width:230px; padding:8px; display:none; z-index:50;
}
.usermenu.open .menu { display:block; }
.usermenu .menu .who { padding:10px 12px 12px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.usermenu .menu .who .nm { font-weight:700; color:var(--ink); font-size:14.5px; }
.usermenu .menu .who .em { color:var(--muted); font-size:12.5px; margin-top:2px; }
.usermenu .menu button { width:100%; text-align:left; padding:9px 12px; border:none; background:transparent; border-radius:9px; font-size:14px; color:var(--text); }
.usermenu .menu button:hover { background:var(--bg); }
.badge-admin { display:inline-block; font-size:10.5px; font-weight:800; letter-spacing:.04em; color:#fff; background:var(--blue); padding:2px 7px; border-radius:6px; margin-left:8px; vertical-align:middle; }

.layout { display:flex; flex:1; min-height:0; }

/* ── Sidebar ── */
.sidebar { width:288px; flex:0 0 auto; background:#fff; border-right:1px solid var(--border); padding:18px 16px; overflow-y:auto; }
.new-btn {
  width:100%; height:48px; border:none; border-radius:14px; background:var(--btn); color:#fff;
  font-size:15px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:9px;
  box-shadow:0 6px 18px rgba(3,105,161,.28); transition:transform .08s, box-shadow .2s, filter .2s; margin-bottom:20px;
}
.new-btn:hover { box-shadow:0 8px 24px rgba(3,105,161,.36); filter:brightness(1.03); }
.new-btn:active { transform:translateY(1px); }
.new-btn svg { width:20px; height:20px; }

/* Mini kalendar */
.mini { margin-bottom:22px; }
.mini__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.mini__title { font-size:14px; font-weight:700; color:var(--ink); }
.mini__nav { display:flex; gap:2px; }
.mini__nav button { width:26px; height:26px; border:none; background:transparent; border-radius:7px; color:var(--muted); display:grid; place-items:center; }
.mini__nav button:hover { background:var(--bg); color:var(--ink); }
.mini__nav svg { width:15px; height:15px; }
.mini__grid { display:grid; grid-template-columns:repeat(7,1fr); gap:1px; }
.mini__dow { text-align:center; font-size:10.5px; font-weight:700; color:var(--faint); padding:4px 0; text-transform:uppercase; }
.mini__day { aspect-ratio:1; display:grid; place-items:center; font-size:12px; color:var(--text); border-radius:8px; cursor:pointer; position:relative; transition:background .12s; border:none; background:transparent; }
.mini__day:hover { background:var(--bg); }
.mini__day.other { color:var(--faint); }
.mini__day.today { color:var(--blue); font-weight:800; }
.mini__day.sel { background:var(--blue); color:#fff; font-weight:700; }
.mini__day.has::after { content:""; position:absolute; bottom:3px; width:4px; height:4px; border-radius:50%; background:var(--accent); }
.mini__day.sel.has::after { background:#fff; }

.side-sec { margin-bottom:22px; }
.side-sec__title { font-size:11.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted2); margin:0 0 11px; display:flex; align-items:center; gap:7px; }
.side-sec__title .cnt { background:var(--bg); color:var(--muted); font-size:11px; padding:1px 7px; border-radius:20px; font-weight:700; letter-spacing:0; }

.reminder-item { display:flex; gap:10px; padding:9px 10px; border-radius:11px; transition:background .12s; cursor:pointer; }
.reminder-item:hover { background:var(--bg); }
.reminder-item .bar { width:3px; border-radius:3px; flex:0 0 auto; }
.reminder-item .ri-body { min-width:0; flex:1; }
.reminder-item .ri-title { font-size:13.5px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.reminder-item .ri-when { font-size:12px; color:var(--muted); margin-top:1px; }

.task-item { display:flex; align-items:flex-start; gap:10px; padding:8px 8px; border-radius:10px; transition:background .12s; }
.task-item:hover { background:var(--bg); }
.task-check { width:19px; height:19px; flex:0 0 auto; border:2px solid var(--border); border-radius:6px; margin-top:1px; display:grid; place-items:center; cursor:pointer; transition:all .15s; background:#fff; }
.task-check:hover { border-color:var(--blue); }
.task-check.done { background:var(--blue); border-color:var(--blue); }
.task-check svg { width:12px; height:12px; color:#fff; opacity:0; transition:opacity .15s; }
.task-check.done svg { opacity:1; }
.task-item .tk-body { min-width:0; flex:1; cursor:pointer; }
.task-item .tk-title { font-size:13.5px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.task-item.done .tk-title { color:var(--faint); text-decoration:line-through; }
.task-item .tk-when { font-size:11.5px; color:var(--muted); margin-top:1px; }
.empty-hint { font-size:12.5px; color:var(--faint); padding:4px 2px; }

.admin-switch select { width:100%; height:38px; border:1px solid var(--border); border-radius:10px; padding:0 10px; font-size:13px; color:var(--ink); background:#fff; }

/* ── Glavni kalendar ── */
.cal { flex:1; min-width:0; overflow:auto; background:var(--bg); }

/* MESEC */
.month { display:flex; flex-direction:column; min-height:100%; }
.month__dow { display:grid; grid-template-columns:repeat(7,1fr); border-bottom:1px solid var(--border); background:#fff; position:sticky; top:0; z-index:5; }
.month__dow div { text-align:center; padding:11px 0; font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted2); }
.month__dow div.we { color:var(--faint); }
/* Fiksni redovi: ćelije se NE šire sa brojem događaja — sve su iste visine, višak se seče (+N više). */
.month__grid { display:grid; grid-template-columns:repeat(7,1fr); grid-auto-rows:minmax(112px,1fr); flex:1; }
.cell { border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:6px 7px; overflow:hidden; cursor:pointer; transition:background .12s; position:relative; display:flex; flex-direction:column; gap:3px; }
.cell:hover { background:#fcfdff; box-shadow:inset 0 0 0 1px var(--sel); }
.cell.other { background:#fbfcfe; }
.cell.other .cell__num { color:var(--faint); }
.cell__num { font-size:13px; font-weight:600; color:var(--text); width:27px; height:27px; display:grid; place-items:center; border-radius:50%; align-self:flex-start; }
.cell.today .cell__num { background:var(--blue); color:#fff; font-weight:700; }
.cell.we { background:#fafbfd; }
.chip {
  display:flex; align-items:center; gap:6px; padding:3px 8px; border-radius:7px; font-size:12px; font-weight:600;
  color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer;
  transition:filter .12s, transform .1s, box-shadow .12s; position:relative;
}
/* Blago senčenje na hover — taman toliko da se vidi „šta ću kliknuti", bez naglašavanja */
.chip:hover { filter:brightness(1.02); transform:translateY(-1px); box-shadow:0 2px 6px rgba(15,23,42,.10); z-index:2; }
.chip.timed:hover, .chip.task:hover { box-shadow:0 2px 6px rgba(15,23,42,.07); background:var(--bg2) !important; }
.chip:active { transform:translateY(0) scale(.99); }
.chip.allday { box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
.chip.task { background:#fff !important; color:var(--text); border:1px solid var(--border); }
.chip.task .tdot { width:8px; height:8px; border-radius:3px; flex:0 0 auto; }
.chip.task.done { color:var(--faint); }
.chip.task.done .chip-tt { text-decoration:line-through; }
.chip .chip-time { opacity:.85; font-weight:700; font-size:11px; flex:0 0 auto; }
.chip .chip-tt { overflow:hidden; text-overflow:ellipsis; }
.chip.timed { background:transparent !important; color:var(--text); padding-left:4px; }
.chip.timed .dotc { width:9px; height:9px; border-radius:50%; flex:0 0 auto; }
.more { font-size:11.5px; font-weight:700; color:var(--muted); padding:1px 8px; cursor:pointer; border-radius:6px; }
.more:hover { background:var(--sel); color:var(--blue); }

/* NEDELJA / DAN — time grid */
.tg { display:flex; flex-direction:column; min-height:100%; background:#fff; }
.tg__head { display:grid; position:sticky; top:0; background:#fff; z-index:6; border-bottom:1px solid var(--border); }
.tg__corner { border-right:1px solid var(--line); }
.tg__daycol { text-align:center; padding:9px 0 8px; border-right:1px solid var(--line); }
.tg__daycol .dn { font-size:11px; font-weight:700; text-transform:uppercase; color:var(--muted2); letter-spacing:.03em; }
.tg__daycol .dd { font-size:22px; font-weight:700; color:var(--ink); margin-top:2px; width:38px; height:38px; line-height:38px; border-radius:50%; display:inline-block; }
.tg__daycol.today .dd { background:var(--blue); color:#fff; }
.tg__allday { display:grid; border-bottom:1px solid var(--border); min-height:30px; }
.tg__allday .lbl { border-right:1px solid var(--line); font-size:10.5px; color:var(--faint); padding:5px 6px; text-align:right; }
.tg__allday .adcell { border-right:1px solid var(--line); padding:3px 4px; display:flex; flex-direction:column; gap:2px; }
.tg__body { display:grid; position:relative; }
.tg__hours { border-right:1px solid var(--line); }
.tg__hour { height:52px; position:relative; }
.tg__hour .ht { position:absolute; top:-7px; right:7px; font-size:11px; color:var(--faint); }
.tg__col { border-right:1px solid var(--line); position:relative; }
.tg__col .hl { height:52px; border-bottom:1px solid var(--line); }
.tg__col:hover .hl { background:#fcfdff; }
.tg-ev { position:absolute; left:4px; right:4px; border-radius:8px; padding:4px 8px; font-size:12px; color:#fff; overflow:hidden; cursor:pointer; box-shadow:var(--shadow-sm); transition:filter .12s; }
.tg-ev:hover { filter:brightness(1.03); box-shadow:0 3px 9px rgba(15,23,42,.14); z-index:4; }
.tg-ev .te-t { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tg-ev .te-time { font-size:10.5px; opacity:.9; }
.tg-now { position:absolute; left:0; right:0; height:2px; background:#d93025; z-index:3; }
.tg-now::before { content:""; position:absolute; left:-5px; top:-4px; width:10px; height:10px; border-radius:50%; background:#d93025; }

/* =========================== MODAL =========================== */
.modal-bg { position:fixed; inset:0; background:rgba(15,23,42,.70); backdrop-filter:blur(3px); display:none; align-items:center; justify-content:center; z-index:100; padding:20px; }
.modal-bg.show { display:flex; animation:fade .15s ease; }
@keyframes fade { from{opacity:0} to{opacity:1} }
.modal { width:100%; max-width:460px; background:#fff; border-radius:20px; box-shadow:var(--shadow-lg); overflow:hidden; animation:pop .18s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from{opacity:0; transform:translateY(10px) scale(.98)} to{opacity:1; transform:none} }
.modal__head { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--line); }
.modal__head h3 { margin:0; font-size:18px; font-weight:800; color:var(--ink); }
.modal__body { padding:20px 22px; max-height:64vh; overflow-y:auto; }
.modal__body .field input, .modal__body .field textarea, .modal__body .field select {
  width:100%; border:1px solid var(--border); border-radius:10px; font-size:14.5px; color:var(--text); background:#fff; font-family:inherit;
}
.modal__body .field input, .modal__body .field select { height:44px; padding:0 12px; }
.modal__body .field textarea { padding:10px 12px; min-height:64px; resize:vertical; }
.modal__body .field input:focus, .modal__body .field textarea:focus, .modal__body .field select:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 4px var(--ring); }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.seg { display:flex; gap:6px; }
.seg button { flex:1; height:42px; border:1px solid var(--border); background:#fff; border-radius:10px; font-size:14px; font-weight:600; color:var(--muted); transition:all .15s; }
.seg button.active { border-color:var(--blue); background:var(--sel); color:var(--blue); }
.colors { display:flex; gap:9px; flex-wrap:wrap; }
.swatch { width:30px; height:30px; border-radius:9px; cursor:pointer; position:relative; transition:transform .1s; border:2px solid transparent; }
.swatch:hover { transform:scale(1.1); }
.swatch.sel { border-color:#fff; box-shadow:0 0 0 2px var(--ink); }
.chk { display:flex; align-items:center; gap:9px; font-size:14px; color:var(--text); cursor:pointer; }
.chk input { width:18px; height:18px; accent-color:var(--blue); }
.modal__foot { display:flex; align-items:center; gap:10px; padding:16px 22px; border-top:1px solid var(--line); }
.modal__foot .del { margin-right:auto; color:#d93025; background:transparent; border:none; font-size:14px; font-weight:600; padding:8px 10px; border-radius:9px; }
.modal__foot .del:hover { background:#fef2f2; }
.btn-secondary { height:44px; padding:0 18px; border-radius:10px; border:1px solid var(--border); background:#fff; font-weight:600; font-size:14.5px; color:var(--ink); }
.btn-secondary:hover { background:var(--bg); }
.btn-primary { height:44px; padding:0 22px; border-radius:10px; border:none; background:var(--btn); color:#fff; font-weight:700; font-size:14.5px; box-shadow:0 4px 14px rgba(3,105,161,.28); }
.btn-primary:hover { filter:brightness(1.03); }

/* =========================== PODEŠAVANJA =========================== */
.settings-modal { width:100%; max-width:620px; background:#fff; border-radius:20px; box-shadow:var(--shadow-lg); overflow:hidden; animation:pop .18s cubic-bezier(.2,.9,.3,1.2); }
.settings-body { display:flex; min-height:400px; max-height:72vh; }
.settings-tabs { width:210px; flex:0 0 auto; border-right:1px solid var(--line); padding:14px 10px; background:#fbfcfe; }
.settings-tabs .stab { display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:none; background:transparent; padding:11px 13px; border-radius:11px; font-size:14px; font-weight:600; color:var(--muted); margin-bottom:4px; transition:all .15s; }
.settings-tabs .stab svg { width:18px; height:18px; flex:0 0 auto; }
.settings-tabs .stab:hover { background:var(--bg); color:var(--ink); }
.settings-tabs .stab.active { background:var(--sel); color:var(--blue); }
.settings-content { flex:1; padding:22px 24px; overflow-y:auto; }
.settings-content .field { margin-bottom:20px; }
.settings-content .field > label { display:block; font-size:13px; font-weight:700; color:var(--ink); margin-bottom:9px; }
.settings-content select { width:100%; height:42px; border:1px solid var(--border); border-radius:10px; padding:0 11px; font-size:14px; color:var(--ink); background:#fff; font-family:inherit; }
.settings-content select:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 4px var(--ring); }
.hint { font-size:12.5px; color:var(--muted); line-height:1.5; margin-top:7px; }
.notif-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.notif-row:first-child { padding-top:2px; }
.notif-title { font-size:14.5px; font-weight:600; color:var(--ink); }
.pill-on { font-size:12px; font-weight:700; color:#15803d; background:#dcfce7; padding:4px 11px; border-radius:20px; white-space:nowrap; }
.switch { position:relative; display:inline-block; width:46px; height:26px; flex:0 0 auto; }
.switch input { opacity:0; width:0; height:0; }
.switch .slider { position:absolute; inset:0; background:#cbd5e1; border-radius:26px; transition:.2s; cursor:pointer; }
.switch .slider::before { content:""; position:absolute; height:20px; width:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .slider { background:var(--blue); }
.switch input:checked + .slider::before { transform:translateX(20px); }
.settings-content #set-freq-wrap { margin-top:18px; }

/* Multi-zona panel u modalu događaja */
.m-zones { background:#f0f9ff; border:1px solid #d8ecfd; border-radius:11px; padding:11px 13px; margin-bottom:16px; }
.m-zones .mz-title { font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--blue); margin-bottom:8px; }
.m-zones .mz-row { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:3px 0; }
.m-zones .mz-zone { font-size:13px; color:var(--muted); }
.m-zones .mz-zone.primary { color:var(--ink); font-weight:600; }
.m-zones .mz-time { font-size:13.5px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }

/* =========================== EVENT DRAWER =========================== */
.drawer-bg { justify-content:flex-end; align-items:stretch; padding:0; }
.ev-drawer { width:100%; max-width:480px; height:100vh; background:#fff; display:flex; flex-direction:column; box-shadow:-12px 0 44px rgba(15,23,42,.20); animation:slidedr .22s cubic-bezier(.2,.9,.3,1); }
@keyframes slidedr { from { transform:translateX(40px); opacity:.5; } to { transform:none; opacity:1; } }
.ev-drawer__head { display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--line); flex:0 0 auto; }
.seg-sm button { height:30px; padding:0 14px; font-size:13px; }
.ev-drawer__body { flex:1; overflow-y:auto; padding:18px 20px 24px; }
.ev-drawer__foot { display:flex; align-items:center; gap:10px; padding:14px 20px; border-top:1px solid var(--line); flex:0 0 auto; }

.ev-title { width:100%; border:none; outline:none; font-size:23px; font-weight:700; color:var(--ink); padding:4px 0 12px; margin-bottom:4px; border-bottom:2px solid transparent; transition:border-color .15s; font-family:inherit; }
.ev-title:focus { border-bottom-color:var(--blue); }
.ev-title::placeholder { color:var(--faint); font-weight:600; }

.ev-line { display:flex; gap:13px; align-items:flex-start; padding:11px 0; border-bottom:1px solid var(--line); }
.ev-ico { width:22px; flex:0 0 auto; color:var(--muted2); display:flex; justify-content:center; padding-top:8px; }
.ev-ico svg { width:19px; height:19px; }
.ev-inline { flex:1; height:42px; border:1px solid transparent; border-radius:9px; padding:0 11px; font-size:14.5px; color:var(--text); background:transparent; font-family:inherit; transition:background .15s,border-color .15s; }
.ev-inline:hover { background:var(--bg); }
.ev-inline:focus { outline:none; background:#fff; border-color:var(--blue); box-shadow:0 0 0 3px var(--ring); }
.ev-line .colors { padding-top:8px; }
.ev-organizer { font-size:14px; color:var(--muted); padding-top:9px; }
.ev-organizer b { color:var(--ink); font-weight:600; }
.ev-line .chk { margin-bottom:0; }
.ev-line .field label { font-size:11.5px; }

.ev-sec { padding:17px 0; border-bottom:1px solid var(--line); }
.ev-sec:last-child { border-bottom:none; padding-bottom:4px; }
.ev-sec__t { display:flex; align-items:center; gap:9px; font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--muted2); margin-bottom:12px; }
.ev-sec__t svg { width:16px; height:16px; color:var(--blue); }
.ev-textarea { width:100%; min-height:76px; border:1px solid var(--border); border-radius:11px; padding:11px 13px; font-size:14.5px; line-height:1.6; color:var(--text); font-family:inherit; resize:vertical; }
.ev-textarea:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 4px var(--ring); }
.ev-add { width:100%; height:40px; border:1px solid var(--border); border-radius:10px; padding:0 12px; font-size:14px; color:var(--text); font-family:inherit; margin-top:9px; }
.ev-add:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 4px var(--ring); }
.ev-hint { font-size:12.5px; color:var(--faint); margin-top:8px; }

.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip-p { display:flex; align-items:center; gap:8px; background:var(--bg); border:1px solid var(--border); border-radius:20px; padding:4px 7px 4px 5px; font-size:13px; }
.chip-p .pav { width:24px; height:24px; border-radius:50%; color:#fff; display:grid; place-items:center; font-size:11px; font-weight:700; flex:0 0 auto; }
.chip-p .pnm { color:var(--ink); font-weight:500; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chip-p .px { cursor:pointer; color:var(--faint); width:17px; height:17px; display:grid; place-items:center; border-radius:50%; line-height:1; }
.chip-p .px:hover { background:#fee2e2; color:#dc2626; }

.links { display:flex; flex-direction:column; gap:6px; }
.link-row { display:flex; align-items:center; gap:9px; padding:8px 11px; background:var(--bg); border-radius:9px; font-size:13.5px; }
.link-row .lk { flex:1; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.link-row a.lk { color:var(--blue); text-decoration:none; }
.link-row a.lk:hover { text-decoration:underline; }
.link-row .px { cursor:pointer; color:var(--faint); flex:0 0 auto; font-size:16px; line-height:1; }
.link-row .px:hover { color:#dc2626; }

.dropzone { border:2px dashed var(--border); border-radius:13px; padding:18px; text-align:center; cursor:pointer; transition:all .15s; background:#fcfdff; }
.dropzone:hover, .dropzone.drag { border-color:var(--blue); background:var(--bg2); }
.dz-ico { width:26px; height:26px; color:var(--accent); margin-bottom:4px; }
.dz-hint { font-size:13px; color:var(--muted); line-height:1.55; }
.dz-link { color:var(--blue); font-weight:600; cursor:pointer; text-decoration:underline; }
.att-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(94px,1fr)); gap:10px; margin-top:12px; }
.att { position:relative; border:1px solid var(--border); border-radius:11px; overflow:hidden; background:var(--bg); cursor:pointer; transition:box-shadow .12s; }
.att:hover { box-shadow:var(--shadow-md); }
.att .thumb { width:100%; height:76px; object-fit:cover; display:block; background:#fff; }
.att .fileico { height:76px; display:grid; place-items:center; color:var(--muted2); }
.att .fileico svg { width:28px; height:28px; }
.att .afn { font-size:11px; color:var(--text); padding:5px 7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.att .adel { position:absolute; top:5px; right:5px; width:22px; height:22px; border-radius:50%; background:rgba(15,23,42,.6); color:#fff; border:none; display:grid; place-items:center; opacity:0; transition:opacity .12s; cursor:pointer; }
.att:hover .adel { opacity:1; }
.att .adel svg { width:13px; height:13px; }

@media (max-width:768px) { .ev-drawer { max-width:100%; } }

/* =========================== EVENT CARD (centriran, pregled + izmena) =========================== */
.ev-card { width:100%; max-width:1248px; max-height:94vh; background:#fff; border-radius:22px; box-shadow:var(--shadow-lg); display:flex; flex-direction:column; overflow:hidden; animation:pop .18s cubic-bezier(.2,.9,.3,1.2); }
#ev-view, #ev-edit { display:flex; flex-direction:column; min-height:0; flex:1 1 auto; }
#ev-view[hidden], #ev-edit[hidden] { display:none; }

/* PREGLED */
.evv-top { padding:24px 26px 22px; color:#fff; flex:0 0 auto; background:#1a73e8; }
.evv-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.evv-kind { font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; opacity:.85; margin-bottom:7px; }
.evv-title { font-size:25px; font-weight:800; margin:0; line-height:1.2; word-break:break-word; }
.evv-when { font-size:15px; margin-top:11px; opacity:.96; font-weight:500; }
.evv-actions { display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.btn-edit { display:flex; align-items:center; gap:7px; height:38px; padding:0 16px; border-radius:10px; border:none; background:rgba(255,255,255,.22); color:#fff; font-weight:700; font-size:14px; cursor:pointer; transition:background .15s; white-space:nowrap; }
.btn-edit:hover { background:rgba(255,255,255,.33); }
.btn-edit svg { width:16px; height:16px; }
.icon-btn.light { color:#fff; }
.icon-btn.light:hover { background:rgba(255,255,255,.18); color:#fff; }
.evv-body { flex:1; overflow-y:auto; padding:18px 26px 26px; }
.evv-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:8px 28px; }
.evv-col { display:flex; flex-direction:column; }
.evv-sec { padding:13px 0; border-bottom:1px solid var(--line); }
.evv-col:last-child .evv-sec:last-child { border-bottom:none; }
.evv-t { display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--muted2); margin-bottom:10px; }
.evv-t svg { width:15px; height:15px; color:var(--blue); flex:0 0 auto; }
.evv-val { font-size:14.5px; color:var(--ink); word-break:break-word; }
.evv-text { font-size:14.5px; color:var(--text); line-height:1.65; white-space:pre-wrap; word-break:break-word; }
.evv-sec .att-grid { margin-top:0; }
.evv-sec .att { cursor:pointer; }
.meet-badge { display:inline-flex; align-items:center; gap:7px; padding:5px 13px; border-radius:20px; font-size:13.5px; font-weight:600; }
.meet-badge svg { width:15px; height:15px; }
.meet-badge.online { background:#e6f4ea; color:#0b8043; }
.meet-badge.inperson { background:var(--sel); color:var(--blue); }
.evv-rem-sent { font-size:12.5px; color:var(--muted); margin-top:6px; }
.evv-rem-sent.sent { color:#0b8043; }

/* Meta strip u zaglavlju: tip sastanka + učesnici na prvi pogled */
.evv-meta { display:flex; align-items:center; gap:14px; margin-top:15px; flex-wrap:wrap; }
.evv-meta .mt-chip { display:inline-flex; align-items:center; gap:7px; background:rgba(255,255,255,.2); color:#fff; padding:6px 13px; border-radius:20px; font-size:13px; font-weight:600; }
.evv-meta .mt-chip svg { width:15px; height:15px; }
.evv-avs { display:flex; align-items:center; }
.evv-avs .av { width:30px; height:30px; border-radius:50%; border:2px solid rgba(255,255,255,.9); display:grid; place-items:center; background:#fff; color:#1a73e8; font-size:12px; font-weight:700; margin-left:-9px; box-shadow:0 1px 3px rgba(0,0,0,.22); }
.evv-avs .av:first-child { margin-left:0; }
.evv-avs .av.more { background:rgba(255,255,255,.25); color:#fff; border-color:rgba(255,255,255,.5); }

/* Trenutno vreme + odbrojavanje */
.evv-count { display:flex; align-items:center; gap:24px; background:linear-gradient(135deg,#f0f9ff,#eaf1fd); border:1px solid #d8ecfd; border-radius:16px; padding:18px 24px; margin-bottom:20px; }
.ec-cell { flex:1; min-width:0; }
.ec-div { width:1px; align-self:stretch; background:#d8ecfd; }
.ec-lbl { font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--muted2); margin-bottom:7px; }
.ec-now { font-size:21px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; line-height:1.25; }
.ec-now .ec-zone { display:block; font-size:13px; font-weight:500; color:var(--muted); margin-top:3px; }
.ec-cd { font-size:30px; font-weight:800; color:var(--blue); font-variant-numeric:tabular-nums; letter-spacing:.5px; }
.ec-cd.live { color:#0b8043; }
.ec-cd.past { color:var(--muted); font-size:24px; }
@media (max-width:680px) { .evv-count { flex-direction:column; align-items:stretch; gap:14px; } .ec-div { width:auto; height:1px; } }

/* Izmena: dve kolone — glavna polja levo, učesnici/prilozi/povezano desno */
.ev-edit-grid { display:grid; grid-template-columns:1.25fr 1fr; gap:0 30px; }
.ev-edit-main, .ev-edit-side { min-width:0; }
.ev-edit-side { border-left:1px solid var(--line); padding-left:30px; }
.ev-edit-main > .ev-line:first-child { padding-top:2px; }
.host-row { display:flex; align-items:center; gap:11px; padding:10px 12px; background:var(--bg2); border:1px solid #d8ecfd; border-radius:11px; margin-bottom:12px; }
.host-row .pav { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:13px; font-weight:700; flex:0 0 auto; }
.host-row .hnm { font-weight:600; color:var(--ink); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.host-row .hrole { font-size:12px; color:var(--blue); font-weight:600; margin-top:1px; }
.part-add { display:flex; gap:8px; margin-top:9px; }
.part-add .ev-add { flex:1; }
.part-btn { height:40px; padding:0 14px; border:1px solid var(--border); background:#fff; border-radius:10px; font-size:13.5px; font-weight:600; color:var(--ink); display:flex; align-items:center; gap:5px; white-space:nowrap; cursor:pointer; }
.part-btn:hover { background:var(--bg); border-color:#cdd7e5; }
.part-btn svg { width:15px; height:15px; }
.invite-btn { width:100%; margin-top:11px; height:42px; border:none; border-radius:10px; background:var(--btn); color:#fff; font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; box-shadow:0 4px 14px rgba(3,105,161,.26); }
.invite-btn:hover { filter:brightness(1.04); }
.invite-btn svg { width:16px; height:16px; }
@media (max-width:760px) { .ev-edit-grid { grid-template-columns:1fr; } .ev-edit-side { border-left:none; padding-left:0; border-top:1px solid var(--line); padding-top:4px; margin-top:4px; } }
@media (max-width:680px) { .evv-grid { grid-template-columns:1fr; } .evv-title { font-size:21px; } }

/* =========================== TOAST =========================== */
.toasts { position:fixed; right:22px; bottom:22px; display:flex; flex-direction:column; gap:10px; z-index:200; }
.toast { background:#fff; border:1px solid var(--border); border-left:4px solid var(--blue); border-radius:12px; box-shadow:var(--shadow-lg); padding:13px 16px; min-width:260px; max-width:340px; animation:slidein .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes slidein { from{opacity:0; transform:translateX(20px)} to{opacity:1; transform:none} }
.toast .tt { font-weight:700; color:var(--ink); font-size:14px; display:flex; align-items:center; gap:8px; }
.toast .tb { font-size:13px; color:var(--muted); margin-top:3px; }
.toast.reminder { border-left-color:#e37400; }

.loading { position:fixed; inset:0; display:grid; place-items:center; background:var(--bg); z-index:300; }
.spinner { width:34px; height:34px; border:3px solid var(--sel); border-top-color:var(--blue); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }

/* ── Responsive ── */
@media (max-width:980px) {
  .login { grid-template-columns:1fr; }
  .login__hero { display:none; }
  .sidebar { display:none; }
  .period-label { min-width:0; font-size:18px; }
  .topbar { gap:10px; padding:0 12px; }
  .metoda-brand .brand-text { display:none; }
  .tz-chip span { display:none; }
}
