/* Style.css untuk tampilan perpustakaan */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f4f6f9;
  color: #222;
}

/* NAVBAR */
.navbar {
  width: 100%;
  padding: 15px 30px;
  background: #0d6efd;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
}

.navbar-right a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 16px;
}

/* TITLE */
.section-title {
  font-size: 26px;
  margin: 24px 0 12px 0;
  font-weight: 600;
  padding-left: 0;
}

/* GRID BUKU */
.book-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.book-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding-bottom: 15px;
  overflow: hidden;
  transition: 0.3s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.book-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.book-info {
  padding: 10px 15px;
}

.book-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.book-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 3px;
}

/* BUTTON */
.btn-pinjam {
  width: 90%;
  margin: 10px auto 0;
  display: block;
  padding: 8px 0;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 15px;
  font-weight: 500;
}

.btn-pinjam:hover {
  background: #0a58ca;
}

/* BAGIAN BUKU DIPINJAM */
.borrow-section {
  margin: 30px 20px;
}

.borrow-box {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: #666;
  font-size: 14px;
}

/* Header layout: brand left, login/register right */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 10px;
}

.brand { text-align: left; }
.brand .navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2px;
}
.brand .text-muted {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
}

/* actions on the right (login / daftar) */
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* generic button styles used in header */
.nav-actions .btn {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-block;
}

/* primary / warning colors consistent with theme */
.nav-actions .btn-primary {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 4px 10px rgba(13,110,253,0.12);
}
.nav-actions .btn-warning {
  background: #ffb020;
  color: #111;
  box-shadow: 0 4px 10px rgba(255,176,32,0.08);
}

/* layout: samakan container dengan header so content aligns with brand */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 10px; /* horizontal padding matches header internal spacing */
}

/* hero card (main welcome area) */
.hero {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(13,24,40,0.06);
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

/* ensure section titles use the container alignment (remove left offset) */
.section-title {
  font-size: 26px;
  margin: 24px 0 12px 0;
  font-weight: 600;
  padding-left: 0;
}

/* small screens: stack hero content vertically */
@media (max-width: 900px) {
  .hero { flex-direction: column; }
}

/* responsive: stack on small screens */
@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-actions {
    justify-content: flex-end;
  }
}

/* Footer - warna disamakan dengan header */
.site-footer {
  background: #0d6efd; /* samakan dengan .navbar */
  color: #fff;
  padding: 20px 0;
  margin-top: 36px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 -2px 8px rgba(13,110,253,0.06);
}
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-links nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links nav a {
  color: #fff; /* pastikan tautan putih seperti header */
  text-decoration: none;
  font-weight: 600;
}
.footer-links nav a:hover { text-decoration: underline; opacity: 0.95; }
.footer-copy {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  padding-top: 6px;
}
/* responsive */
@media (max-width:640px){
  .footer-links nav { gap: 14px; }
  .site-footer { padding: 18px 0; }
}
