html, body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

main {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 100%;
}

header {
  background-color: #1f1b24;
  color: #bb86fc;
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
}

span {
  color: #03dac6;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wrapperAddBook {
  flex-wrap: wrap;
}

.textButtonSubmit {
  color: #03dac6;
}

.searchBook {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
  max-width: 100%;
  overflow-x: hidden;
}

.searchBook h2 {
  margin-bottom: 1rem;
  color: #bb86fc;
  font-size: 1.5rem;
}

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

input[type="text"],
input[type="number"],
input[type="search"] {
  padding: 1rem;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #292929;
  color: #e0e0e0;
  width: 100%;
  max-width: 100%;
}

button {
  background-color: #521885;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
}

button:hover {
  background-color: #a16be0;
  transform: scale(1.05);
}

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

label {
  font-size: 0.9rem;
  color: #b0b0b0;
}

.wrapperBook {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 100%;
}

.wrapperBook section {
  flex: 1;
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: hidden;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #bb86fc;
}

#incompleteBookList,
#completeBookList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-testid="bookItem"] {
  background-color: #292929;
  padding: 1.2rem;
  border: 1px solid #444;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

[data-testid="bookItem"] h3 {
  font-size: 1.2rem;
  color: #e0e0e0;
}

[data-testid="bookItem"] p {
  font-size: 0.9rem;
  color: #b0b0b0;
}

[data-testid="bookItem"] div {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

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

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

[data-testid="bookItem"] button {
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .wrapperBook {
    flex-direction: row;
  }

  main {
    padding: 4rem;
  }
}

@media (max-width: 768px) {
  .wrapperBook {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 1.5rem;
    margin-right: 45px;
  }

  #bookForm {
    flex-wrap: wrap;
    width: 90%;

  }

  main {
    padding: 2rem;
  }

  header h1 {
    font-size: 1.8rem;
    margin-right: 45px;
  }

  .searchBook h2 {
    font-size: 1.3rem;
  }

  button {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
}

::-webkit-scrollbar {
  height: 8px;
  width: 12px;
  background: #2c2c2c;
}

::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

::-webkit-scrollbar-corner {
  background: #2c2c2c;
}
