
/* Bootstrap integration theme
   Keeps the existing layout but gives the project a Bootstrap-based admin/app look.
*/

:root {
  --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-primary: #0d6efd;
  --bs-primary-rgb: 13, 110, 253;
  --bs-secondary: #6c757d;
  --bs-body-color: #212529;
  --bs-body-bg: #f8f9fa;
  --app-card-bg: rgba(255, 255, 255, 0.94);
  --app-border: rgba(33, 37, 41, 0.12);
}

body {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.10), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
  color: var(--bs-body-color);
}

main,
.adminShell {
  width: min(1220px, calc(100% - 32px));
}

.wideShell {
  width: min(1480px, calc(100% - 32px));
}

.nav,
.adminHeader {
  border-bottom: 1px solid var(--app-border);
  margin-bottom: 24px;
}

.brand {
  color: var(--bs-primary);
}

.mainNav a,
.adminActions a {
  border-radius: 999px;
}

.mainNav a:hover {
  color: var(--bs-primary);
}

.heroCard,
.card,
.priceCard,
.loginRequiredCard,
.userInfoBox,
.reservationHelpCard,
.sideCard,
.reservationMainPanel,
.adminCard,
.statCard,
.monthCell,
.daySummaryCard,
.slotTimelineCard,
.reservationPill {
  background: var(--app-card-bg) !important;
  border: 1px solid var(--app-border) !important;
  box-shadow: 0 1rem 2.5rem rgba(33, 37, 41, 0.08) !important;
}

.adminCard.card {
  padding: 24px;
  border-radius: 1.5rem;
}

.heroCard,
.loginRequiredCard,
.reservationHelpCard,
.sideCard,
.reservationMainPanel {
  border-radius: 1.5rem;
}

.primaryButton.btn,
.secondaryButton.btn {
  min-height: 46px;
  border-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-weight: 700;
}

.primaryButton.btn-primary {
  background: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
  box-shadow: 0 0.75rem 1.75rem rgba(var(--bs-primary-rgb), 0.22);
}

.secondaryButton.btn-outline-secondary {
  background: rgba(255,255,255,0.86) !important;
  color: #343a40 !important;
  border-color: rgba(108,117,125,0.3) !important;
}

.secondaryButton.btn-outline-secondary:hover {
  background: #f1f3f5 !important;
  color: #212529 !important;
}

.smallButton.btn-sm {
  min-height: 36px;
  padding: 0.35rem 0.8rem;
}

input,
select,
textarea,
.form-control,
.form-select {
  border-radius: 0.9rem !important;
  border: 1px solid rgba(33, 37, 41, 0.18) !important;
  background-color: #fff !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.55) !important;
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .15) !important;
  outline: 0 !important;
}

label {
  font-weight: 600;
  color: #343a40;
}

.eyebrow {
  color: var(--bs-primary) !important;
}

h1,
h2,
h3 {
  color: #111827;
}

.lead,
.smallText,
.heroCard p,
.card p,
.priceCard p,
.sectionIntro p,
.highlight p,
footer p {
  color: #495057 !important;
}

.notice.alert {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
}

.notice.success,
.alert-success {
  background: #d1e7dd !important;
  color: #0f5132 !important;
  border-color: #badbcc !important;
}

.notice.error,
.alert-danger {
  background: #f8d7da !important;
  color: #842029 !important;
  border-color: #f5c2c7 !important;
}

.adminTable.table {
  margin-bottom: 0;
}

.adminTable.table thead th {
  color: #495057;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(33,37,41,0.14);
}

.adminTable.table td,
.adminTable.table th {
  padding: 0.95rem;
}

.statusBadge {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.statusBadge.confirmed {
  background: #d1e7dd !important;
  color: #0f5132 !important;
}

.statusBadge.provisional {
  background: #fff3cd !important;
  color: #664d03 !important;
}

.statusBadge.open {
  background: #cff4fc !important;
  color: #055160 !important;
}

.statusBadge.cancelled {
  background: #f8d7da !important;
  color: #842029 !important;
}

.statCard {
  border-radius: 1.25rem;
}

.monthCell,
.daySummaryCard,
.quickSlotBadge,
.roomUsageItem {
  border-radius: 1rem;
}

.loadMeter {
  background: rgba(33,37,41,0.10);
}

.loadMeterFill.free {
  background: linear-gradient(90deg, #198754, #75b798) !important;
}

.loadMeterFill.partial {
  background: linear-gradient(90deg, #ffc107, #ffda6a) !important;
}

.loadMeterFill.full {
  background: linear-gradient(90deg, #dc3545, #ea868f) !important;
}

.legendBox.free,
.quickSlotBadge.free,
.roomUsageItem.free {
  background: #d1e7dd !important;
}

.legendBox.partial,
.quickSlotBadge.partial,
.roomUsageItem.partial {
  background: #fff3cd !important;
}

.legendBox.full,
.quickSlotBadge.full,
.roomUsageItem.full {
  background: #f8d7da !important;
}

.roomBadge,
.roomChipList span,
.weekdayChip,
.dayDate,
.tinyBadge,
.goodHint,
.provisionalHint {
  border-radius: 999px;
}

.roomBadge,
.roomChipList span,
.weekdayChip,
.dayDate {
  background: #e9ecef !important;
  color: #343a40 !important;
}

.goodHint {
  background: #d1e7dd !important;
  color: #0f5132 !important;
}

.provisionalHint,
.tinyBadge {
  background: #fff3cd !important;
  color: #664d03 !important;
}

.openingPublicGrid span,
.roomPublicList article,
.miniFacts span {
  background: #f1f3f5 !important;
  border: 1px solid rgba(33,37,41,0.08);
}

footer {
  border-top: 1px solid var(--app-border);
}

@media (max-width: 760px) {
  main,
  .adminShell {
    width: min(100% - 20px, 1220px);
  }

  .adminCard.card,
  .reservationMainPanel,
  .sideCard {
    padding: 18px;
  }
}


/* Cleaner reservation page with duration */
.reservationCleanHero {
  padding: 48px 0 24px;
}

.reservationCleanHero h1 {
  margin-bottom: 12px;
}

.reservationCleanLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
  margin-bottom: 72px;
}

.cleanReservationPanel {
  padding: 28px !important;
}

.reservationInfoPanel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.reservationStepHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(33,37,41,0.1);
}

.reservationStepHeader > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepPill {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 800;
}

.formSectionTitle {
  margin: 18px 0 10px;
  font-weight: 800;
  color: #111827;
}

.compactReservationForm .formGrid {
  gap: 14px;
}

.durationHint {
  margin: 10px 0 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #e7f1ff;
  color: #084298;
  font-size: 0.93rem;
}

.compactDetails {
  padding: 0 !important;
  overflow: hidden;
}

.compactDetails summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  list-style: none;
  border-bottom: 1px solid rgba(33,37,41,0.08);
}

.compactDetails summary::-webkit-details-marker {
  display: none;
}

.compactDetails summary::after {
  content: "+";
  float: right;
  color: var(--bs-primary);
}

.compactDetails[open] summary::after {
  content: "−";
}

.compactRoomList,
.compactOpeningGrid {
  padding: 16px;
}

.compactHelpCard {
  font-size: 0.95rem;
}

.compactHelpCard p {
  margin: 8px 0 0;
}

@media (max-width: 980px) {
  .reservationCleanLayout {
    grid-template-columns: 1fr;
  }

  .reservationInfoPanel {
    position: static;
  }
}

@media (max-width: 700px) {
  .reservationStepHeader {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Warm color refresh */
:root {
  --bs-primary: #b86a42;
  --bs-primary-rgb: 184, 106, 66;
  --bs-secondary: #8a7768;
  --bs-body-color: #3f342d;
  --bs-body-bg: #f8f2ea;
  --app-card-bg: rgba(255, 250, 245, 0.95);
  --app-border: rgba(120, 88, 64, 0.16);
}

body {
  background:
    radial-gradient(circle at top left, rgba(210, 156, 117, 0.24), transparent 30rem),
    radial-gradient(circle at top right, rgba(241, 214, 182, 0.35), transparent 28rem),
    linear-gradient(180deg, #fffaf5 0%, #f7efe5 100%) !important;
  color: var(--bs-body-color);
}

.nav,
.adminHeader,
footer {
  border-color: rgba(140, 104, 77, 0.16) !important;
}

.brand,
.eyebrow,
.mainNav a:hover {
  color: var(--bs-primary) !important;
}

.heroCard,
.card,
.priceCard,
.loginRequiredCard,
.userInfoBox,
.reservationHelpCard,
.sideCard,
.reservationMainPanel,
.adminCard,
.statCard,
.monthCell,
.daySummaryCard,
.slotTimelineCard,
.reservationPill {
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(252, 244, 237, 0.96)) !important;
  border-color: rgba(140, 104, 77, 0.14) !important;
  box-shadow: 0 1rem 2.5rem rgba(116, 86, 61, 0.08) !important;
}

.primaryButton.btn-primary {
  background: linear-gradient(180deg, #c77950, #ae623e) !important;
  border-color: #ae623e !important;
  box-shadow: 0 0.85rem 1.8rem rgba(184, 106, 66, 0.24);
}

.primaryButton.btn-primary:hover,
.primaryButton.btn-primary:focus {
  background: linear-gradient(180deg, #cf845c, #b56742) !important;
  border-color: #b56742 !important;
}

.secondaryButton.btn-outline-secondary {
  background: rgba(255, 248, 240, 0.95) !important;
  color: #5d4d42 !important;
  border-color: rgba(154, 124, 101, 0.34) !important;
}

.secondaryButton.btn-outline-secondary:hover {
  background: #f3e6d8 !important;
  color: #493c34 !important;
}

input,
select,
textarea,
.form-control,
.form-select {
  border-color: rgba(151, 118, 92, 0.22) !important;
  background-color: #fffaf5 !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.5) !important;
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .14) !important;
}

label,
h1,
h2,
h3,
.formSectionTitle {
  color: #4a3a31 !important;
}

.lead,
.smallText,
.heroCard p,
.card p,
.priceCard p,
.sectionIntro p,
.highlight p,
footer p,
.roomPublicList p,
.roomPublicList span,
.openingPublicGrid span,
.durationHint {
  color: #6b584b !important;
}

.notice.success,
.alert-success,
.goodHint,
.legendBox.free,
.quickSlotBadge.free,
.roomUsageItem.free {
  background: #e9f1e2 !important;
  color: #48623a !important;
  border-color: #d6e3ca !important;
}

.notice.error,
.alert-danger,
.legendBox.full,
.quickSlotBadge.full,
.roomUsageItem.full {
  background: #f7dfd8 !important;
  color: #8b4236 !important;
  border-color: #efcac1 !important;
}

.statusBadge.provisional,
.provisionalHint,
.tinyBadge,
.legendBox.partial,
.quickSlotBadge.partial,
.roomUsageItem.partial {
  background: #f9ead0 !important;
  color: #8a6425 !important;
}

.statusBadge.open {
  background: #efe4d6 !important;
  color: #6d5233 !important;
}

.roomBadge,
.roomChipList span,
.weekdayChip,
.dayDate {
  background: #efe5d8 !important;
  color: #634f42 !important;
}

.openingPublicGrid span,
.roomPublicList article,
.miniFacts span,
.durationHint {
  background: #f6ede3 !important;
  border-color: rgba(140, 104, 77, 0.10) !important;
}

.loadMeter {
  background: rgba(120, 88, 64, 0.12);
}

.loadMeterFill.free {
  background: linear-gradient(90deg, #7ea16a, #a8c392) !important;
}

.loadMeterFill.partial {
  background: linear-gradient(90deg, #d9aa52, #ebca84) !important;
}

.loadMeterFill.full {
  background: linear-gradient(90deg, #c87061, #e0a095) !important;
}

.stepPill {
  background: var(--bs-primary);
}
