/* gambabi date picker — dark theme */

/* Hide native input but keep it interactable in the DOM (forms, JS readers). */
.gbp-original {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* The styled trigger sits where the original was. */
.gbp-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 140px;
  padding: 6px 10px 6px 12px;
  background: rgba(12, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e8eaed;
  font-family: var(--font-ui, 'Outfit', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.gbp-trigger:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(15, 16, 25, 0.95);
}
.gbp-trigger:focus,
.gbp-trigger:focus-visible {
  outline: none;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.gbp-trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gbp-trigger-empty { color: #5c6272; font-weight: 400; }
.gbp-trigger-icon {
  display: inline-flex;
  color: #9ba1b0;
  flex-shrink: 0;
}
.gbp-trigger:hover .gbp-trigger-icon { color: #22d3ee; }

/* Popup */
.gbp-popup {
  position: absolute;
  z-index: 9999;
  width: 280px;
  padding: 12px;
  background: linear-gradient(180deg, #11131c 0%, #0c0d16 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-family: var(--font-ui, 'Outfit', system-ui, sans-serif);
  color: #e8eaed;
  animation: gbp-fade 0.12s ease-out;
}
@keyframes gbp-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gbp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}
.gbp-header-sub { justify-content: flex-start; }

.gbp-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  color: #9ba1b0;
  cursor: pointer;
  transition: all 0.12s ease;
}
.gbp-nav:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.35);
  color: #22d3ee;
}

.gbp-label {
  display: flex;
  gap: 6px;
  align-items: center;
}
.gbp-label-btn {
  background: transparent;
  border: none;
  color: #e8eaed;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.gbp-label-btn:hover {
  background: rgba(34, 211, 238, 0.08);
  color: #22d3ee;
}

.gbp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.gbp-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5c6272;
  text-transform: uppercase;
  padding: 4px 0;
}

.gbp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.gbp-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #c9ccd4;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
  padding: 0;
}
.gbp-day:hover:not(.gbp-day-disabled) {
  background: rgba(34, 211, 238, 0.1);
  color: #e8eaed;
  border-color: rgba(34, 211, 238, 0.25);
}
.gbp-day-outside { color: #3d4252; }
.gbp-day-today {
  color: #22d3ee;
  font-weight: 700;
}
.gbp-day-today:not(.gbp-day-selected) {
  border-color: rgba(34, 211, 238, 0.25);
}
.gbp-day-selected,
.gbp-day-selected:hover {
  background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%);
  color: #07080d;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 4px 12px -4px rgba(34, 211, 238, 0.5);
}
.gbp-day-disabled {
  color: #2a2e3c;
  cursor: not-allowed;
}

.gbp-month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 0;
}
.gbp-month-cell {
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: #c9ccd4;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.gbp-month-cell:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
  color: #22d3ee;
}
.gbp-month-selected {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.5);
  color: #22d3ee;
}

.gbp-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.gbp-foot-btn {
  flex: 1;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  color: #c9ccd4;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}
.gbp-foot-btn:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.35);
  color: #22d3ee;
}
.gbp-foot-btn-muted { color: #9ba1b0; }
.gbp-foot-btn-muted:hover {
  border-color: rgba(248, 113, 113, 0.3);
  color: #f87171;
  background: rgba(248, 113, 113, 0.06);
}

/* Mobile sizing */
@media (max-width: 480px) {
  .gbp-popup { width: calc(100vw - 24px); max-width: 320px; }
  .gbp-day { height: 36px; font-size: 13px; }
}
