* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
}

header {
  background: linear-gradient(rgba(0, 82, 155, 0.9), rgba(0, 82, 155, 0.8)),
    url('../images/photo-1507842217343-583bb7270b66.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 0 0 50% 50% / 20px;
}

header button {
  background-color: #39a9cb;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

header button:hover {
  background-color: #ffc107;
}

header button a {
  color: white;
  text-decoration: none;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #00529B;
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

input[type="text"],
input[type="number"] {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
}

button {
  background-color: #00529B;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #003a6d;
}

#formInputBook {
  display: none;
}

#incompleteBookList,
#completeBookList {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 10px;
}

[data-testid="bookItem"] {
  background: #f8f9fa;
  flex: 1 0 calc(50% - 1.5rem);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #eee;
}

[data-testid="bookItemTitle"] {
  color: #00529B;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

[data-testid="bookItem"] p {
  color: #666;
  margin-bottom: 0.5rem;
}

[data-testid="bookItem"] div {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 1rem;
}

[data-testid="bookItemIsCompleteButton"] {
  background-color: #28a745;
}

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

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

[data-testid="bookItemEditButton"]:hover {
  color: white;
}

.checkForm {
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  justify-content: start;
  align-items: center;
}

.checkForm input {
  margin-bottom: 5px;
}

#incompleteBookList::-webkit-scrollbar,
#completeBookList::-webkit-scrollbar {
  width: 8px;
}

#incompleteBookList::-webkit-scrollbar-thumb,
#completeBookList::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 4px;
}

#incompleteBookList::-webkit-scrollbar-track,
#completeBookList::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#incompleteBookList::-webkit-scrollbar-thumb:hover,
#completeBookList::-webkit-scrollbar-thumb:hover {
  background-color: #0056b3;
}

#rackBooks {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

#rackBooks>* {
  flex: 1;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  header {
    border-radius: 0 0 25% 25% / 10px;
  }

  #rackBooks {
    flex-direction: column;
  }

  [data-testid="bookItem"] div {
    flex-direction: column;
  }
}