@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");
/* Colors:
Dark Blue: #04345c
Light Blue: #047cd8
*/
body {
  font-family: "Work Sans", sans-serif;
  background-color: #f2f8fd; /* subtle grayish-blue background */
  font-size: 16px; /* Set a default font size */
}
/* Hero Section */
.hero {
  background: url("../../static/img/cover.jpg") center/cover no-repeat;
  color: black;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 2;
}

/* Button Styling */
.btn-primary {
  background-color: #04345c;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
  background-color: #047cd8;
  transform: scale(1.05);
}

/* Featured Book */
.featured-book {
  border-radius: 10px;
  overflow: hidden;
  background: #f8f9fa;
}
.featured-book img {
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

/* Book Cards */
.book-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.book-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.book-card img {
  max-height: 250px;
  object-fit: cover;
}

/* Search Bar */
.search-bar input {
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 18px;
  transition: all 0.3s;
}
.search-bar input:focus {
  border: 2px solid #04345c;
  box-shadow: 0 0 10px rgba(4, 52, 92, 0.5);
}

/* Book Sections */
.book-section {
  margin: 50px 0;
}
.card {
  transition: transform 0.3s ease-in-out;
}
.card:hover {
  transform: scale(1.05);
}
.book-image {
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
}

.category-banner {
  background: linear-gradient(to right, #04345c, #0a4f8d);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

/* Book Cards */
.book-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.book-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.book-card img {
  max-height: 250px;
  object-fit: cover;
}

/* Search Bar */
.search-bar input {
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 18px;
  transition: all 0.3s;
}
.search-bar input:focus {
  border: 2px solid #04345c;
  box-shadow: 0 0 10px rgba(4, 52, 92, 0.5);
}

/* Book Detail Page */
.book-detail {
  padding: 40px 0;
}
.book-detail h1 {
  font-size: 2.5rem;
  color: #04345c;
}
.book-detail p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.book-detail .text-success {
  font-weight: bold;
}
.book-detail .btn {
  border-radius: 5px;
}
.book-detail img {
  max-height: 450px;
  object-fit: cover;
}
/* Auth Pages Background */
.auth-bg {
  background: linear-gradient(135deg, #87939d, #6c9fcc);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login & Register Card */
.auth-card {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  background: white;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Center the form */
.register-form {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

/* Input Fields */
.register-form .form-control {
  border-radius: 5px;
}

.login-form {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

/* Input Fields */
.login-form .form-control {
  border-radius: 5px;
}

/* Error Messages */
.alert-danger {
  font-size: 14px;
  padding: 10px;
}

/* Form Styling */
.create-book-form {
  max-width: 600px; /* Limit the width for the create book form */
  margin: auto; /* Center the form horizontally */
  padding: 20px;
}

/* Input Fields */
.create-book-form .form-control,
.form-select {
  border-radius: 5px;
}

/* Input Icons */
.create-book-form .input-group-text {
  background-color: #f8f9fa;
  border-right: none; /* Remove border right to keep it clean */
}

/* Buttons */
.create-book-form .btn {
  border-radius: 5px;
  padding: 10px 20px; /* Add padding for a better button appearance */
}

/* Spacing Between Fields */
.create-book-form .mb-3 {
  margin-bottom: 1.5rem;
}

/* Form Input Fields */
.create-book-form .form-label {
  font-weight: bold;
}

/* Adjust button width for create book page */
.create-book-form .btn-primary {
  width: 100%; /* Make button take up full width */
}

/* Optional: Add custom styles for file input */
.create-book-form #image {
  padding: 0.375rem 0.75rem;
}

/* Navbar Styling */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  font-size: 1.1rem;
  padding: 10px 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #047cd8; /* Change link color on hover */
  transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Cart Icon and Badge */
.navbar .nav-item .nav-link i {
  font-size: 1.5rem;
}

/* Cart Badge Styling */
#cart-count {
  font-size: 1.1rem; /* Increased font size */
  padding: 0.25rem 0.6rem; /* Adjusted padding */
  background-color: #ff4d4d; /* Red background for better visibility */
  color: white; /* White text color */
  font-weight: bold; /* Bold text for better visibility */
  border-radius: 50%; /* Circular badge */
  top: -5px;
  right: -5px; /* Adjust positioning to make sure it doesn't overlap the icon */
}

/* Hover Effect for Cart Icon */
.navbar .nav-item .nav-link:hover #cart-count {
  background-color: #ff1a1a; /* Slightly darker red on hover */
}

/* Login/Logout Buttons */
.navbar .nav-item .nav-link {
  font-size: 1.1rem;
  padding: 10px 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .nav-item .nav-link:hover {
  color: #047cd8; /* Hover color */
  transform: scale(1.05); /* Hover zoom effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
  }
}
.sidebar {
  height: 100vh;
  background-color: #04345c;
  color: #fff;
  padding-top: 20px;
}
.sidebar a {
  display: block;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
}
.sidebar a:hover {
  background-color: #495057;
}
.content {
  padding: 20px;
}

footer {
  bottom: 0;
}
