.calendar {
  background: #35353d;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 0;
  top: 80px;
  color: #bfbfc8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.2s, visibility 0.2s;
}
.calendar-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  border: 1px solid #bfbfc8;
}

.calendar-header button {
  width: 47.1428px;
  height: 40px;
  position: relative;
  border-inline: 1px solid #bfbfc8;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 47.1428px);
}
.calendar-grid > *:nth-child(7n + 1),
.calendar-grid > *:nth-child(7n) {
  color: #ac4f4f;
}
.calendar-day {
  width: 47.1428px;
  height: 40px;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px solid #bfbfc8;
  transition: color 0.3s, scale 0.3s, filter 0.3s;
}
.calendar-day.disabled,
.calendar-day.empty,
.calendar-day.header {
  font-size: 11.5px;
  font-weight: 400;
  cursor: default;
  text-transform: uppercase;
}
.calendar-day.disabled {
  color: #aaa;
}

.calendar-day:not(.header):not(.disabled):not(.empty):hover {
  background: #83838d;
  color: white;
  scale: 1.05;
  filter: brightness(1.2);
}
.calendar-day.selected-date {
  background: #aaa;
  color: white;
}

.calendar-day:not(.header):not(.disabled):not(.empty):active {
  scale: 0.95;
  filter: brightness(0.9);
}

.calendar-arrow {
  cursor: pointer;
  transition: scale 0.2s, filter 0.2s;
  position: absolute;
  /* left: 0; */
  top: 10px;
  left: 15px;
}

.calendar-stroke {
  stroke: #83838d;
}

.calendar-arrow:hover {
  filter: brightness(1.2);
  scale: 1.2;
}

.flipped-arrow {
  left: 15px;
  transform: rotate(180deg);
}

.month-year {
  padding-block: 10px;
}

.calendar-icon-svg {
  left: calc(89.5% + 2.65px);
  cursor: pointer;
  transition: scale 0.2s, filter 0.2s;
}

.calendar-icon-svg:hover {
  scale: 1.2;
  filter: brightness(1.2);
}

.calendar-icon-svg:active {
  scale: 0.95;
  filter: brightness(0.95);
}

.hidden-calendar {
  opacity: 0;
  visibility: hidden;
  scale: 0;
  z-index: -1;
  pointer-events: none;
}


