.Select,
.DateInput_input,
.CalendarMonth_caption,
.has-value.Select--single > .Select-control .Select-value .Select-value-label,
.has-value.is-pseudo-focused.Select--single
  > .Select-control
  .Select-value
  .Select-value-label {
  color: white;
}

.Select-control,
.Select-menu-outer,
.DayPicker div,
.CalendarMonth_table,
.is-open > .Select-control,
.DateInput_input {
  background-color: #272b30;
}

body.light .Select,
body.light .DateInput_input,
body.light .CalendarMonth_caption,
body.light
  .has-value.Select--single
  > .Select-control
  .Select-value
  .Select-value-label,
body.light
  .has-value.is-pseudo-focused.Select--single
  > .Select-control
  .Select-value
  .Select-value-label {
  color: black;
}

body.light .Select-control,
body.light .Select-menu-outer,
body.light .DayPicker div,
body.light .CalendarMonth_table,
body.light .DateInput_input,
body.light .is-open > .Select-control {
  background-color: white;
}

body.light tr .CalendarDay {
  color: black;
  background-color: white;
  /* border: 1px solid black; */
}

body.light tr .CalendarDay:hover {
  background-color: grey;
  /* border: #272b30; */
}

body.light tr .CalendarDay__selected:hover {
  background-color: #00a699;
  /* border: #00a699; */
}

tr .CalendarDay {
  color: white;
  background-color: #272b30;
  border: 1px solid white;
}

tr .CalendarDay__blocked_out_of_range,
body.light tr .CalendarDay__blocked_out_of_range {
  color: red;
}

.Select-value {
  display: flex;
  align-items: center;
}

.card-container {
  display: grid;
  grid-template-columns: 33.3% 33.3% 33.3%;
  grid-template-rows: 50% 50%;
  row-gap: 10px;
  column-gap: 5px;
}

.control-div {
  display: flex;
  flex-wrap: wrap;
}

.dropdown-div {
  padding-right: 5px;
}

#layout-btn {
  background-color: #272b30;
  border: 1px solid white;
  color: white;
  width: 90px;
  border-radius: 5px;
}

#layout-btn:hover {
  background-color: #030404;
  cursor: pointer;
}

body.light #layout-btn {
  background-color: white;
  border: 1px solid black;
  color: black;
}

body.light #layout-btn:hover {
  background-color: #fff;
}

#data_source_switch:checked {
  background-color: #00aaff !important; /* Change the color when checked */
}

body.light #title-div {
  color: black;
}

body.light #metadata-div {
  color: black;
}

.basin-dropdown-wrapper {
  padding: 7px 0;
  width: 80%;
}

.m3w-notifier-text {
  margin: 0 15px 0 -15px;
  width: 140px;
  overflow-wrap: break-word;
  text-align: center;
}

.left-title {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

.app-title {
  text-align: center;
  flex: 1;
}

.theme-switch {
  display: flex;
  align-items: center;
  margin-top: 2px;
  margin-right: 30px;
}

#fig_swe_cc_elev .js-plotly-plot .modebar {
  left: 0 !important;
  right: auto !important;
  top: 0px !important;
}

#fig_swe_cc_elev .modebar-container {
  position: absolute;
  top: 0px !important;
  left: 0px !important;
  width: 100%;
}

@media (max-width: 1550px) {
  .control-div {
    display: flex;
    flex-direction: column;
  }

  .dropdown-div {
    padding-right: 0px;
    margin-bottom: 10px;
  }
}

@media (max-width: 1500px) {
  .card-container {
    grid-template-columns: 50% 50%;
    grid-template-rows: 33.3% 33.3% 33.3%;
    row-gap: 10px;
    column-gap: 5px;
  }
}

@media (max-width: 1000px) {
  .card-container {
    grid-template-columns: 100%;
    grid-template-rows: 16.6% 16.6% 16.6% 16.6% 16.6% 16.6%;
    row-gap: 10px;
  }

  .datetools-container {
    justify-content: center;
  }

  .step-controller {
    flex-wrap: wrap;
    justify-content: center;
  }

  .basin-dropdown-wrapper {
    flex: 3;
  }

  .m3w-notifier {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .m3w-notifier-text {
    flex: 1;
    margin: 0;
    padding: 0 5px;
  }
}

@media (max-width: 650px) {
  .basin-dropdown-wrapper {
    flex: 2;
  }

  .m3w-notifier {
    justify-content: end;
  }
}

@media (max-width: 500px) {
  .basin-dropdown-wrapper {
    flex: 1;
  }

  .left-title {
    font-size: 14px;
    padding: 10px;
  }

  .title-text {
    font-size: 20px;
  }

  #layout-btn {
    width: 80px;
    font-size: 14px;
  }
}
