/* ============================================ */
/* E-LIBRARY - COMPLETE STYLESHEET (BLUE THEME) */
/* ============================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --accent-color: #6366f1;
    --accent-light: #e0e7ff;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

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

body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ============================================ */
/* NAVBAR                                      */
/* ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0 !important;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.btn-nav-login {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 10px 24px !important;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* ============================================ */
/* HERO SECTION                                */
/* ============================================ */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 30%, #dbeafe 100%);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(59, 130, 246, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 30% 70%,
            rgba(99, 102, 241, 0.05) 0%,
            transparent 50%
        );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1),
        rgba(99, 102, 241, 0.1)
    );
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(59, 130, 246, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    color: #64748b;
    font-size: 1.15rem;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 500px;
}

.search-form-wrapper {
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.08);
    position: relative;
    overflow: hidden;
}

.search-form-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.search-form .form-control,
.search-form .form-select {
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    padding: 14px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
    background: white;
}

.search-form .input-group-text {
    background: #fafafa;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 14px 0 0 14px;
    padding: 14px 16px;
    color: #94a3b8;
}

.search-form .input-group .form-control {
    border-left: none;
    border-radius: 0 14px 14px 0;
}

.search-form .input-group:focus-within .form-control,
.search-form .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background: white;
}

.btn-search {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35);
    color: white;
}

.floating-book {
    position: absolute;
    animation: floatBook 6s ease-in-out infinite;
    font-size: 2rem;
    color: rgba(59, 130, 246, 0.3);
}

.floating-book:nth-child(1) {
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}
.floating-book:nth-child(2) {
    top: 30%;
    right: 35%;
    animation-delay: 1.5s;
    font-size: 1.5rem;
}
.floating-book:nth-child(3) {
    top: 50%;
    right: 25%;
    animation-delay: 3s;
    font-size: 3rem;
}
.floating-book:nth-child(4) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
    font-size: 1.8rem;
}
.floating-book:nth-child(5) {
    top: 60%;
    right: 15%;
    animation-delay: 4s;
    font-size: 2.2rem;
}

@keyframes floatBook {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) rotate(2deg);
    }
}

/* ============================================ */
/* NETFLIX STYLE SECTIONS                      */
/* ============================================ */
.netflix-section {
    padding: 40px 0;
    position: relative;
}

.netflix-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 calc((100vw - 100%) / 2 + 10px);
}

.section-icon {
    font-size: 2rem;
    margin-right: 10px;
}

.section-title {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.section-subtitle {
    color: #64748b;
    font-weight: 400;
    font-size: 0.9rem;
    margin-top: 3px;
}

.section-nav-arrows {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.nav-arrow:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Scroll Container */
.scroll-container-wrapper {
    position: relative;
    padding: 0 calc((100vw - 100%) / 2);
}

.scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 10px 25px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.scroll-container:active {
    cursor: grabbing;
}
.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Book Cards Netflix Style */
.book-card-netflix {
    flex: 0 0 auto;
    width: 200px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
}

.book-card-netflix:hover {
    transform: scale(1.08);
    z-index: 10;
}

.book-poster {
    position: relative;
    width: 200px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.book-card-netflix:hover .book-poster {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
}

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

.book-card-netflix:hover .book-poster img {
    transform: scale(1.1);
}

.book-poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.book-card-netflix:hover .book-poster-overlay {
    transform: translateY(0);
}

.book-poster-overlay .book-title-small {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.book-poster-overlay .book-author-small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.book-rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.book-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.book-rank {
    position: absolute;
    bottom: 5px;
    left: 10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(59, 130, 246, 0.2);
    z-index: 1;
    line-height: 1;
}

/* Category Pills */
.category-pills-wrapper {
    padding: 0 calc((100vw - 100%) / 2 + 10px);
    margin-bottom: 25px;
}

.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-pill {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #64748b;
    font-family: inherit;
}

.category-pill.active,
.category-pill:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

/* Stats Banner */
.stats-banner {
    background: var(--primary-gradient);
    padding: 40px 0;
    color: white;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
}
.stat-label-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #eff6ff, #e0e7ff, #eff6ff);
    padding: 60px 0;
}

.cta-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 40px 0 20px;
}

.footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
}
.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--primary-color);
}

/* ============================================ */
/* LOGIN PAGE                                  */
/* ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #eff6ff 0%,
        #dbeafe 30%,
        #e0e7ff 70%,
        #ffffff 100%
    );
    position: relative;
    overflow: hidden;
}

.login-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-shape {
    position: absolute;
    border-radius: 50%;
}
.login-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.05);
    top: -100px;
    right: -100px;
}
.login-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.05);
    bottom: -50px;
    left: -50px;
}
.login-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    background: rgba(59, 130, 246, 0.03);
    top: 50%;
    left: 10%;
}

.login-card {
    background: white;
    border-radius: 28px;
    padding: 40px 35px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(59, 130, 246, 0.06);
}

.login-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

.login-card .form-control {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 14px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.login-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.08);
    background: white;
}

.login-card .input-group-text {
    background: #fafafa;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #94a3b8;
}

.login-card .input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.btn-login {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-weight: 700;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
    color: white;
}

/* ============================================ */
/* DASHBOARD                                   */
/* ============================================ */
.dashboard-body {
    background: #f8fafc;
}

/* Sidebar */
.sidebar {
    background: white;
    min-height: 100vh;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.04);
    position: fixed;
    width: 270px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 25px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-brand h4 {
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.sidebar-menu {
    padding: 20px 15px;
    flex: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
    transform: translateX(5px);
}

.sidebar-menu a i {
    width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Main Content */
.main-content {
    margin-left: 270px;
    min-height: 100vh;
    background: #f8fafc;
}

.dashboard-topbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 998;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #64748b;
}

.topbar-icon-btn:hover {
    background: #eff6ff;
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    color: white;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.dashboard-content {
    padding: 30px;
}

/* Stat Cards Dashboard */
.stat-card-dashboard {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.1);
}

.stat-card-dashboard::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
}

.stat-card-dashboard.blue::before {
    background: var(--primary-color);
}
.stat-card-dashboard.indigo::before {
    background: var(--accent-color);
}
.stat-card-dashboard.cyan::before {
    background: #06b6d4;
}
.stat-card-dashboard.purple::before {
    background: #8b5cf6;
}

.stat-icon-dashboard {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.stat-icon-dashboard.blue {
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    color: #2563eb;
}
.stat-icon-dashboard.indigo {
    background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
    color: #4f46e5;
}
.stat-icon-dashboard.cyan {
    background: linear-gradient(135deg, #a5f3fc, #67e8f9);
    color: #0891b2;
}
.stat-icon-dashboard.purple {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #7c3aed;
}

.stat-value-dashboard {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label-dashboard {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}
.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}
.stat-change.positive {
    color: #059669;
}
.stat-change.negative {
    color: #dc2626;
}

/* Chart Card */
.chart-card-dashboard {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    height: 100%;
}

.card-header-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title-dashboard {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0;
}

/* Chart Container - FIXED HEIGHT */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
    max-height: 300px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 300px !important;
}

/* History */
.history-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
}

.history-item:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.history-icon.borrow {
    background: #dbeafe;
    color: #2563eb;
}
.history-icon.return {
    background: #d1fae5;
    color: #059669;
}
.history-icon.late {
    background: #fee2e2;
    color: #dc2626;
}

.history-content strong {
    font-size: 0.85rem;
}
.history-content small {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Book Scroll Dashboard */
.book-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.book-scroll-container::-webkit-scrollbar {
    display: none;
}

.book-card-mini {
    flex: 0 0 auto;
    width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-card-mini:hover {
    transform: translateY(-8px);
}

.book-cover-mini {
    width: 140px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.book-cover-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-title-mini {
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author-mini {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
}

/* Table */
.table-card-dashboard {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-top: 30px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px !important;
    border: 2px solid #e2e8f0 !important;
    padding: 10px 18px !important;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 10px !important;
    border: 2px solid #e2e8f0 !important;
    padding: 8px 12px !important;
}

table.dataTable thead th {
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    border-bottom: 2px solid #bfdbfe !important;
    padding: 15px !important;
}

table.dataTable tbody td {
    padding: 12px 15px !important;
    vertical-align: middle;
}

.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.78rem;
}
.badge-dipinjam {
    background: #dbeafe;
    color: #2563eb;
}
.badge-tersedia {
    background: #d1fae5;
    color: #059669;
}

.progress {
    height: 6px;
    border-radius: 10px;
    background: #f1f5f9;
}

/* ============================================ */
/* RESPONSIVE                                  */
/* ============================================ */
@media (max-width: 1400px) {
    .book-card-netflix {
        width: 180px;
    }
    .book-poster {
        width: 180px;
        height: 270px;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .book-card-netflix {
        width: 160px;
    }
    .book-poster {
        width: 160px;
        height: 240px;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 120px 0 40px;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .dashboard-content {
        padding: 20px 15px;
    }
    .chart-container {
        height: 250px;
    }
    .book-card-netflix {
        width: 150px;
    }
    .book-poster {
        width: 150px;
        height: 225px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .book-card-netflix {
        width: 140px;
    }
    .book-poster {
        width: 140px;
        height: 210px;
    }
    .stat-value-dashboard {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }
    .book-card-netflix {
        width: 130px;
    }
    .book-poster {
        width: 130px;
        height: 195px;
    }
    .search-form-wrapper {
        padding: 20px;
    }
}

.book-cover-mini:hover {
    transform: scale(1.05);
}

.user-profile .dropdown-toggle::after {
    display: none;
}
.user-profile .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
