* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active-nav { /* New style for active link */
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.hero-small { /* Smaller hero for the Catalog page */
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #3730a3;
    transform: scale(1.05);
}

.main-content {
    background: white;
    border-radius: 20px 20px 0 0;
    margin-top: 2rem;
    min-height: 80vh;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
    text-align: center;
}

.placeholder-text {
    text-align: center;
    color: #6b7280;
    padding: 50px 0;
    font-style: italic;
    font-size: 1.1rem;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.book-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.book-cover {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    
    
    background-size: cover !important; 
    background-repeat: no-repeat !important; 
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.book-author {
    color: #6b7280;
    margin-bottom: 1rem;
}

.book-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-available {
    background: #dcfce7;
    color: #166534;
}

.status-borrowed {
    background: #fef3c7;
    color: #92400e;
}

.status-reserved {
    background: #dbeafe;
    color: #1e40af;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.category-chip {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-chip:hover,
.category-chip.active {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.9;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.close:hover {
    color: #1f2937;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

.footer {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    padding: 3rem 0;
    margin-top: -20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #e0e7ff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.social-links a {
    display: block;
    margin-bottom: 0.7rem;
    width: fit-content;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.social-links a:hover {
    border-left-color: white;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .categories {
        flex-wrap: nowrap;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    .footer-section:first-child {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
    .footer-brand .logo {
        text-align: center;
    }
    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.about-page-content {
    padding: 0 50px; /* Gives some horizontal spacing */
}

.story-section, .mission-section, .contact-cta {
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.story-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    max-width: 900px;
    margin: 1.5rem auto;
    text-align: center;
}

.story-section .section-title,
.contact-cta .section-title {
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #4f46e5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.value-card h3 {
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: #6b7280;
}

.contact-cta {
    text-align: center;
    border-bottom: none;
}

.contact-cta p {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 700px;
    margin: 1rem auto 2rem;
}

@media (max-width: 768px) {
    .about-page-content {
        padding: 0 15px;
    }
    .story-section p {
        text-align: left;
        margin: 1.5rem 0;
    }
}