@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  line-height: 1.6;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

.header {
  background-color: #4da1a9;
  color: #f5f5f5;
  text-align: center;
  padding: 0.6rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header > h1 {
  margin: 0;
  font-size: 2rem;
}

main {
  max-width: 800px;
  margin: 6rem auto;
  padding: 1rem;
}

.book_input {
  margin-bottom: 2rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.book_input > h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #4da1a9;
  text-align: center;
}

.book_input > form {
  display: flex;
  flex-direction: column;
}

.book_input > form > button {
  background-color: #4da1a9;
  color: #f5f5f5;
  border: none;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.book_input > form > button:hover {
  background-color: #72baa9;
  transform: scale(1.03);
}

.book_input > form > button > span {
  font-weight: bold;
}

.input {
  margin-bottom: 1rem;
}

.input > label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #4da1a9;
}

.input > input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.input_check {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: #4da1a9;
  gap: 0.5rem;
}

.input_check > label {
  font-weight: bold;
}

.input_check > input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #4da1a9;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: transform 0.2s, border-color 0.2s;
}

.input_check > input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.input_check > input[type="checkbox"]:checked {
  border-color: #72baa9;
}

.book_search {
  margin-bottom: 2rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.book_search > h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #4da1a9;
  text-align: center;
}

.book_search > form {
  display: flex;
  flex-direction: column;
}

.search {
  margin-bottom: 1rem;
}

.book_search > form > button {
  background-color: #4da1a9;
  color: #f5f5f5;
  border: none;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.book_search > form > button:hover {
  background-color: #72baa9;
  transform: scale(1.03);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search > label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #4da1a9;
}

.search > .search-icon {
  position: absolute;
  left: 10px;
  color: #aaa;
  font-size: 18px;
}

.search > input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
}

.book_shelf {
  margin-bottom: 2rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.book_shelf > h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #4da1a9;
}

.unused {
  display: none;
}

.book_list {
  margin-top: 1rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.book_list > div {
  border: 1px solid #ddd;
  border-radius: 20px;
  margin-bottom: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.book_list > div > h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.book_list > div > p {
  margin-bottom: 0.5rem;
  color: #555;
}

[data-testid="bookItemEditButton"],
[data-testid="bookItemIsCompleteButton"],
[data-testid="bookItemDeleteButton"] {
  color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.75rem;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  box-sizing: border-box;
}

[data-testid="bookItemEditButton"] {
  background-color: #fac67a;
}

[data-testid="bookItemEditButton"]:hover {
  background-color: #d39d55;
  transform: scale(1.05);
}

[data-testid="bookItemIsCompleteButton"] {
  background-color: #118b50;
}

[data-testid="bookItemIsCompleteButton"]:hover {
  background-color: #5db996;
  transform: scale(1.05);
}

[data-testid="bookItemDeleteButton"] {
  background-color: #fb4141;
}

[data-testid="bookItemDeleteButton"]:hover {
  background-color: #8d0b41;
  transform: scale(1.05);
}

footer {
  background-color: #4da1a9;
  color: #f5f5f5;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .book_list > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  [data-testid="bookItemEditButton"],
  [data-testid="bookItemIsCompleteButton"],
  [data-testid="bookItemDeleteButton"] {
    margin: 0.5rem 0;
    width: 100%;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.8rem 0;
  }
}
