html, body {
  height: 100%;
  margin: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f4f7fb;
  color: #333;
}
/* NAVBAR CONTAINER */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background-color: #1f2a38;
  color: white;
}

/* LOGO (LEFT) */
.logo {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
}

/* NAV LINKS (CENTER) */
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;   
  align-items: center;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  cursor: pointer;
  font-weight: 500;
}

.nav-links li:hover {
  text-decoration: underline;
}

.nav-links .active {
  border-bottom: 2px solid #4cafef;
}

/* USER AREA (RIGHT) */
.user-area {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

/* LOGOUT BUTTON */
.logout-btn {
  background-color: #ff4d4f;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.logout-btn:hover {
  background-color: #e04344;
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px 50px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 16px;
  color: #666;
}

/* CARDS */
.cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
}

.card {
  background: white;
  padding: 25px;
  width: 280px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #666;
}

/* FOOTER */
footer {
  background: #1e2a3a;
  color: #ccc;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 14px;
}

/* PAGE */
.container {
  padding: 40px 60px;
}

.page-title {
  margin-bottom: 20px;
}

/* SEARCH */
.search-box {
  margin-bottom: 30px;
}

.search-box input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* BOOK GRID */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

/* BOOK CARD */
.book-card {
  background: white;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.book-card h3 {
  margin-bottom: 8px;
}

.book-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

/* BUTTON */
.primary-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background: #2d6cdf;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.primary-btn:hover {
  background: #1f57c3;
}

/* EMPTY */
.empty {
  color: #777;
  font-size: 16px;
}
/* AUTH BOX */
.auth-box {
  width: 360px;
  margin: 100px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  text-align: center;
}

.auth-box h2 {
  margin-bottom: 20px;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.auth-box input:focus {
  outline: none;
  border-color: #2d6cdf;
}

/* ROW */
.row {
  text-align: left;
  margin-bottom: 14px;
}

.checkbox {
  font-size: 14px;
}

/* SWITCH */
.switch {
  margin-top: 15px;
  font-size: 14px;
}

.switch a {
  color: #2d6cdf;
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.contact-card {
  background: #fff;
  width: 700px;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
}

.contact-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.info-box {
  background: #f8f9fc;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: background 0.3s;
}

.info-box:hover {
  background: #eef2ff;
}

.info-box a {
  text-decoration: none;
  color: #2d6cdf;
  font-size: 14px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #2d6cdf;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
/* UPLOAD PAGE */
.upload-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px 60px;
}

.upload-card {
  background: #ffffff;
  width: 520px;
  padding: 35px 40px;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.upload-card:hover {
  transform: translateY(-6px);
}

.upload-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.upload-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #2d6cdf;
}

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #555;
}

.upload-card .primary-btn {
  margin-top: 10px;
}
