/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
.header {
  background-color: #1a73e8;
  color: white;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 50px;
  margin-right: 15px;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
  flex: 1;
  margin-left: 10px;
}

.navbar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* MAIN CONTAINER */
.catalogue-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.catalogue-container h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #1a1a1a;
}

/* BOOK SECTION */
.book-section {
  margin-bottom: 50px;
}

.book-section h3 {
  font-size: 22px;
  color: #1a73e8;
  margin-bottom: 15px;
  border-bottom: 2px solid #1a73e8;
  display: inline-block;
  padding-bottom: 5px;
}

/* BOOK TABLE */
.book-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.book-table th,
.book-table td {
  border: 1px solid #e2e6ea;
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
}

.book-table th {
  background-color: #1a73e8;
  color: white;
  font-weight: 600;
}

.book-table tr:nth-child(even) {
  background-color: #f5f9ff;
}

.book-table tr:hover {
  background-color: #eef3fa;
}

/* BOOK COVER */
.book-cover {
  width: 80px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* BUTTON STYLES */
button {
  padding: 8px 14px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0c54b8;
}

/* FOOTER */
.footer {
  background-color: #1a73e8;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 14px;
}

/* SIDEBAR (if used) */
.sidebar {
  background-color: #e8f0fe;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.sidebar h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin: 8px 0;
}

.sidebar a {
  text-decoration: none;
  color: #1a73e8;
  font-weight: 500;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* FORM STYLES */
form {
  background-color: white;
  padding: 25px;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

form input[type="submit"],
form input[type="reset"] {
  padding: 10px 16px;
  font-size: 14px;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 10px;
}

form input[type="submit"]:hover,
form input[type="reset"]:hover {
  background-color: #0c54b8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header, .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-cover {
    width: 60px;
  }

  .book-table th, .book-table td {
    font-size: 14px;
    padding: 10px;
  }

  .catalogue-container h2 {
    font-size: 22px;
  }
}
