/*
 * InstaFluid Booking – Calendar Styles
 */

/* ── Step 5 – Calendar ──────────────────────────────── */
.ifb-schedule-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.ifb-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ifb-cal-month {
  font-weight: 800;
  font-size: 16px;
  color: var(--ifb-text-main);
}

.ifb-cal-nav { display: flex; gap: 8px; }

button#ifb-cal-prev.ifb-cal-btn[type="button"],
button#ifb-cal-next.ifb-cal-btn[type="button"],
button#ifb-cal-prev.ifb-cal-btn,
button#ifb-cal-next.ifb-cal-btn,
.ifb-cal-nav button.ifb-cal-btn {
  width: 32px !important;
  height: 32px !important;
  border: 1.5px solid #0652DD !important;
  border-radius: var(--ifb-radius-sm) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--ifb-bg-card) !important;
  cursor: pointer !important;
  color: #0652DD !important;
  transition: all 0.2s ease !important;
}

button#ifb-cal-prev.ifb-cal-btn[type="button"]:hover,
button#ifb-cal-next.ifb-cal-btn[type="button"]:hover,
button#ifb-cal-prev.ifb-cal-btn:hover,
button#ifb-cal-next.ifb-cal-btn:hover,
.ifb-cal-nav button.ifb-cal-btn:hover { 
  background: #0652DD !important;
  color: #ffffff !important;
  border-color: #0652DD !important;
}

button#ifb-cal-next.ifb-cal-btn-fwd[type="button"],
button#ifb-cal-next.ifb-cal-btn-fwd,
.ifb-cal-nav button.ifb-cal-btn-fwd {
  color: #0652DD !important;
}

button#ifb-cal-next.ifb-cal-btn-fwd[type="button"]:hover,
button#ifb-cal-next.ifb-cal-btn-fwd:hover,
.ifb-cal-nav button.ifb-cal-btn-fwd:hover {
  color: #ffffff !important;
}

.ifb-cal-btn svg,
.ifb-cal-btn svg * {
  pointer-events: none !important;
}

.ifb-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ifb-text-light);
  text-align: center;
  margin-bottom: 12px;
}

.ifb-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.ifb-cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--ifb-radius-sm);
  transition: all 0.15s ease;
}

.ifb-cal-day--empty { background: transparent; }

.ifb-cal-day--disabled { color: var(--ifb-border); cursor: default; }

.ifb-cal-day--avail {
  background: var(--ifb-bg-selected);
  color: var(--ifb-primary);
  cursor: pointer;
}

.ifb-cal-day--avail:hover { background: #D6E4FF; }

.ifb-cal-day--selected {
  background: var(--ifb-primary);
  color: #fff;
  cursor: pointer;
}

/* Slots */
.ifb-slots-heading {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 20px;
  min-height: 24px;
  color: var(--ifb-text-main);
}

.ifb-slots-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 8px; /* For scrollbar breathing room */
}

/* Scrollbar styling for time slots */
.ifb-slots-list::-webkit-scrollbar {
  width: 6px;
}
.ifb-slots-list::-webkit-scrollbar-track {
  background: transparent;
}
.ifb-slots-list::-webkit-scrollbar-thumb {
  background: var(--ifb-border);
  border-radius: 10px;
}

.ifb-slot {
  text-align: center;
  padding: 14px;
  border: 1px solid var(--ifb-border);
  border-radius: var(--ifb-radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: var(--ifb-text-main);
  background: var(--ifb-bg-card);
  transition: all 0.2s ease;
}

.ifb-slot:hover { 
  border-color: var(--ifb-primary); 
  color: var(--ifb-primary); 
}
.ifb-slot.is-selected { 
  border-color: var(--ifb-primary); 
  background: var(--ifb-primary); 
  color: #fff; 
}
