@import url("https://fonts.googleapis.com/css2?family=Raleway&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  font-family: Raleway, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  background: #5bbcff;
  padding: 16px;
  color: #000;
  border-bottom: 4px solid #000;
  font-weight: 700;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff6e9;
  min-height: 100vh;
}

.wrapper .container {
  width: 1024px;
  border-radius: 20px;
  margin: 16px;
  background: #8ccaf7;
  padding: 16px;
  flex-grow: 1;
  height: fit-content;
  border: 4px solid #000;
  box-shadow: 10px 10px 0 #000;
}

.item {
  border-radius: 16px;
  margin-top: 16px;
  padding: 12px 24px 12px 24px;
  background: #fff6e9;
  display: flex;
  align-items: center;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  transition: all 0.3s ease;
}

.item:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 #000;
}

.item > .inner h2 {
  margin-bottom: unset;
  color: #000;
}

.item > .inner p {
  margin-top: 5px;
  color: #333;
}

.form {
  display: flex;
  padding: 16px;
  flex-direction: column;
  height: 300px;
  border-radius: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.shadow {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 15px 40px rgba(0, 0, 0, 0.15);
}

input[type="text"],
input[type="date"] {
  font-family: Raleway, sans-serif;
  background: #fff6e9;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
  margin-bottom: 8px;
  font-size: 24px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus {
  outline: none;
  background: #fff;
  box-shadow: 5px 5px 0 #000;
}

.btn-submit {
  width: fit-content;
  font-family: Raleway, sans-serif;
  border-radius: 16px;
  padding: 12px 24px;
  border: 3px solid #000;
  background-color: #ce734c;
  color: #fff;
  font-size: 24px;
  margin-top: auto;
  align-self: flex-end;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 5px 5px 0 #000;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #5bbcff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 #000;
}

.btn-submit:active {
  transform: translateY(1px);
  box-shadow: 3px 3px 0 #000;
}

.btn-submit:focus {
  outline: none;
}

.text-center {
  text-align: center;
}

.form-title {
  margin: auto 0;
}

.check-button {
  width: 40px;
  height: 40px;
  background: url("../Assets/icon/check-outline.svg");
  background-size: contain;
  margin-left: auto;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.check-button:hover {
  background: url("../Assets/icon/check-solid.svg");
  background-size: contain;
  transform: scale(1.1);
}

.trash-button {
  width: 40px;
  height: 40px;
  background: url("../Assets/icon/trash-outline.svg");
  background-size: contain;
  margin-left: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.trash-button:hover {
  background: url("../Assets/icon/trash-fill.svg");
  background-size: contain;
  transform: scale(1.1);
}

.undo-button {
  width: 40px;
  height: 40px;
  background: url("../Assets/icon/undo-ouline.svg");
  background-size: contain;
  margin-left: auto;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.undo-button:hover {
  background: url("../Assets/icon/undo-ouline.svg");
  background-size: contain;
  transform: scale(1.1);
}

.check-button:focus,
.trash-button:focus,
.undo-button:focus {
  outline: none;
}

.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #ce734c;
  color: #fff;
  text-align: center;
  border-radius: 15px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  font-weight: 600;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

@media only screen and (max-width: 1024px) {
  .wrapper {
    margin: 0;
  }

  .wrapper .container {
    width: 100%;
    margin: 10px;
  }

  .list-item {
    width: 90%;
  }

  .form {
    width: 100%;
  }
}
