:root{
--primary:#5c6ef8;
--width:30px;
--height:30px;
--display:inline-block;
--border:#5c6ef8;
--hover-bg: #e0e0ff;
--inrange-bg:rgba(73, 61, 206, 0.2);
}

.date-picker-wrapper {
  position: relative;
  display: inline-block;
    width: 220px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.date-input {
  padding: 0.6em 1em;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 15px;
  cursor: pointer;
width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  transition: border 0.2s ease;
}

.date-input:focus {
  border-color: var(--border);
  outline: none;
}

.calendar-popup {
  position: absolute;
  top: 48px;
  left: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 1em;
  z-index: 9999;
  max-width: 320px;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.calendar-popup.hidden {
  display: none;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
  font-weight: 500;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #493dce;
  transition: transform 0.15s ease;
}

.calendar-header button:hover {
  transform: scale(1.2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3em;
}

.calendar-day {
  text-align: center;
  padding: 0.5em 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day:hover {
  background: var(--hover-bg);
    display:var(--display);
height: var(--height);
width:var(--width);
}

.calendar-day.today {
  border: 1px solid var(--border);
justify-items: center;
    display:var(--display);
height: var(--height);
width:var(--width);
}

.calendar-day.selected-start,
.calendar-day.selected-end {
border-radius: 50%;
  background: #493dce;
  color: white;
      display:var(--display);
height: var(--height);
width:var(--width);
}

.calendar-day.in-range {
  background: var(--inrange-bg);
        display:var(--display);
height: var(--height);
width:var(--width);
}

.calendar-popup .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3em;
  transition: transform 0.3s ease;
  will-change: transform;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1450px) {
    .date-picker-wrapper{
        width: 350px !important
    }

}
@media (max-width: 550px) {
    .date-picker-wrapper{
        width:100% !important;
    }
  .calendar-popup {
    width:100% !important;
    max-width: 100% !important;
    left: 0;
    right: 0;
  }
  .date-input {
    width:100% !important;
    max-width: 100% !important;
  }
}

