/* Global Styles */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
  }

  header {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  header h1 {
    margin: 0;
    font-size: 2.5rem;
  }

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

  section {
    margin-bottom: 3rem;
  }

  h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.5rem;
  }

  /* Form Styles */
  form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }

  form div {
    margin-bottom: 1.5rem;
  }

  form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
  }

  form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }

  form input:focus {
    border-color: #2c3e50;
    outline: none;
  }

  form button {
    padding: 0.75rem 1.5rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
  }

  form button:hover {
    background-color: #34495e;
  }

  .checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
  }

  .checkbox-container input {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  .checkbox-container label {
    margin: 0;
    font-weight: normal;
  }

  #searchSubmit {
    margin-top: 20px;
  }

  .button-container {
    display: flex;
    width: 100%;
  }

  .title-container input,
  .author-container input,
  .year-container input {
    width: 98%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }

  /* Book List Styles */
  #incompleteBookList,
  #completeBookList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  [data-testid="bookItem"] {
    width: max-content;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  [data-testid="bookItem"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }

  [data-testid="bookItem"] h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #2c3e50;
  }

  [data-testid="bookItem"] p {
    margin: 0 0 0.75rem 0;
    color: #555;
  }

  [data-testid="bookItem"] button {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
  }

  [data-testid="bookItem"] button:hover {
    background-color: #34495e;
  }

  [data-testid="bookItem"] button[data-testid="bookItemDeleteButton"] {
    background-color: #e74c3c;
  }

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

  [data-testid="bookItem"] button[data-testid="bookItemEditButton"] {
    background-color: #3498db;
  }

  [data-testid="bookItem"] button[data-testid="bookItemEditButton"]:hover {
    background-color: #2980b9;
  }

  /* Searching Input Style */
  #searchBookTitle {
    width: 98%;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    #incompleteBookList,
    #completeBookList {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    form {
      padding: 1.5rem;
    }

    header h1 {
      font-size: 2rem;
    }

    h2 {
      font-size: 1.75rem;
    }

    .title-container input,
    .author-container input,
    .year-container input {
      width: 95%;
    }

    #searchBookTitle {
      width: 95%;
    }
  }