:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #38b000;
}

html {
    overflow-y: scroll; 
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;

    padding-right: 0 !important; 
    transition: padding-right 0.3s ease; 
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-search {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-icon-circle svg {
    width: 18px;
    height: 18px;
    color: var(--dark-color);
}

.search-icon-circle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-icon-circle {
        width: 36px;
        height: 36px;
    }
    
    .search-icon-circle svg {
        width: 16px;
        height: 16px;
    }
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-icon-circle svg {
    width: 18px;
    height: 18px;
    color: var(--dark-color);
}

.menu-icon-circle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .menu-icon-circle {
        width: 36px;
        height: 36px;
    }
    
    .menu-icon-circle svg {
        width: 16px;
        height: 16px;
    }
}

/* .navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
} */

.navbar-menu img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar-collapse {
    flex-grow: 0; 
}

.navbar > .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 8px;
    position: relative;
    padding: 8px 12px !important;
}
  
.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
  
.nav-link:hover:after {
    width: 100%;
}
  
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}
  
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}
  
.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}
  
.footer-links h5 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
  
.footer-links h5:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
}
  
.footer-links ul {
    list-style: none;
    padding: 0;
}
  
.footer-links li {
    margin-bottom: 10px;
}
  
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}
  
.footer-links a:hover {
    color: white;
    padding-left: 5px;
}
  
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}
  
.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}
  
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
} 
  
/* Animations */
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}
  
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}
  
@media (max-width: 992px) {
    .hero-section h1 {
      font-size: 2.8rem;
    }
}
  
@media (max-width: 768px) {
    .hero-section {
      height: auto;
      padding: 100px 0;
    }
    
    .hero-section h1 {
      font-size: 2.2rem;
    }
    
    .hero-section p {
      font-size: 1rem;
    }

    /* .navbar-brand img {
        height: 40px;
    } */

    .navbar-menu img {
        height: 40px;
    }
}

/* Results Page Styles */
.search-results-container {
    padding: 100px 0 60px;
    min-height: calc(100vh);
}

.search-bar-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    height: 50px;
    border-radius: 30px 0 0 30px;
    border-right: none;
    padding-left: 20px;
}

.search-form .btn {
    border-radius: 0 30px 30px 0;
    height: 50px;
}

#filterToggle {
    height: 50px;
    border-radius: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-count h4 {
    font-weight: 600;
}

/* Book Cards */
.book-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.book-cover-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.book-cover {
    width: auto;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.03);
}

.book-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-actions {
    opacity: 1;
}

.book-actions .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.book-meta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.book-meta .badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Pagination */
.pagination .page-item {
    margin: 0 6px;
}

.pagination .page-link {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #f1f3f5;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pagination .page-link:hover {
    background-color: rgba(67, 97, 238, 0.15);
    color: var(--primary-color);
    transform: scale(1.05);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}
