@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #F3F8FE;
  color: #0F2233;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 20px; }
.wrap-narrow { max-width: 400px; margin: 60px auto; padding: 0 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 36px; height: 36px; border-radius: 8px; background: #1B63C4; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.brand-name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: #5B7186; }
.card { background: #fff; border-radius: 12px; border: 1px solid #DCE7F2; padding: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: #5B7186; margin-bottom: 4px; }
.field input { width: 100%; border: 1px solid #DCE7F2; border-radius: 8px; padding: 9px 10px; font-size: 13px; outline: none; }
.field input:focus { border-color: #1B63C4; }
.field-hint { font-size: 11px; color: #8FA2B3; margin-top: 4px; }
.primary-btn { width: 100%; background: #1B63C4; color: #fff; border: none; border-radius: 999px; padding: 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.primary-btn:hover { background: #144B8C; }
.secondary-link { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: #1B63C4; text-decoration: none; }
.secondary-link:hover { text-decoration: underline; }
.page-title { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.page-sub { font-size: 13px; color: #5B7186; margin-bottom: 20px; }
.error-box { background: #fff; border: 1px solid #DCE7F2; border-left: 4px solid #993C1D; color: #993C1D; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
.success-box { background: #fff; border: 1px solid #DCE7F2; border-left: 4px solid #1B63C4; color: #0B2A4A; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
.mode-switch { display: flex; background: #fff; border: 1px solid #DCE7F2; border-radius: 8px; padding: 2px; }
.mode-btn { border: none; background: none; padding: 6px 12px; font-size: 13px; border-radius: 999px; cursor: pointer; color: #5B7186; text-decoration: none; }
.mode-btn.active { background: #1B63C4; color: #fff; }

/* Menu hamburgerowe - widoczne tylko na wąskich ekranach */
.nav-menu { display: flex; align-items: center; gap: 8px; }
.hamburger-btn {
  display: none;
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid #DCE7F2;
  background: #fff; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-size: 18px; color: #0F2233;
}
.nav-menu > a.mode-btn { white-space: nowrap; }
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; }
  .hamburger-btn { display: flex; }
  .nav-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; order: 3; }
  .nav-menu.open { display: flex; }
  .nav-menu .mode-switch { flex-direction: column; width: 100%; }
  .nav-menu .mode-switch .mode-btn { text-align: left; padding: 10px 12px; }
  .nav-menu > a.mode-btn { text-align: left; padding: 10px 12px; white-space: normal; }
  .zarzadzanie-terminami-grid { grid-template-columns: 1fr !important; }
}
.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nav-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #DCE7F2; background: #fff; color: #5B7186; cursor: pointer; font-size: 16px; }
.week-label { font-size: 13px; color: #5B7186; }
.days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 20px; }
.day-btn { border-radius: 10px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; border: 1px solid #DCE7F2; background: #fff; cursor: pointer; }
.day-btn.selected { background: #1B63C4; border-color: #1B63C4; color: #fff; }
.day-dow { font-size: 11px; color: #5B7186; }
.day-btn.selected .day-dow { color: rgba(255,255,255,0.8); }
.day-num { font-size: 15px; font-weight: 500; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 12px; padding: 12px 16px; border: 1px solid #DCE7F2; }
.stat-label { font-size: 12px; color: #5B7186; }
.stat-value { font-size: 22px; font-weight: 500; }
.slots-card { background: #fff; border-radius: 12px; border: 1px solid #DCE7F2; overflow: hidden; }
.slot-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #E9F1FC; }
.slot-row:last-child { border-bottom: none; }
.slot-time { width: 48px; font-size: 13px; color: #5B7186; flex-shrink: 0; }
.slot-body { flex: 1; }
.slot-booked { display: flex; align-items: center; justify-content: space-between; background: #E6F0FD; border-radius: 8px; padding: 6px 12px; }
.slot-booked-name { font-size: 13px; font-weight: 500; color: #0B2A4A; }
.slot-booked-meta { font-size: 11px; color: #1B63C4; }
.slot-blocked { display: flex; align-items: center; justify-content: space-between; background: #E6F0FD; border-radius: 8px; padding: 6px 12px; font-size: 12px; color: #5B7186; }
.slot-free-btn { width: 100%; text-align: left; background: none; border: 1px solid #DCE7F2; border-radius: 8px; padding: 6px 12px; font-size: 13px; color: #5B7186; cursor: pointer; }
.slot-free-btn:hover { border-color: #1B63C4; color: #1B63C4; }
.slot-free-btn:disabled { color: #8FA2B3; cursor: not-allowed; }
.icon-btn { border: none; background: none; cursor: pointer; width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.icon-btn.danger { color: #993C1D; }
.icon-btn.danger:hover { background: #FAECE7; }
.icon-btn.neutral { color: #5B7186; }
.icon-btn.neutral:hover { background: #E6F0FD; }
.link-btn { border: none; background: none; color: #1B63C4; font-size: 11px; cursor: pointer; }
.footnote { text-align: center; font-size: 11px; color: #8FA2B3; margin-top: 16px; }

/* Baner cookies */
#cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #0F2233; color: #fff; padding: 14px 20px; }
.cookie-banner-tresc { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner-tresc span { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.cookie-banner-tresc a { color: #CFE0F7; }
#cookie-banner-ok { background: #1B63C4; color: #fff; border: none; border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
#cookie-banner-ok:hover { background: #144B8C; }
@media (max-width: 600px) { .cookie-banner-tresc { flex-direction: column; align-items: stretch; } #cookie-banner-ok { width: 100%; } }

/* Tabela w panelu administracyjnym */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: #8FA2B3; padding: 8px 10px; border-bottom: 1px solid #DCE7F2; }
.admin-table td { padding: 10px; border-bottom: 1px solid #E9F1FC; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.badge-aktywny { background: #1B63C4; color: #fff; }
.badge-probny { background: #E6F0FD; color: #144B8C; }
.badge-wygasl { background: #FAECE7; color: #993C1D; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 700px) { .admin-stats-grid { grid-template-columns: 1fr 1fr; } .admin-table { display: block; overflow-x: auto; white-space: nowrap; } }
.share-box { background: #fff; border: 1px solid #DCE7F2; border-left: 4px solid #1B63C4; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; font-size: 13px; color: #0B2A4A; }
.share-box a { color: #144B8C; font-weight: 500; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.overlay.show { display: flex; }
.modal { background: #fff; border-radius: 12px; border: 1px solid #DCE7F2; padding: 20px; width: 100%; max-width: 360px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 15px; font-weight: 500; }
.modal-sub { font-size: 12px; color: #5B7186; }
.close-x { border: none; background: none; color: #8FA2B3; cursor: pointer; font-size: 18px; }
.confirm-icon { width: 44px; height: 44px; border-radius: 50%; background: #E6F0FD; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: #1B63C4; font-size: 20px; }
