$shadow: #0000001f;
$border: #b3c5d6;

.alarms-list::-webkit-scrollbar, .edit-container::-webkit-scrollbar {
  width: 12px;
}
.alarms-list::-webkit-scrollbar-thumb, .edit-container::-webkit-scrollbar {
  background-color: #d5d6ff;
  border-radius: 8px;
}

html, body, #root {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  margin: 0;
  overflow: hidden;
}

#root {
  overflow: hidden;
}

div {
  display: flex;
}

.padding {
  padding: 10px 15px;
}

.padding-controls {
  padding: 15px 15px;
}

.btn, .btn-padding, .alarm-container {
  cursor: pointer;
}

.btn {
  width: 35px;
  height: 35px;
  margin-right: 5px;
  border-radius: 5px;

  &.delete-alarm {
    background-size: 22px;
  }
  &.process-all-alarms {
    background-size: 26px;
  }
}

.btn, .img-alarm-type, .alarm-handler__btn-img {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}

.btn-padding {
  padding: 10px 20px;
  margin-right: 15px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 7px $shadow;
  font-weight: 500;
}

.btn, .alarm-handler__btn, .btn-padding, .edit__btn {
  &:active, &.active {
    box-shadow: inset 0 3px 5px $shadow;
    transition: ease .15s;
  }
}

.btn {
  &:active, &.active {
    transform: scale(0.9);
  }
}

.btn-padding, .edit__btn {
  &:active, &.active {
    transform: scale(0.95);
  }
}

.alarm-handler__btn {
  cursor: pointer;
  position: relative;
  border-radius: 0 8px 8px 0;

  &.pause {
    background: orange;
  }
  &.enable {
    background: #2eb32e;
  }
  &.reset {
    background: #ff3e3e;
  }
}

.alarm-handler__btn-img {
  pointer-events: none;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}

.btn-last {
  margin-right: 0;
}

.alarms-container, .edit-container, .alarms-list, .alarm-container,
.alarm-countdown-description {
  flex-direction: column;
}

.alarms-container, .alarm-select-container, .alarms-modification-controls {
  flex-grow: 1;
}

.edit-container {
  background: linear-gradient(#f9f9fd, #f1f3ff);
  overflow-y: auto;
}

.alarms-controls {
  align-items: center;
  background: #f9f9fd;
  height: 55px;
  user-select: none;
}

.alarms-list {
  padding-top: 10px;
  overflow-y: auto;
}

.alarm-container {
  min-height: fit-content;
  margin: 12px;
  margin-top: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px $shadow;
  border: 1px solid #ddddff;
  border-bottom: none;
  min-width: 270px;
  width: auto;
  transition: ease .15s;
  &.active {
    box-shadow: inset 0 3px 5px $shadow;
    transform: scale(0.99);
  }
}

.alarm-main-block {
  flex-grow: 1;
  border-bottom: 1px solid #ddddff;
  border-radius: inherit;
}

.alarm-repeat {
  padding: 4px 5px 5px 12px;
  border-bottom: 1px solid #ddddff;
  border-radius: inherit;
  color: #6b6b6b;
}

.alarm-type {
  border-bottom: 1px solid $border;
  margin-bottom: 5px;
  flex-wrap: wrap;
  &>div {
    &.active {
      cursor: default;
      box-shadow: inset 0 3px 5px $shadow;
    }
  }
}

.settings-footer {
  justify-content: flex-end;
}

.alarm-countdown, .alarm-description {
  justify-content: center;
}

.alarm-countdown-description {
  flex-grow: 1;
}

.alarm-countdown {
  justify-content: flex-start;
  padding: 4px 6px;
  border-left: 1px solid $border;
  border-bottom: 1px solid #b3c5d6;
}

.alarm-countdown-child {
  margin-right: 10px;
}

.alarm-description {
  justify-content: flex-start;
  align-items: center;
  flex-grow: 1;
  border-left: 1px solid $border;
  word-break: break-all;
  padding: 4px 5px 4px 6px;
}
