/* /assets/css/app.css
   App-wide styling. Kept minimal in Phase 1 — the shell, sidebar, and login
   screen. Later phases (room board status colors, calendar, etc.) extend this
   file rather than adding page-specific stylesheets. */

:root {
  --pms-accent: #0f5c52;
  --pms-accent-dark: #0a3f39;
}

body.pms-body {
  background-color: #f4f6f5;
}

/* --- Sidebar --------------------------------------------------------- */

.pms-sidebar {
  width: 240px;
  min-height: 100vh;
  flex-shrink: 0;
}

.pms-nav-link {
  color: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 2px;
}

.pms-nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.pms-nav-link.active {
  color: #fff;
  background-color: var(--pms-accent);
}

@media (max-width: 991.98px) {
  .pms-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
  }

  .pms-sidebar.show {
    transform: translateX(0);
  }
}

.pms-main {
  min-width: 0;
}

/* --- Login screen ------------------------------------------------------ */

.pms-login-wrap {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--pms-accent-dark), var(--pms-accent));
}

.pms-login-card {
  max-width: 380px;
  width: 100%;
}

/* --- Room board (section 12) -------------------------------------------
   Nine room statuses need nine reliably distinct hues — Bootstrap's eight
   contextual colors run out, so the room board defines its own scale. */

.room-status-available    { background-color: #1f8a5f; }
.room-status-reserved     { background-color: #2563eb; }
.room-status-occupied     { background-color: #7c3aed; }
.room-status-dirty        { background-color: #9a3412; }
.room-status-cleaning     { background-color: #d97706; }
.room-status-clean        { background-color: #0891b2; }
.room-status-inspected    { background-color: #059669; }
.room-status-out_of_order { background-color: #dc2626; }
.room-status-out_of_service { background-color: #6b7280; }

.room-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.room-card .room-card-stripe {
  height: 6px;
}

.room-card .room-number {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.room-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

/* --- Print --------------------------------------------------------------
   App-wide: any page can mark its own chrome (buttons, filter forms, nav)
   `no-print` and it disappears from the printed page automatically,
   without needing its own <style> block. Originally local to the invoice
   view (views/billing/invoice.php); promoted here once Reports
   needed the same rule, so it's defined once rather than duplicated per
   page. */
@media print {
  .pms-sidebar, .pms-navbar, .no-print {
    display: none !important;
  }

  .pms-main {
    padding: 0 !important;
  }
}
