/* Modern Date Picker Styles */
.modern-datepicker-popper {
  z-index: 9999 !important;
}

.react-datepicker {
  font-family: inherit !important;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  padding: 16px !important;
  color: #f8fafc !important;
}

.react-datepicker__header {
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
  padding: 0 0 16px 0 !important;
  margin-bottom: 16px !important;
}

.react-datepicker__current-month {
  color: #f8fafc !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

.react-datepicker__day-names {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 4px !important;
  margin-bottom: 8px !important;
}

.react-datepicker__day-name {
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 2px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.react-datepicker__month {
  margin: 0 !important;
}

.react-datepicker__week {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 2px !important;
  margin-bottom: 2px !important;
}

.react-datepicker__day {
  color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px !important;
  border-radius: 10px !important;
  border: none !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}

.react-datepicker__day:hover {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #3b82f6 !important;
  transform: translateY(-1px) !important;
}

.react-datepicker__day--selected {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: white !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.react-datepicker__day--selected:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  transform: translateY(-1px) !important;
}

.react-datepicker__day--keyboard-selected {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #3b82f6 !important;
}

.react-datepicker__day--disabled {
  color: #475569 !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

.react-datepicker__day--disabled:hover {
  background: transparent !important;
  transform: none !important;
}

.react-datepicker__day--outside-month {
  color: #64748b !important;
  opacity: 0.5 !important;
}

.react-datepicker__day--today {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #22c55e !important;
  font-weight: 600 !important;
}

.react-datepicker__day--today:hover {
  background: rgba(34, 197, 94, 0.2) !important;
}

.react-datepicker__navigation {
  top: 16px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  transition: all 0.2s ease !important;
}

.react-datepicker__navigation:hover {
  background: rgba(148, 163, 184, 0.2) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

.react-datepicker__navigation--previous {
  left: 8px !important;
}

.react-datepicker__navigation--next {
  right: 8px !important;
}

.react-datepicker__navigation-icon {
  transform: translateY(-50%) !important;
  width: 8px !important;
  height: 8px !important;
  border-color: #94a3b8 !important;
}

.react-datepicker__navigation-icon::before {
  border-color: #94a3b8 !important;
  border-width: 2px 2px 0 0 !important;
}

/* Animation for opening */
.react-datepicker-popper[data-placement^="bottom"] .react-datepicker__triangle {
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
}

.react-datepicker-popper[data-placement^="top"] .react-datepicker__triangle {
  border-top-color: rgba(148, 163, 184, 0.2) !important;
}

/* Focus styles */
.react-datepicker__day:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .react-datepicker {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  
  .react-datepicker__day {
    padding: 6px !important;
    font-size: 13px !important;
  }
  
  .react-datepicker__day-name {
    padding: 6px !important;
    font-size: 11px !important;
  }
} 

.react-datepicker__navigation-icon--previous::before {
  transform: rotate(225deg);
  right: 0px !important;
}

.react-datepicker__navigation-icon--next::before {
  transform: rotate(45deg);
  left: 0px !important;
}