/* ---------- GLOBAL ---------- */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
  color: #333;
}

/* ---------- HEADER ---------- */
.header {
  background: linear-gradient(90deg, #0077b6, #00b4d8);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
}

.header h1 {
  font-size: 1.5rem;
}

.header nav a {
  color:black;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.3s;
}

.header nav a:hover,
.header nav a.active {
  color: #0077b6;
}

.login-btn {
  background: #fff;
  color: #0077b6;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
}

/* ---------- CONTROLS ---------- */
.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  flex-wrap: wrap;
}

.controls input,
.controls select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-width: 200px;
  outline: none;
}

/* ---------- BOOK GRID ---------- */
.bookshelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.book-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.book-card:hover {
  transform: scale(1.03);
}

.book-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.book-info {
  padding: 15px;
  background: #f1faff;
}

.book-info h3 {
  color: #0077b6;
  margin: 5px 0;
}

.book-info p {
  margin: 3px 0;
}

.book-price {
  color: #2e8b57;
  font-weight: bold;
}

/* ---------- ABOUT PAGE ---------- */
.about {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about h2 {
  color: #0077b6;
}

/* ---------- LOGIN PAGE ---------- */
.login-section {
  max-width: 400px;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-section h2 {
  color: #0077b6;
}

.login-section input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.login-section button {
  background: #0077b6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.login-section button:hover {
  background: #00b4d8;
}

.note {
  font-size: 13px;
  color: #555;
  margin-top: 10px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0077b6;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 40px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
  }

  .header nav {
    margin-top: 10px;
  }
}
