:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.08);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-dark: #0058b0;
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9f0a;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(120, 119, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 113, 227, 0.14), transparent 26%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 42%, #eef2f7 100%);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang TC", "Noto Sans TC", sans-serif;
  letter-spacing: -0.01em;
  padding-bottom: 96px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

.page-shell {
  max-width: 1280px;
}

.navbar-shell {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px);
}

.navbar {
  padding: 0.8rem 1.2rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.18);
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.navbar-nav {
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(29, 29, 31, 0.78) !important;
  border-radius: 999px;
  padding: 0.62rem 1rem !important;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text) !important;
  background: rgba(0, 113, 227, 0.1);
}

.nav-link,
.btn,
.card,
.quick-card,
.timeline-item,
.room-row {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover,
.timeline-item:hover,
.room-row:hover,
.quick-card:hover {
  transform: translateY(-1px);
}

.hero-panel,
.glass-card,
.card,
.alert,
.table-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-panel {
  padding: 2rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero-subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--muted);
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1.45rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(241, 247, 255, 0.78)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 55px rgba(32, 80, 144, 0.1);
  backdrop-filter: blur(24px);
}

.admin-metrics {
  display: flex;
  gap: 0.55rem;
}

.admin-metric {
  display: grid;
  min-width: 92px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(0, 113, 227, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.admin-metric strong {
  margin-top: 0.08rem;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.1;
}

.admin-section-tabs {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(248, 250, 253, 0.84);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(24px);
  scrollbar-width: none;
}

.admin-section-tabs::-webkit-scrollbar {
  display: none;
}

.admin-section-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.admin-section-tab:hover {
  color: var(--text);
  background: rgba(0, 113, 227, 0.06);
}

.admin-section-tab.is-active {
  color: white;
  background: linear-gradient(180deg, #1f94ff 0%, var(--blue) 100%);
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.22);
}

.admin-section-tab:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.25);
  outline-offset: 2px;
}

.admin-panel[hidden] {
  display: none !important;
}

.admin-panel-grid {
  min-height: 380px;
}

.admin-card {
  height: 100%;
}

.admin-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-card-kicker {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-count-badge {
  flex: 0 0 auto;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-room-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-room-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-room-identity {
  min-width: 0;
}

.admin-room-identity strong {
  margin-right: 0.4rem;
}

.admin-room-identity span {
  color: var(--text);
}

.admin-room-meta {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-room-item .status-badge {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.admin-card > form + hr,
.admin-card > details,
.admin-card > .table-shell {
  margin-top: 1.15rem;
}

.admin-card .table-shell {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.metric-card,
.card {
  overflow: hidden;
}

.card,
.card.card-body,
.glass-card {
  padding: 1.35rem;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0 0 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.card-header:last-child {
  margin-bottom: 0;
}

.list-group-item {
  border-color: rgba(15, 23, 42, 0.06);
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.72rem 1.15rem;
  border: none;
  box-shadow: none !important;
}

.btn-sm {
  padding: 0.48rem 0.95rem;
}

.btn-primary,
.btn-success {
  background: linear-gradient(180deg, #1292ff 0%, var(--blue) 100%);
}

.btn-primary:hover,
.btn-success:hover {
  background: linear-gradient(180deg, #0b84ef 0%, var(--blue-dark) 100%);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-dark,
.btn-outline-danger {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.btn-outline-danger {
  color: #d92d20;
}

.btn-outline-danger:hover {
  background: rgba(255, 59, 48, 0.12);
  color: #b42318;
}

.form-control,
.form-select {
  min-height: 52px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding-left: 1rem;
  padding-right: 1rem;
}

textarea.form-control {
  min-height: 120px;
  padding-top: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.form-label,
.fw-semibold {
  color: var(--text);
}

.badge {
  padding: 0.52rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.text-bg-light {
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--text) !important;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-approved {
  background: rgba(52, 199, 89, 0.16);
  color: #17803d;
}

.status-pending,
.status-pending_approval {
  background: rgba(255, 159, 10, 0.16);
  color: #9a6700;
}

.status-cancelled,
.status-rejected {
  background: rgba(255, 59, 48, 0.14);
  color: #b42318;
}

.table-shell {
  padding: 0.75rem 1rem;
}

.calendar-board {
  display: grid;
  gap: 1rem;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.85rem;
}

.week-day-card {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.week-day-head {
  margin-bottom: 0.85rem;
}

.week-day-name {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.week-day-date {
  font-size: 1.1rem;
  font-weight: 700;
}

.week-slot-list {
  display: grid;
  gap: 0.6rem;
}

.week-slot {
  padding: 0.7rem 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.week-slot-time {
  font-size: 0.82rem;
  font-weight: 700;
}

.week-slot-title {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  line-height: 1.3;
}

.week-slot-room {
  color: var(--muted);
  font-size: 0.78rem;
}

.day-card {
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.day-card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.day-card-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.schedule-list {
  display: grid;
  gap: 0.85rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.schedule-time {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.schedule-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.48);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.68);
}

.table thead th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom-color: rgba(15, 23, 42, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table td,
.table th {
  padding: 1rem 0.75rem;
  border-color: rgba(15, 23, 42, 0.06);
  vertical-align: middle;
}

.alert {
  padding: 1rem 1.2rem;
}

.alert-success {
  background: rgba(52, 199, 89, 0.14);
}

.alert-danger {
  background: rgba(255, 59, 48, 0.12);
}

.alert-warning {
  background: rgba(255, 159, 10, 0.16);
}

.alert-info {
  background: rgba(0, 113, 227, 0.12);
}

.booking-availability {
  position: sticky;
  top: 1rem;
}

.availability-slot {
  white-space: nowrap;
}

.soft-grid {
  display: grid;
  gap: 1rem;
}

.mini-stat {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
}

.mini-stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-item {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-sheet {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.68) 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(26px);
}

.sheet-section + .sheet-section {
  margin-top: 1.1rem;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.ios-field {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.ios-field .form-label {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-card {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.quick-card-title {
  font-size: 0.88rem;
  color: var(--muted);
}

.quick-card-value {
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.room-list {
  display: grid;
  gap: 0.85rem;
}

.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
}

.room-row strong {
  display: block;
}

.room-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-list {
  display: grid;
  gap: 0.75rem;
}

.timeline-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.timeline-item-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.booking-grid-shell {
  overflow-x: auto;
}

.booking-filter-panel {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
}

.booking-checkbox-list {
  display: grid;
  gap: 0.55rem;
}

.schedule-bulk-form {
  display: grid;
  gap: 0.75rem;
}

.schedule-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.82);
}

.schedule-bulk-title {
  color: var(--text);
  font-weight: 700;
}

.schedule-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.schedule-selected-count {
  min-width: 5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.schedule-select-column {
  width: 2.75rem;
  text-align: center;
}

.schedule-management-table tbody tr {
  transition: background-color 160ms ease;
}

.schedule-management-table {
  min-width: 860px;
}

.schedule-management-table tbody tr.is-selected {
  background: rgba(0, 113, 227, 0.07);
}

.schedule-management-table .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
}

.booking-ai-panel {
  padding: 0.95rem;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 20px;
  background: rgba(0, 113, 227, 0.04);
}

.booking-ai-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.12);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
}

.booking-ai-result {
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

@media (max-width: 767.98px) {
  .schedule-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-bulk-actions {
    justify-content: space-between;
  }
}

.booking-ai-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.booking-ai-result-source {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.booking-ai-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 0;
  list-style: none;
}

.booking-ai-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}

.booking-ai-list li span {
  color: var(--muted);
  font-size: 0.88rem;
}

.booking-ai-reasoning {
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.booking-ai-reasoning li + li {
  margin-top: 0.3rem;
}

.booking-location-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.booking-location-option {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.booking-location-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-location-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.booking-location-option.active span,
.booking-location-option input:checked + span {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 113, 227, 0.28);
  color: var(--blue);
}

.booking-location-option span:hover {
  border-color: rgba(0, 113, 227, 0.24);
  color: var(--blue);
}

.booking-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.booking-grid-table-inner {
  min-width: 1380px;
  margin-bottom: 0;
}

.booking-view-tabs .nav-link {
  border-radius: 999px;
  color: var(--muted);
}

.booking-view-tabs .nav-link.active {
  background: rgba(0, 113, 227, 0.12);
  color: var(--blue);
}

.booking-detail-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-filter-btn.active {
  background: rgba(0, 113, 227, 0.12);
  color: var(--blue);
}

.booking-grid-table-inner th,
.booking-grid-table-inner td {
  white-space: nowrap;
  vertical-align: middle;
}

.booking-grid-cell {
  min-width: 64px;
  padding: 0.45rem 0.35rem !important;
}

.booking-grid-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.05rem;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.booking-grid-slot-available {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  color: rgba(0, 113, 227, 0.9);
  cursor: pointer;
}

.booking-grid-slot-available:hover {
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.25);
  color: var(--blue);
}

.booking-grid-slot-ai-suggested {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.08);
}

.booking-grid-slot-ai-recommended {
  background: rgba(98, 54, 255, 0.12);
  border-color: rgba(98, 54, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(98, 54, 255, 0.1);
}

.booking-grid-slot-selected {
  background: rgba(0, 113, 227, 0.9);
  border-color: rgba(0, 113, 227, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #fff;
}

.booking-grid-slot-booked {
  background: rgba(0, 113, 227, 0.16);
  color: var(--blue-dark);
}

.booking-grid-slot-pending {
  background: rgba(52, 199, 89, 0.2);
  color: #267c3d;
}

.booking-grid-slot-schedule {
  background: rgba(255, 159, 10, 0.18);
  color: #a15d00;
}

.booking-grid-slot-block {
  background: rgba(255, 59, 48, 0.16);
  color: #b42318;
}

.booking-grid-slot-outside {
  background: rgba(15, 23, 42, 0.04);
  color: transparent;
  border-style: dashed;
}

.booking-modal-content {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.booking-detail-badge-booked {
  background: rgba(0, 113, 227, 0.16);
  color: var(--blue-dark);
}

.booking-detail-badge-pending {
  background: rgba(52, 199, 89, 0.2);
  color: #267c3d;
}

.booking-detail-badge-schedule {
  background: rgba(255, 159, 10, 0.18);
  color: #a15d00;
}

.booking-detail-badge-block {
  background: rgba(255, 59, 48, 0.16);
  color: #b42318;
}

.mobile-tabbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 1000;
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(22px);
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 64px;
  padding: 0.5rem 0.8rem;
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.mobile-tab.active {
  background: rgba(0, 113, 227, 0.12);
  color: var(--blue);
}

.mobile-tab-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.mobile-tab-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

hr {
  border-color: rgba(15, 23, 42, 0.06);
  opacity: 1;
}

@media (max-width: 991.98px) {
  .navbar-shell {
    border-radius: 28px;
  }

  .navbar {
    padding: 0.65rem 0.8rem;
  }

  .navbar .container-fluid {
    flex-wrap: nowrap;
  }

  .navbar-brand {
    min-width: 0;
  }

  .navbar-nav {
    margin-left: auto;
  }

  .navbar-nav .nav-link {
    display: none !important;
  }

  .navbar-nav .nav-link:last-child {
    display: block !important;
    padding: 0.55rem 0.8rem !important;
  }

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-metrics {
    width: 100%;
  }

  .admin-metric {
    flex: 1;
    min-width: 0;
  }

  .admin-room-list {
    grid-template-columns: 1fr;
  }

  .booking-availability {
    position: static;
  }

  .page-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .week-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  body {
    padding-bottom: 32px;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.66rem;
  }

  .admin-hero {
    padding: 1.15rem;
    border-radius: 24px;
  }

  .admin-section-tabs {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
    border-radius: 19px;
  }

  .admin-section-tab {
    min-height: 40px;
    padding: 0.5rem 0.8rem;
  }

  .admin-card.card-body {
    padding: 1rem;
  }

  .admin-card-heading {
    align-items: flex-start;
  }

  .admin-room-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-room-meta {
    white-space: normal;
  }

  .admin-room-item .status-badge {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .week-strip {
    grid-template-columns: 1fr;
  }
}
