/* BeeSY — supplemental styles on top of Tailwind CDN */
@layer base {
  html, body { margin: 0; padding: 0; }
  body { overscroll-behavior: none; }
  main > :first-child { margin-top: 0 !important; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d8e3fb; border-radius: 9999px; }
::-webkit-scrollbar-track { background: transparent; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* Sidebar nav links */
.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem; border-radius: 0.75rem;
  color: #584140; font-weight: 400; font-size: 14px; line-height: 22px;
  transition: background-color .15s, color .15s;
}
.nav-link:hover { background: #dee8ff; color: #111c2d; }
.nav-link.is-active {
  background: #ffdad8; color: #8c1520;
  font-weight: 600; font-size: 12px; line-height: 16px;
}
.nav-link.is-active .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 500; }

/* Collapsible sidebar parent + submenu */
.nav-parent {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.625rem 0.75rem; border-radius: 0.75rem;
  color: #584140; font-weight: 400; font-size: 14px; line-height: 22px;
  background: transparent; border: 0; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.nav-parent:hover { background: #dee8ff; color: #111c2d; }
.nav-parent[aria-expanded="true"] { color: #111c2d; }
.nav-parent[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-sub { padding-left: 0.75rem; margin-left: 0.65rem; border-left: 1.5px solid #e0bfbd; }
.nav-link-sub { font-size: 13px; padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* View transitions */
.view-enter { animation: viewFade .28s ease both; }
@keyframes viewFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Toast */
.toast {
  display: flex; align-items: center; gap: 0.5rem;
  background: #263143; color: #ecf1ff;
  padding: 0.625rem 1rem; border-radius: 0.75rem;
  box-shadow: 0 20px 32px -8px rgba(15,23,42,.24);
  font-size: 13px; font-weight: 500;
  animation: toastIn .25s ease both;
  max-width: 320px;
}
.toast.leaving { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* Calendar / Gantt */
.cal-grid { display: grid; }
.booking-bar {
  border-radius: 9999px;
  font-size: 11px; font-weight: 600; line-height: 22px;
  padding: 0 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 -1px 0 rgba(15,23,42,.06);
  cursor: pointer;
}
.booking-bar:hover { filter: brightness(0.97); }

/* Room map cells */
.room-cell { transition: transform .12s ease, box-shadow .12s ease; cursor: pointer; }
.room-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -4px rgba(255,107,107,.18); }

.tabular { font-variant-numeric: tabular-nums; }

/* Housekeeping active-task checkbox */
.hk-task input:checked ~ span .hk-task-title { text-decoration: line-through; opacity: .55; }
