body {
  background-color: #f5f8ff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

.info {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  gap: 40px;
}

.left {
  width: 70%;
}

.calendar-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-header-title h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.calendar-description {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}

.calendar-selects {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.um-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  width: auto;
}
.um-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  border: 2px solid #4e8fff;
  white-space: nowrap;
  box-sizing: border-box;
}
.um-dropdown--solid .um-dd-trigger {
  background:#3b68ff;
  color:#fff;
  border-color:#3b68ff;
  box-shadow: 0 6px 16px rgba(59,104,255,.25);
}
.um-dropdown--solid .um-dd-trigger:hover { background:#335ef2; }
.um-dropdown--outline .um-dd-trigger {
  background:#fff;
  color:#2563eb;
}
.um-dropdown--outline .um-dd-trigger:hover { background:#eaf1ff; }

.um-dd-chevron { transition: transform .2s ease; color: currentColor; }
.um-dropdown.open .um-dd-chevron { transform: rotate(180deg); }

.um-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 100%;
  box-sizing: border-box;
  background:#fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1.5px solid #3b68ff;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  max-height: none;
  overscroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.um-dd-menu::-webkit-scrollbar{ width:0; height:0; }
.um-dropdown.open .um-dd-menu { display: block; }

.um-dd-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  margin: 0;
  font-size: 18px;
  color:#2b3a55;
  background:#fff;
  border-bottom: 1.5px solid #3b68ff;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.um-dd-item:last-child { border-bottom: 0; }
.um-dd-item:hover { background:#eef4ff; }
.um-dd-item[aria-selected="true"] { background:#eef4ff; }
.um-dd-item[aria-disabled="true"] { opacity:.45; pointer-events:none; background:#fff; }

.disabled-day {
  color: #000;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-block-wrapper {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.calendar-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.calendar-title {
  font-size: 20px;
  font-weight: 700;
}

.calendar-arrows {
  display: flex;
  gap: 22px;
}

.arrow-button {
  border: none;
  background: transparent;
  font-size: 28px;
  color: black;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  border-radius: 999px;
}

.arrow-button:hover {
  color: #003cbf;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  background-color: #f6f9ff;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #e5e7eb;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

.calendar-cell {
  height: 120px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  user-select: none;
  text-align: center;
}

.calendar-cell.out-month {
  color: #bbb;
  background-color: #f8f9fb;
  pointer-events: none;
}

.calendar-cell.selected {
  background-color: #2563eb;
  color: white;
  font-weight: bold;
  pointer-events: none;
}

.calendar-cell:hover:not(.out-month):not(.selected):not(.disabled) {
  background-color: #e0edff;
  cursor: pointer;
}

.calendar-cell.disabled {
  pointer-events: none;
  color: #ccc;
}

.calendar-cell[data-current-month="true"].out-month {
  color: #111;
  background-color: white;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal .modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-icon {
  width: 80px;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.modal-content h3 {
  text-align: center;
  margin-top: 0;
  font-size: 22px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.chart-grid canvas {
  background: #fafafa;
  padding: 10px;
  border-radius: 12px;
  height: 240px !important;
}

.modal-content button {
  display: block;
  margin: 0 auto;
  margin-top: 16px;
  background-color: #2563eb;
  color: white;
  padding: 10px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-content button:hover {
  background-color: #003cbf;
}

@media (max-width: 1024px) {
  .info {
    padding: 28px 22px;
    gap: 24px;
  }
  .left {
    width: 100%;
  }
  .calendar-header-title h2 {
    font-size: 24px;
  }
  .um-dd-trigger {
    font-size: 16px;
    padding: 8px 14px;
  }
  .um-dd-item {
    height: 42px;
    font-size: 16px;
  }
  .calendar-weekdays {
    font-size: 13px;
    padding: 10px 0;
  }
  .calendar-cell {
    height: 92px;
    font-size: 15px;
  }
  .um-dd-menu {
    overflow: auto;
    max-height: 60vh;
    overscroll-behavior: contain;
  }
}

@media (max-width: 640px) {
  .info {
    flex-direction: column;
    padding: 20px 14px;
    gap: 16px;
  }
  .calendar-header-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .calendar-selects {
    gap: 10px;
  }
  .um-dd-trigger {
    font-size: 15px;
    padding: 8px 12px;
  }
  .um-dd-menu {
    max-width: 100%;
    width: 100%;
    top: calc(100% + 6px);
  }
  .um-dd-item {
    height: 40px;
    font-size: 15px;
  }
  .calendar-title-row {
    margin-bottom: 10px;
  }
  .calendar-title {
    font-size: 18px;
  }
  .calendar-weekdays {
    font-size: 12px;
    padding: 8px 0;
  }
  .calendar-cell {
    height: 64px;
    font-size: 14px;
  }
  .calendar-block-wrapper {
    padding: 16px;
    border-radius: 14px;
  }
}
