html {
  font-size: 20px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* React DatePicker Customizations */
.react-datepicker-wrapper {
  width: 100%;
}

.react-datepicker__input-container {
  width: 100%;
}

.react-datepicker__input-container input {
  width: 100%;
}

.react-datepicker {
  font-family: inherit;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.react-datepicker__header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.react-datepicker__day--selected,
.react-datepicker__day--keyboard-selected,
.react-datepicker__time-list-item--selected {
  background-color: #0d6efd !important;
}

.react-datepicker__day:hover {
  background-color: #e9ecef;
}

.react-datepicker__time-container {
  border-left: 1px solid #dee2e6;
}

.react-datepicker__time-list-item:hover {
  background-color: #e9ecef !important;
}

.react-datepicker__time-list-item--disabled {
  color: #adb5bd !important;
}

.react-datepicker__navigation-icon::before {
  border-color: #6c757d;
}

/* Ensure datepicker calendar is not clipped on mobile */
.react-datepicker-popper {
  z-index: 1050 !important;
}

.card {
  overflow: visible !important;
}

.card-body {
  overflow: visible !important;
}

/* Prevent calendar from going off-screen on mobile */
@media (max-width: 767px) {
  .react-datepicker-popper {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content;
  }

  .react-datepicker {
    max-width: 90vw;
  }
}
