/* ===============================
   ROOT COLORS
================================ */
:root {
  --sabp-blue: #1f235a;
  --sabp-blue-dark: #191c4a;
  --sabp-blue-light: #2b2f77;
  --sabp-gold: #c2a273;
  --sabp-white: #ffffff;
}

/* ===============================
   WRAPPER
================================ */
.sabp-reservation-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

/* ===============================
   CALENDAR COLUMN
================================ */
.sabp-calendar-column {
  background: var(--sabp-blue);
  padding: 25px;
  border-radius: 16px;
  color: #fff;
}

.sabp-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  text-align: center;
}

/* Hide input (calendar only) */
#sabp-booking-date {
  display: none;
}

/* ===============================
   FLATPICKR OVERRIDES
================================ */
.flatpickr-calendar {
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
}

.flatpickr-months,
.flatpickr-weekdays {
  background: transparent;
}

.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.flatpickr-prev-month,
.flatpickr-next-month {
  color: #fff !important;
  fill: #fff !important;
  font-weight: 600;
}

.flatpickr-weekday {
  color: #e6e9ff !important;
  font-size: 13px;
}

.flatpickr-days {
  padding-top: 8px;
}

.flatpickr-day {
  color: #ffffff !important;
  opacity: 0.85;
  border-radius: 50%;
  margin: 4px;
  height: 40px;
  line-height: 42px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.flatpickr-day.flatpickr-disabled {
  color: rgba(255,255,255,0.35) !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
}

/* Today */
.flatpickr-day.today:not(.selected) {
  border: 2px solid #8fa2ff !important;
  background: transparent !important;
  color: #fff !important;
  font-weight: 600;
}

/* Selected day */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #5a7bff !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
  opacity: 1 !important;
}

/* ===============================
   FORM COLUMN
================================ */
.sabp-form-column {
  background: var(--sabp-gold);
  padding: 35px;
  border-radius: 16px;
}

.sabp-form-column label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.sabp-form-column input,
.sabp-form-column select,
.sabp-form-column textarea {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: none;
  padding: 0 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.sabp-form-column textarea {
  height: 90px;
  padding-top: 10px;
  resize: none;
}

/* ===============================
   GRID
================================ */
.sabp-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sabp-col-12 {
  grid-column: span 2;
}

/* ===============================
   SLOT DROPDOWN
================================ */
#sabp-slot-dropdown {
  background: #fff;
  border-radius: 8px;
  height: 44px;
  font-weight: 500;
}

/* ===============================
   BUTTONS
================================ */
.sabp-btn {
  background: var(--sabp-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.sabp-btn:hover {
  background: var(--sabp-blue-dark);
}

#sabp-cancel {
  display: none;
}

/* ===============================
   ERROR
================================ */
#sabp-error {
  margin-top: 12px;
  color: #b00000;
  font-weight: 600;
}


.tablenav .tablenav-pages {
    float: right;
    margin: 0 0 9px;
    padding: 15px 25px;
}
.page-numbers{
    padding: 10px;
}
.flatpickr-monthDropdown-month{
    background-color: #4c4f79 !important;
}

/* ===============================
   MOBILE FIX (CRITICAL)
================================ */
@media (max-width: 768px) {

  .sabp-reservation-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0px;
    margin-left:-18px;
    padding-bottom: 24px;
  }

  .sabp-calendar-column,
  .sabp-form-column {
    width: 100%;
    border-radius: 18px;
  }

  .sabp-calendar-column {
    padding: 20px;
  }

  .sabp-form-column {
    padding: 22px 18px;
  }

  .sabp-row {
    grid-template-columns: 1fr;
  }

  .sabp-col-12 {
    grid-column: span 1;
  }

  .flatpickr-day {
    height: 40px;
    line-height: 38px;
    font-size: 14px;
  }

  .sabp-btn {
    width: 100%;
    margin-top: 10px;
  }
}
