/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 76px;
}

/* Navigation */
.navbar {
    background-color: white !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

/* Navbar button spacing */
.navbar .btn + .btn {
    margin-left: 0.5rem;
}

/* Optionally, ensure the navbar button group is flex for gap to work */
.navbar .d-flex.align-items-center {
    gap: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0 5rem 0;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    min-height: 60vh;
}
.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.hero-section .row {
    width: 100%;
    align-items: center;
    min-height: 350px;
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}
.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #444;
}
.hero-section .d-flex.gap-3 {
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.hero-section img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 0 2rem 0;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section img {
        max-height: 220px;
    }
}
@media (max-width: 768px) {
    .hero-section .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-section .row {
        flex-direction: column;
        min-height: unset;
    }
    .hero-section img {
        margin-top: 2rem;
        margin-bottom: 0;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
}

/* Forms */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: #4F8EF7;
    box-shadow: 0 0 0 0.2rem rgba(79, 142, 247, 0.25);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
}

.auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(44, 62, 80, 0.10), 0 1.5px 6px rgba(44, 62, 80, 0.06);
    padding: 2.5rem 2.25rem 2rem 2.25rem;
    max-width: 400px;
    width: 100%;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #222;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #f4f7fb;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #2563eb;
    background: #fff;
    outline: none;
}

.btn-primary {
    background: #2563eb;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s;
}

.btn-primary:hover, .btn-primary:focus {
    background: #1746a2;
}

.navbar .btn-outline-primary {
    border: none;
    background: transparent;
    color: #2563eb;
    box-shadow: none;
}

.navbar .btn-outline-primary:hover,
.navbar .btn-outline-primary:focus {
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: none;
}

.navbar .btn-primary {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-weight: 600;
}

.auth-links {
    margin-top: 0.5rem;
    text-align: left;
}

.auth-links p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.auth-links a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.alert {
    border-radius: 8px;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 1.5rem 0.75rem 1.25rem 0.75rem;
        max-width: 98vw;
    }
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: white;
}

.footer h5, .footer h6 {
    color: #343a40;
}

.footer a {
    text-decoration: none;
}

.social-links a {
    font-size: 1.2rem;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 2rem;
    color: #4F8EF7;
}

/* Book Cards */
.book-card {
    position: relative;
    overflow: hidden;
}

.book-card img {
    transition: transform 0.3s ease;
}

.book-card:hover img {
    transform: scale(1.05);
}

.book-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d7bd9;
}

.register-page .auth-container {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    display: flex;
}
.register-page .auth-card {
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    margin: 0;
}
@media (max-width: 600px) {
    .register-page .auth-card {
        padding: 1.5rem 1rem 1.25rem 1rem;
    }
}

.navbar .nav-link.active {
    color: #2563eb !important;
    font-weight: 700;
    border-bottom: 2.5px solid #2563eb;
    background: transparent;
}

/* Enhanced Hero Section Buttons */
.hero-section .btn {
    min-width: 180px;
    transition: transform 0.1s, box-shadow 0.1s;
}
.hero-section .btn:active {
    transform: scale(0.98);
}
.hero-section .btn-primary {
    background: #2563eb;
    border: none;
}
.hero-section .btn-outline-primary {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: #fff;
}
.hero-section .btn-outline-primary:hover {
    background: #2563eb;
    color: #fff;
} 