@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #025E76;
    --primary-hover: #014759;
    --primary-light: #e6f4f8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(2, 94, 118, 0.08);
    --shadow-lg: 0 16px 32px rgba(2, 94, 118, 0.14);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.custom-navbar {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(2, 94, 118, 0.08);
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.btn-brand {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.4rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 94, 118, 0.3);
}

.hero-section {
    background: linear-gradient(135deg, #025E76 0%, #002D3A 100%);
    position: relative;
    padding: 90px 0 110px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(2, 94, 118, 0) 70%);
    border-radius: 50%;
}

.hero-title {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-weight: 400;
    color: #cbd5e1;
    font-size: 1.15rem;
}

.search-box-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 720px;
    margin: 0 auto;
}

.search-box-wrap input {
    border: none;
    box-shadow: none !important;
    font-size: 1rem;
    padding-left: 15px;
}

.btn-search {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 30px;
    border: none;
    transition: all 0.2s ease;
}

.btn-search:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
}

.tag-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.stats-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.stat-number {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.section-header h2 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.category-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: #ffffff;
}

.book-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.book-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.book-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-card:hover .book-img-wrapper img {
    transform: scale(1.06);
}

.book-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.book-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.bg-status-available {
    background: #dcfce7;
    color: #15803d;
}

.bg-status-borrowed {
    background: #fee2e2;
    color: #b91c1c;
}

.book-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 4px;
    line-height: 1.35;
}

.book-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rating-stars {
    color: var(--accent);
    font-size: 0.85rem;
}

.rating-score {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-left: 4px;
}

.filter-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.feature-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.announcement-card {
    background: #ffffff;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.main-footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 1px solid #1e293b;
}

.footer-brand {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.4rem;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: #ffffff;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1080;
}
