/* === Sakura Park — Base / Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* Tipografske pomoćne klase */
.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Dugmad */
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  text-decoration: none;
}
.btn:hover { border-color: var(--line-strong); }

.btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn.primary:hover {
  background: var(--sakura);
  color: #1a0a14;
  border-color: var(--sakura);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.ghost:hover { background: var(--surface-2); }

.btn.danger {
  color: #a3343d;
  border-color: transparent;
  background: transparent;
}
.btn.danger:hover { background: #fbe8ea; }

/* Badge statusi */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge.aktivan { background: var(--green-soft); color: #2f5e3c; }
.badge.aktivan::before { background: var(--green); }
.badge.novi { background: var(--sakura-pale); color: #8a3357; }
.badge.novi::before { background: var(--sakura); }
.badge.odjavljen { background: #ecebe7; color: #8a8680; }
.badge.odjavljen::before { background: #8a8680; }

/* Checkbox */
.check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin: 0;
}
.check:checked {
  background: var(--text);
  border-color: var(--text);
}
.check:checked::after {
  content: "✓";
  position: absolute;
  inset: -3px 0 0 3px;
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* Toast notifikacija */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.2s;
  z-index: 200;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sakura);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Modal scrim */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.scrim.open { display: flex; }
