/* ═══════════════════════════════════════════════
   GS CALENDAR v3 — styles
   Position/display is handled entirely by JS.
   Include once in app.blade.php <head>.
   ═══════════════════════════════════════════════ */

/* ── Trigger button ── */
.gs-cal-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e2e5ea;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 13.5px;
  color: #1a1a2e;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: 'Public Sans', sans-serif;
  width: 100%;
}
.gs-cal-trigger:hover         { border-color: #c9cdd5; }
.gs-cal-trigger.open          { border-color: #12D8FA; box-shadow: 0 0 0 3px rgba(18,216,250,.15); }
.gs-cal-trigger .cal-icon     { color: #0B1F66; font-size: 15px; flex-shrink: 0; }
.gs-cal-trigger .cal-label    { flex: 1; }
.gs-cal-trigger .cal-arrow    { color: #9ca3af; font-size: 13px; transition: transform .2s; margin-left: auto; }
.gs-cal-trigger.open .cal-arrow { transform: rotate(180deg); }

/* ── Popup shell — positioning set by JS ── */
.gs-cal-popup {
  /* display/position/size all set by JS — only visual styles here */
  background: #fff;
  font-family: 'Public Sans', sans-serif;
  animation: gsCal-in .15s ease;
}

@keyframes gsCal-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav header ── */
.gs-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px 10px;
  background: linear-gradient(135deg, #0B1F66 0%, #12D8FA 100%);
}
.gs-cal-nav-btn {
  width: 30px; height: 30px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  transition: background .15s;
  flex-shrink: 0;
}
.gs-cal-nav-btn:hover { background: rgba(255,255,255,.35); }

.gs-cal-nav-labels {
  display: flex;
  gap: 6px;
  align-items: center;
}
.gs-cal-nav-month,
.gs-cal-nav-year {
  font-size: 14px; font-weight: 800; color: #fff;
  cursor: pointer;
  padding: 3px 8px; border-radius: 6px;
  transition: background .15s;
  white-space: nowrap;
}
.gs-cal-nav-month:hover,
.gs-cal-nav-year:hover {
  background: rgba(255,255,255,.22);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Day names row ── */
.gs-cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 10px 4px;
  border-bottom: 1px solid #f0f2f5;
}
.gs-cal-day-name {
  text-align: center;
  font-size: 10px; font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
}

/* ── Day cells ── */
.gs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 6px 10px 10px;
}
.gs-cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px; font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.gs-cal-day:hover               { background: #eef2ff; color: #0B1F66; }
.gs-cal-day.today               { font-weight: 800; color: #0B1F66; border: 1.5px solid #0B1F66; }
.gs-cal-day.selected            { background: linear-gradient(135deg,#0B1F66,#12D8FA); color: #fff; font-weight: 800; }
.gs-cal-day.selected.today      { border-color: transparent; }
.gs-cal-day.other-month         { color: #d1d5db; }
.gs-cal-day.gs-cal-disabled     { color: #d1d5db; cursor: default; pointer-events: none; }

/* ── Month / Year picker grid ── */
.gs-cal-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px;
}
.gs-cal-pick-cell {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background .12s, color .12s;
  text-align: center;
}
.gs-cal-pick-cell:hover   { background: #eef2ff; color: #0B1F66; }
.gs-cal-pick-cell.current { background: linear-gradient(135deg,#0B1F66,#12D8FA); color: #fff; font-weight: 800; }

/* ── Shortcuts bar ── */
.gs-cal-shortcuts {
  display: flex; gap: 6px;
  padding: 0 10px 12px;
}
.gs-cal-short {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #e2e5ea;
  font-size: 12px; font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all .12s;
  font-family: 'Public Sans', sans-serif;
}
.gs-cal-short:hover { border-color: #12D8FA; color: #0B1F66; background: #f0fffe; }

/* ── Mobile bottom sheet extras ── */
@media (max-width: 767px) {
  .gs-cal-pick-cell { padding: 13px 4px; font-size: 14px; }
  .gs-cal-day       { font-size: 13px; }
  .gs-cal-day-name  { font-size: 11px; }
  .gs-cal-nav-month,
  .gs-cal-nav-year  { font-size: 15px; }
  .gs-cal-shortcuts { padding: 4px 10px 20px; }
}