* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #f3f4f6;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.card {
  background: #ffffff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

h2 {
  margin-bottom: 1rem;
  color: #1a202c;
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

input {
  padding: 0.75rem;
  flex: 1 1 200px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}

input:focus {
  border-color: #4f46e5;
  outline: none;
}

button {
  padding: 0.75rem 1rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #4338ca;
}

.book-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  transition: transform 0.2s;
}

.book-card:hover {
  transform: scale(1.01);
  background-color: #f0f4ff;
}

.book-list {
  margin-top: 1rem;
}

.book-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.book-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 5px solid #4f46e5;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: #f8faff;
}

.book-card strong {
  color: #1f2937;
}

.book-meta {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0.25rem 0;
}

.book-meta span {
  display: block;
  margin-top: 4px;
}
