/* ===== NEMO MANUALNA TERAPIJA - Professional CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --teal: #00a89d;
  --teal-dark: #008a80;
  --teal-light: #e6f7f6;
  --teal-lighter: #f0fafa;
  --grey-dark: #3a3a3a;
  --grey-mid: #6b6b6b;
  --grey-light: #9a9a9a;
  --grey-bg: #f5f5f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --border-mid: #c8c8c8;
  --danger: #c0392b;
  --success: #27ae60;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--grey-bg);
  color: var(--grey-dark);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2a2a2a 0%, #3a3a3a 50%, #4a4a4a 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-screen::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(0,168,157,0.1);
  pointer-events: none;
}
.login-screen::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(0,168,157,0.06);
  pointer-events: none;
}
.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.login-logo {
  text-align: center;
  margin-bottom: 40px;
}
.login-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px; height: 80px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}
.login-logo-mark svg {
  width: 40px; height: 40px;
  fill: white;
}
.login-logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--grey-dark);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.login-logo h1 span { color: var(--teal); }
.login-logo p {
  color: var(--grey-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.login-error {
  color: var(--danger);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
}

/* ===== APP ===== */
.app-screen { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.app-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-logo-icon {
  width: 48px; height: 32px;
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header-title { display: flex; flex-direction: column; line-height: 1.1; }
.header-title-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--grey-dark);
  letter-spacing: -0.3px;
}
.header-title-main span { color: var(--teal); }
.header-title-sub {
  font-size: 0.6rem;
  color: var(--grey-light);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.header-nav { display: flex; gap: 2px; flex: 1; }
.nav-tab {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--grey-mid);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-tab:hover { background: var(--grey-bg); color: var(--grey-dark); }
.nav-tab.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}
.header-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--grey-mid); }

/* Main */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  width: 100%;
}

/* Views */
.view { display: none; }
.view.active { display: block; }
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.view-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--grey-dark);
  letter-spacing: -0.3px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--grey-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--grey-dark);
  background: var(--white);
  transition: all 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,168,157,0.1);
}
textarea.form-input { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,168,157,0.3); }
.btn-secondary { background: var(--white); color: var(--grey-dark); border: 1.5px solid var(--border-mid); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-lighter); }
.btn-ghost { background: transparent; color: var(--grey-mid); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--grey-bg); color: var(--grey-dark); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 5px 11px; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 0.95rem; }

/* ===== CARDS GRID ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* Pacijent card */
.pacijent-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.pacijent-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pacijent-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 2px solid var(--teal);
}
.pacijent-name { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.pacijent-email { font-size: 0.78rem; color: var(--grey-mid); margin-bottom: 10px; }
.pacijent-napomena {
  font-size: 0.8rem;
  color: var(--grey-mid);
  background: var(--teal-lighter);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal);
  margin-bottom: 14px;
  line-height: 1.5;
}
.pacijent-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* Vježba card */
.vjezba-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.vjezba-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid); }
.vjezba-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.vjezba-name { font-size: 0.95rem; font-weight: 700; }
.vjezba-kategory {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(0,168,157,0.2);
}
.vjezba-opis {
  font-size: 0.82rem;
  color: var(--grey-mid);
  margin-bottom: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vjezba-meta { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.meta-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey-dark);
  background: var(--grey-bg);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.vjezba-actions { display: flex; gap: 6px; }

/* Plan card */
.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; }
.plan-pacijent { font-size: 0.82rem; color: var(--grey-mid); margin-bottom: 4px; }
.plan-count { font-size: 0.78rem; color: var(--teal); font-weight: 600; margin-bottom: 14px; }
.plan-actions { display: flex; gap: 6px; }

/* Search */
.search-bar { margin-bottom: 20px; }
.search-bar .form-input { max-width: 360px; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-wide { max-width: 680px; }
.modal-video { max-width: 820px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-close {
  background: var(--grey-bg);
  border: 1px solid var(--border);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-mid);
  flex-shrink: 0;
  transition: all 0.15s;
}
.modal-close:hover { background: #fde8e8; border-color: var(--danger); color: var(--danger); }
.modal-actions { display: flex; gap: 8px; margin-top: 24px; }

/* Video */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Plan builder */
.plan-vjezbe-section { margin-top: 20px; }
.plan-vjezbe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.plan-vjezbe-header h4 { font-size: 0.88rem; font-weight: 600; }
.plan-vjezba-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--teal-lighter);
  border: 1px solid rgba(0,168,157,0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.plan-vjezba-name { flex: 1; font-size: 0.875rem; font-weight: 500; }
.plan-vjezba-info { font-size: 0.75rem; color: var(--grey-mid); font-weight: 600; }

.plan-vjezba-add-row {
  background: var(--teal-lighter);
  border: 1px solid rgba(0,168,157,0.2);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 6px;
}
.plan-vjezba-add-row .plan-vjezba-sel { margin-bottom: 6px; }
.plan-vjezba-fields-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.plan-vjezba-field-label {
  font-size: 0.7rem;
  color: var(--grey-mid);
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.plan-vjezba-remove-btn { margin-top: 6px; }

/* Moj plan */
.moj-plan-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--grey-light);
}
.moj-plan-empty .icon {
  width: 80px; height: 80px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.moj-plan-empty .icon svg { width: 36px; height: 36px; fill: var(--teal); }
.moj-plan-empty p { font-size: 0.95rem; color: var(--grey-mid); }
.plan-section { margin-bottom: 36px; }
.plan-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
  color: var(--grey-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-section-title::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--teal);
  border-radius: 2px;
  display: inline-block;
}
.plan-napomena-box {
  background: #fffbf0;
  border-left: 4px solid #f0c040;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #7a6010;
  font-weight: 500;
}
.vjezba-pacijent-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.vjezba-pacijent-card:hover { box-shadow: var(--shadow-md); }
.vjezba-pacijent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.vjezba-pacijent-name { font-size: 1rem; font-weight: 700; }
.vjezba-pacijent-opis { font-size: 0.85rem; color: var(--grey-mid); margin-bottom: 14px; line-height: 1.6; }
.vjezba-pacijent-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* VAS ljestvica boli */
.vas-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.vas-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vas-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-dark);
}
.vas-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 2px 10px;
  border-radius: 20px;
  min-width: 28px;
  text-align: center;
}
.vas-slider {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--teal) 0%, #f0c040 50%, var(--danger) 100%);
  outline: none;
  cursor: pointer;
  margin-bottom: 4px;
}
.vas-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--grey-dark);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.vas-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--grey-dark);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.vas-scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--grey-light);
  margin-bottom: 10px;
}
.vas-komentar { margin-bottom: 10px; min-height: 56px; }
.vas-save-btn { width: 100%; justify-content: center; }
.vas-history { margin-top: 14px; }
.vas-history-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.vas-entry {
  background: var(--grey-bg);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 6px;
}
.vas-entry-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vas-entry-vas {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--white);
}
.vas-badge-low { background: var(--teal); }
.vas-badge-mid { background: #d99a1f; }
.vas-badge-high { background: var(--danger); }
.vas-entry-vjezba { font-size: 0.75rem; font-weight: 600; color: var(--grey-dark); }
.vas-entry-date { font-size: 0.72rem; color: var(--grey-mid); margin-left: auto; }
.vas-entry-komentar { font-size: 0.8rem; color: var(--grey-mid); margin-top: 4px; line-height: 1.5; }
.vas-entry-admin { border-left: 3px solid var(--teal); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--grey-dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 300;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey-light);
  grid-column: 1 / -1;
}
.empty-state .icon {
  width: 64px; height: 64px;
  background: var(--grey-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.empty-state .icon svg { width: 28px; height: 28px; fill: var(--grey-light); }
.empty-state p { font-size: 0.9rem; }

/* Detalji pacijenta */
.pacijent-detalji-info {
  background: var(--teal-lighter);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(0,168,157,0.15);
}
.detalji-row { display: flex; gap: 10px; margin-bottom: 6px; font-size: 0.875rem; }
.detalji-label { font-weight: 600; color: var(--grey-mid); min-width: 90px; }
.planovi-pacijenta h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.plan-mini {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}
.plan-mini:hover { border-color: var(--border-mid); }
.plan-mini-name { font-size: 0.875rem; font-weight: 600; }
.plan-mini-count { font-size: 0.75rem; color: var(--grey-mid); margin-top: 2px; }

.kategorija-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}
.kategorija-item:hover { border-color: var(--border-mid); }
.kategorija-item-name { font-size: 0.875rem; font-weight: 600; }
.kategorija-item-count { font-size: 0.75rem; color: var(--grey-mid); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--grey-bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* Responsive */
@media (max-width: 1024px) {
  .app-main { padding: 24px 18px 60px; }
  .header-inner { padding: 0 18px; }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 14px;
    row-gap: 10px;
    justify-content: space-between;
  }
  .header-title-sub { display: none; }
  .app-main { padding: 16px 14px 60px; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 20px; }
  .user-name { display: none; }

  .header-nav {
    order: 3;
    width: 100%;
    flex: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .header-nav::-webkit-scrollbar { display: none; }

  .pacijent-actions,
  .vjezba-actions,
  .plan-actions,
  .modal-actions {
    flex-wrap: wrap;
  }
  .pacijent-actions { justify-content: flex-start; }

  .plan-vjezba-fields-grid { grid-template-columns: 1fr 1fr; }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
    text-align: center;
  }

  .detalji-row { flex-wrap: wrap; }
  .detalji-label { min-width: 0; }
}

@media (max-width: 480px) {
  .nav-tab { padding: 6px 10px; font-size: 0.8rem; }
  .login-card { padding: 32px 22px; }
  .login-logo-mark { width: 96px; height: 64px; }
  .view-header h2 { font-size: 1.1rem; }
  .plan-vjezba-fields-grid { grid-template-columns: 1fr; }
  .header-logo-icon { width: 40px; height: 28px; }
  .header-title-main { font-size: 0.92rem; }
  .kalendar-day { font-size: 0.72rem; }
  .btn { padding: 8px 14px; font-size: 0.82rem; }
  .btn-sm { padding: 5px 9px; font-size: 0.74rem; }
}

/* ===== MULTI-ROLE ADDITIONS ===== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-btns { display: flex; gap: 6px; }
.filter-btns .btn.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal);
}

.moj-pacijent {
  border-color: var(--teal) !important;
}
.moj-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--teal);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.fizioterapeut-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  margin-bottom: 10px;
  padding: 5px 8px;
  background: var(--teal-lighter);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,168,157,0.15);
}
.fizioterapeut-label { color: var(--grey-mid); }
.fizioterapeut-name { font-weight: 600; color: var(--teal-dark); }

.fizioterapeut-info-box {
  background: var(--teal-lighter);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--grey-dark);
}

/* ===== FREQUENCY PICKER ===== */
.frequency-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.freq-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
}
.freq-opt input { display: none; }
.freq-opt span,
.freq-opt {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--grey-mid);
  transition: all 0.15s;
  user-select: none;
}
.freq-opt:has(input:checked) {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ===== KALENDAR ===== */
.kalendar-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.kalendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.kalendar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-dark);
}
.kalendar-nav { display: flex; gap: 6px; }
.kalendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.kalendar-day-header {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey-mid);
  padding: 4px 0;
  text-transform: uppercase;
}
.kalendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: default;
  position: relative;
  border: 1.5px solid transparent;
}
.kalendar-day.empty { background: transparent; }
.kalendar-day.today {
  border-color: var(--teal);
  font-weight: 700;
}
.kalendar-day.vjezba-dan {
  background: var(--teal);
  color: white;
  font-weight: 600;
}
.kalendar-day.vjezba-dan.today {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(0,168,157,0.2);
}
.kalendar-day.prosli {
  opacity: 0.4;
}
.kalendar-day.slobodan-dan {
  background: var(--grey-bg);
  color: var(--grey-mid);
}
.kalendar-legenda {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.legenda-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--grey-mid);
}
.legenda-boja {
  width: 14px; height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ===== Generirane lozinke ===== */
.form-hint { font-size: .82rem; color: var(--grey-mid); margin: 4px 0 16px; line-height: 1.4; }
.pristupni-podaci { background: rgba(0,0,0,.04); border-radius: 10px; padding: 12px 14px; }
.pristupni-podaci code { font-family: ui-monospace, Menlo, monospace; font-size: .95rem; font-weight: 600; letter-spacing: .03em; user-select: all; }

/* ===== Poveznica na obavijest o privatnosti ===== */
.login-privatnost { text-align: center; margin: 16px 0 0; font-size: .8rem; }
.login-privatnost a { color: var(--grey-mid); text-decoration: underline; }
.login-privatnost a:hover { color: var(--teal-dark); }

/* ===== Privola pacijenta ===== */
.privola-card { max-width: 440px; }
.privola-uvod { font-size: .88rem; color: var(--grey-dark); margin: 0 0 14px; line-height: 1.5; }
.privola-stavka { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.45; margin-bottom: 12px; cursor: pointer; }
.privola-stavka input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--teal); flex: none; }
.privola-stavka a { color: var(--teal-dark); }
.privola-napomena { font-size: .78rem; color: var(--grey-mid); margin: 4px 0 16px; }
#prihvatiPrivoluBtn:disabled { opacity: .5; cursor: not-allowed; }
