/* app/assets/stylesheets/vanilla_datepicker.css */

/* Main datepicker container */
.fm-datepicker {
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  width: 280px;
  padding: 0.75rem;
  z-index: 50;
  position: absolute;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
}

/* Header section with month/year and navigation buttons */
.fm-datepicker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Month and year title */
.fm-datepicker-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
}

/* Navigation buttons */
.fm-datepicker-btn {
  background-color: #f3f4f6;
  border: none;
  border-radius: 0.25rem;
  color: #1f2937;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-datepicker-btn:hover {
  background-color: #e5e7eb;
}

/* Weekday header */
.fm-datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 500;
  color: #6b7280;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Days grid */
.fm-datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

/* Individual day cell */
.fm-datepicker-day {
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  color: #1f2937;
  font-size: 0.875rem;
}

/* Empty day cell */
.fm-datepicker-day.empty {
  cursor: default;
}

/* Hover effect */
.fm-datepicker-day:not(.empty):hover {
  background-color: #f3f4f6;
}

/* Today's date */
.fm-datepicker-day.today {
  border: 1px solid #3b82f6;
}

/* Selected date */
.fm-datepicker-day.selected {
  background-color: #3b82f6;
  color: white;
  font-weight: 500;
}

/* Footer with action buttons */
.fm-datepicker-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
}

/* Common styles for all inputs that use our datepicker */
input[data-controller="vanilla-datepicker"] {
  color: #000000;
  cursor: pointer;
}