/* =========================================================
   HOLOGRAMI — Hours Calendar (Air-Datepicker) + Upcoming List
   ========================================================= */

/* ---------- Tunables ---------- */
#hours-cal{
  /* space between cells */
  --cal-gap: 30px;

  /* theme */
  --c-text:    #f5f5f7;
  --c-dim:     rgba(255,255,255,.55);
  --c-mute:    rgba(255,255,255,.35);
  --c-bg:      rgba(255,255,255,.06);
  --c-bg-2:    rgba(255,255,255,.04);
  --c-border:  rgba(255,255,255,.12);
  --c-accent:  rgba(42,213,255,.55);

  /* geometry */
  --radius: 24px;
  --cell-radius: 20px;
}

/* =========================================================
   CALENDAR CONTAINER
   ========================================================= */
#hours-cal .air-datepicker{
  width: 100%;
  color: var(--c-text);
  background: linear-gradient(180deg, var(--c-bg), var(--c-bg-2));
  backdrop-filter: blur(6px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04);
  font-size: clamp(15px, 1.15vw, 17px);
  overflow: hidden;
}

/* =========================================================
   NAV BAR (RTL: next on left, prev on right)
   ========================================================= */
#hours-cal .air-datepicker-nav{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
}
#hours-cal .air-datepicker-nav--action[data-action="next"]{ order: 3; }
#hours-cal .air-datepicker-nav--title{ order: 2; flex: 1; text-align: center; font-weight: 700; color: #fff; }
#hours-cal .air-datepicker-nav--action[data-action="prev"]{ order: 1; }

/* simple round buttons */
#hours-cal .air-datepicker-nav--action{
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: var(--c-text);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
#hours-cal .air-datepicker-nav--action:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  background: rgba(255,255,255,.12);
}
/* disabled nav (from minDate/maxDate) */
#hours-cal .air-datepicker-nav--action.-disabled-{
  opacity: .35;
  pointer-events: none;
}

/* =========================================================
   HEADERS + CELLS (true gaps with CSS Grid)
   ========================================================= */
#hours-cal .air-datepicker-body{
  padding: 10px 0 12px;
}

/* day-of-week row with same gap */
#hours-cal .air-datepicker-body--day-names{
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--cal-gap);
  padding: 10px var(--cal-gap) 8px;
}
#hours-cal .air-datepicker-body--day-name{
  color: var(--c-dim); font-weight: 700; text-align: center;
}

/* 7xN grid with gap */
#hours-cal .air-datepicker-body--cells.-days-{
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--cal-gap);
  padding: 0 var(--cal-gap) var(--cal-gap);
}

/* cell */
#hours-cal .air-datepicker-cell{
  display: flex; align-items: center; justify-content: center;
  height: clamp(46px, 6.2vw, 60px);
  border-radius: var(--cell-radius);
  color: rgba(255,255,255,.9);
  background: transparent;
  position: relative;
  transition: background .12s ease, box-shadow .12s ease, color .12s ease;
}

/* hover */
#hours-cal .air-datepicker-cell.-day-:hover{
  background: rgba(255,255,255,.08);
}

/* other-month & disabled (past) */
#hours-cal .air-datepicker-cell.-other-month-,
#hours-cal .air-datepicker-cell.-disabled-{
  color: var(--c-mute);
  opacity: .38;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}
#hours-cal .air-datepicker-cell.-disabled-:hover,
#hours-cal .air-datepicker-cell.-other-month-:hover{
  background: transparent !important;
}

/* =========================================================
   OPEN-DAY (available) — subtle outline
   ========================================================= */
#hours-cal .air-datepicker-cell.open-day{
  box-shadow: inset 0 0 0 1.5px var(--c-accent);
}

/* selected/focus — quiet */
#hours-cal .air-datepicker-cell.-selected-,
#hours-cal .air-datepicker-cell.-focus-{
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 2px var(--c-accent), 0 0 0 1px rgba(0,0,0,.2);
  color: #fff; font-weight: 800;
}

/* remove default range “pills” */
#hours-cal .air-datepicker-cell.-in-range-,
#hours-cal .air-datepicker-cell.-range-from-,
#hours-cal .air-datepicker-cell.-range-to-{
  background: transparent;
  box-shadow: none;
}

/* =========================================================
   Tooltip (used only for slot list)
   ========================================================= */
#hours-tooltip{
  position: absolute; z-index: 9999;
  background: rgba(0,0,0,.88);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px; line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  pointer-events: none;
}

/* =========================================================
   Upcoming list (left column)
   ========================================================= */
#hours-list{
  direction: rtl;
  display: flex; flex-direction: column; gap: 12px;
  margin: 0; padding: 0;
}
.hours-line{
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: inherit;
  font-size: 18px; line-height: 1.5;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.hours-line:hover{
  background: rgba(255,255,255,.10);
  border-color: var(--c-accent);
}
.hours-line:active{ transform: scale(.997); }

/* =========================================================
   Selected day panel under the calendar
   ========================================================= */
#hours-selected{
  margin-top: 18px;
  padding: 14px 16px;
  color: var(--c-text, #f5f5f7);
  background: var(--c-bg, rgba(255,255,255,.06));
  border: 1px solid var(--c-border, rgba(255,255,255,.12));
  border-radius: var(--radius, 16px);
}
#hours-selected[hidden]{ display:none; }

#hours-selected .hs-line{
  font-size: 16px;
}
#hours-selected .hs-empty{
  opacity: .75;
}

/* Make the calendar title a dead label (no hover/click) */
#hours-cal .air-datepicker-nav--title,
#hours-cal .air-datepicker-nav--title:hover,
#hours-cal .air-datepicker-nav--title:focus {
  background: transparent !important;
  box-shadow: none !important;
  cursor: default !important;
}

/* Block pointer interaction entirely */
#hours-cal .air-datepicker-nav--title {
  pointer-events: none;     /* disables mouse/touch */
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 900px){
  #hours-cal{ --cal-gap: 10px; }
  #hours-cal .air-datepicker{ font-size: 15px; }
}
@media (max-width: 600px){
  #hours-cal{ --cal-gap: 8px; }
  #hours-cal .air-datepicker{ font-size: 14px; }
  .hours-line{ font-size: 16px; padding: 10px 12px; }
}

/* Fallback (only if your build ignores grid gaps)
#hours-cal .air-datepicker-cell{ margin: 4px !important; }
#hours-cal .air-datepicker-body--cells.-days-{ padding: 0 4px 8px !important; }
#hours-cal .air-datepicker-body--day-names{ padding: 10px 4px 6px !important; }
*/
