/* =========================================
   1. STYLE UTAMA (TERANG/LIGHT MODE)
   ========================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Background abu-abu muda */
    color: #212529; /* Teks hitam */
}

/* =========================================
   2. HEADER / NAVBAR (HITAM/DARK MODE)
   ========================================= */
.navbar {
    background-color: #000000 !important; /* Hitam Pekat */
    border-bottom: 1px solid #333;
}

.navbar-brand, .nav-link {
    color: #fff !important; /* Teks Putih */
}

/* =========================================
   3. SIDEBAR & CONTENT
   ========================================= */
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: #343a40 !important; /* Sidebar Abu Gelap (Bootstrap Dark) */
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin-right: 10px;
    border-radius: 0 25px 25px 0;
}

.sidebar .nav-link.active {
    background-color: #007bff; /* Biru Primer */
    color: #fff !important;
}

.sidebar .nav-link:hover {
    background-color: #495057;
    color: #fff !important;
}

/* =========================================
   4. CARD BOOKS / LIST BUKU
   ========================================= */
.book-card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff; /* Card Putih */
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.book-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.book-card .card-body {
    height: 150px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card .card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.book-card .card-text {
    font-size: 0.9rem;
    color: #6c757d; /* Warna teks abu-abu untuk deskripsi */
    flex-grow: 1;
}

/* =========================================
   5. NETFLIX STYLE SCROLL
   ========================================= */
.netflix-title {
    font-size: 1.8rem;
    font-weight: bold;
    padding-left: 20px;
    margin-bottom: 15px;
    color: #212529; /* Teks Hitam */
}

.netflix-row {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0 20px 30px 20px;
    display: flex;
    gap: 15px;
}

.netflix-row::-webkit-scrollbar { display: none; }
.netflix-row { -ms-overflow-style: none; scrollbar-width: none; }

.netflix-item {
    flex-shrink: 0;
    width: 160px;
    min-width: 140px;
    display: block !important;
}

/* Responsive Netflix */
@media (max-width: 767px) {
    .netflix-item { width: 130px; min-width: 110px; }
    .netflix-title { font-size: 1.4rem; padding-left: 10px; }
    .netflix-row { padding: 0 10px 20px 10px; }
}

/* =========================================
   6. LAIN-LAIN
   ========================================= */
.stats-card {
    text-align: center;
    padding: 20px;
    border-left-width: 5px !important;
}

.stats-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn-favorite {
    position: absolute; top: 10px; right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-favorite:hover {
    background-color: rgba(255, 255, 255, 1);
}

.btn-favorite i {
    color: #dc3545; /* Merah untuk hati */
    margin: 0;
    font-size: 1rem;
}

/* Kustomisasi untuk Bootstrap Dark Mode (Jika diaktifkan) */
/* Cuma contoh, kalo nggak pake dark mode ini nggak ngaruh */
/* body.dark-mode {
    background-color: #121212;
    color: #ffffff;
} */

/* --- FIX WARNA FONT BUKU (DITAMBAHKAN) --- */
.book-card .card-title,
.book-card .card-text,
.book-card small {
    color: #333 !important; /* Ubah jadi Hitam Gelap */
}

/* Kalo ada link di judul */
.book-card a {
    color: #333 !important;
    text-decoration: none;
}
.book-card a:hover {
    color: #000 !important; /* Lebih item pas di-hover */
    text-decoration: underline;
}