* {
  box-sizing: border-box;
}

body {
  font-family: "Comfortaa", sans-serif;
  margin: 0;
  background-color: #f3f6fd;
  font-weight: 400;
}

.app {
  display: flex;
}

.logo {
  margin-bottom: 50px;
}

.panel {
  background-color: white;
  min-height: 250vh;
  padding: 30px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.menu__list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.menu__item {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  box-shadow: 0px 8px 14px 0px rgba(62, 107, 224, 0.12);
  background: rgba(255, 255, 255, 1);
  border: none;
  height: 45px;
  width: 46px;
  cursor: pointer;
  justify-content: center;
}

.menu__item:hover {
  background: #6a6afb;
}

.menu__item:hover img {
  filter: brightness(0) invert(1);
}

.menu__item-active {
  background: #5051f9;
}

.menu__item-active img {
  filter: brightness(0) invert(1);
}

.menu__add {
  display: flex;
  background: none;
  border: 1px solid rgba(202, 213, 255, 1);
  border-radius: 14px;
  height: 45px;
  width: 46px;
  cursor: pointer;
  justify-content: center;
}

.menu__add:hover {
  background: #eff2ff;
}

.menu__item-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.menu__delete {
  background: none;
  order: -1;
  border: 1px solid rgba(255, 94, 94, 0.3);
  border-radius: 8px;
  height: 28px;
  width: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu__delete:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.6);
}

.content {
  min-width: 900px;
  padding: 45px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 30px;
  line-height: 33px;
  color: rgba(0, 0, 0, 1);
}

h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 27px;
}

.progress {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 12px;
  min-width: 235px;
}

.progress__text {
  display: flex;
  justify-content: space-between;
}

.progress__name {
  font-size: 14px;
  line-height: 16px;
  color: rgba(35, 35, 96, 1);
}

.progress__percent {
  font-size: 12px;
  line-height: 13px;
  color: rgba(118, 131, 150, 1);
}

.progress__bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 5px;
  border-radius: 4px;
  background: rgba(230, 233, 237, 1);
}

.progress__cover-bar {
  position: absolute;
  transition: all 500ms;
  height: 5px;
  border-radius: 4px;
  background: rgba(80, 81, 249, 1);
}

main {
  margin-top: 30px;
}

.empty-state {
  margin-top: 80px;
  text-align: center;
  font-size: 20px;
  color: #768396;
  font-weight: 400;
  margin-bottom: 30px;
}

.empty-state_hidden {
  display: none;
}

.habit {
  display: flex;
  background: #ffffff;
  border-radius: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.habit__day {
  background: #fbfaff;
  border-radius: 10px 0 0 10px;
  border-right: 1px solid #e7ebfb;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  padding: 20px 40px;
  min-width: 130px;
}

.habit__comment {
  font-size: 14px;
  line-height: 16px;
  padding: 22px 24px;
}

.habit__delete {
  margin-left: auto;
  margin-right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  padding-top: 4px;
}

.habit__delete:hover {
  background: #eff2ff;
}

input {
  border: 1px solid rgba(231, 235, 251, 1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 1);
  padding: 12px 20px;
  font-family: "Comfortaa", sans-serif;
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
}

input::placeholder {
  color: #8899a8;
}

input.error {
  border: 1px solid rgb(251, 74, 74);
}

.input-comment {
  padding-left: 50px;
}

.input-icon__icon {
  position: absolute;
  top: 10px;
  padding-left: 20px;
}

.habit__form {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 0 14px 0 24px;
  position: relative;
}

.habit-add {
  background-color: rgba(237, 236, 254, 1);
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 14px;
  color: rgba(80, 81, 249, 1);
  padding: 14px 32px;
  cursor: pointer;
}

button:hover {
  background-color: rgb(203, 200, 255);
  color: rgb(255, 255, 255);
}

.cover {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover_hidden {
  display: none;
}

/* popup */
.popup {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 1);
  max-width: 600px;
  width: 100%;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup__close {
  position: absolute;
  right: 15px;
  top: 15px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.icon-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: rgba(118, 131, 150, 1);
  margin-bottom: 10px;
}

.icon-select {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.icon {
  border: 1px solid rgba(80, 81, 249, 1);
  border-radius: 14px;
  box-shadow: 0px 8px 14px 0px rgba(62, 107, 224, 0.12);
  background: white;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon_active {
  background: #5051f9;
}

.icon:hover {
  background: #5051f9;
}

.icon:hover img {
  filter: brightness(0) invert(1);
}

.icon_active img {
  filter: brightness(0) invert(1);
}

.popup__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.popup__form input {
  width: 100%;
}

.target {
  margin-bottom: 18px;
}
