/* RoomBook app.css v2.1 */
:root {
  --accent: #4f6ef7;
  --sidebar-bg: #0f1117;
}

/* ── FullCalendar přizpůsobení ─────────────────────────────────────────── */
.fc .fc-toolbar-title { font-size: .9rem !important; font-weight: 600 !important; }

/* Tlačítka — text, bez ikon */
.fc .fc-button {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
  font-size: .75rem !important;
  padding: .3rem .75rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  border-radius: .5rem !important;
}
.fc .fc-button:hover { background: #f9fafb !important; }
.fc .fc-button-active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

/* Skrytí výchozích SVG ikon prev/next — nahradíme textem ‹ › */
.fc .fc-icon { display: none !important; }
.fc .fc-prev-button::after { content: '‹'; font-size: 1rem; line-height: 1; }
.fc .fc-next-button::after { content: '›'; font-size: 1rem; line-height: 1; }

/* Dark mode tlačítka */
.dark .fc .fc-button {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
.dark .fc .fc-button:hover { background: #334155 !important; }

/* Mřížka */
.dark .fc .fc-theme-standard td,
.dark .fc .fc-theme-standard th,
.dark .fc .fc-theme-standard .fc-scrollgrid { border-color: #1e293b; }
.dark .fc .fc-timegrid-slot-label { color: #475569; }
.dark .fc-toolbar-title { color: #f1f5f9 !important; }
.dark .fc .fc-col-header-cell-cushion { color: #94a3b8; }
.dark .fc .fc-daygrid-day-number { color: #94a3b8; }
.dark .fc .fc-list-event { background: #1e293b; }
.dark .fc .fc-list-day-cushion { background: #0f172a; }

/* Sloty */
.fc .fc-timegrid-slot { height: 28px; }
.fc .fc-event { border-radius: 5px !important; border: none !important; cursor: pointer; }
.fc .fc-event:hover { filter: brightness(1.1); }
.fc .fc-now-indicator-line { border-color: #ef4444 !important; border-width: 2px !important; }
.fc .fc-col-header-cell { padding: 0 !important; }

/* Pozadí slotů rozvrhu */
.fc .fc-bg-event.rozvrh-slot { opacity: 1 !important; }

/* ── Sidebar navigace ──────────────────────────────────────────────────── */
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  margin-bottom: 1px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.nav-item.active { background: rgba(79,110,247,.2); color: #818cf8; }
.nav-item svg { flex-shrink: 0; }

/* ── Modální okno ──────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.dark .modal-box { background: #1e293b; }

/* ── Toast notifikace ──────────────────────────────────────────────────── */
#toast-container { pointer-events: none; }
.toast {
  padding: .65rem 1.1rem;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: slideIn .2s ease;
  max-width: 320px;
  pointer-events: auto;
}
.toast.success { background: #22c55e; }
.toast.error   { background: #ef4444; }
.toast.info    { background: var(--accent); }
.toast.warn    { background: #f59e0b; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Lišta rozvrhu ─────────────────────────────────────────────────────── */
#rozvrh-bar::-webkit-scrollbar { display: none; }
#rozvrh-bar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Responzivita — mobil ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  aside { width: 0 !important; overflow: hidden !important; }
  #btn-new { font-size: .72rem !important; padding: .35rem .6rem !important; }
  .modal-box { max-width: 100%; border-radius: 12px; }
  .fc .fc-toolbar { flex-wrap: wrap; gap: .25rem; }
  .fc .fc-toolbar-title { font-size: .8rem !important; }
}
