/* GIỮ NGUYÊN BIẾN ROOT VÀ STYLE CHUNG CỦA BẠN */
:root {
    --mau-nen: #1A1A1D;
    --mau-thanh-ngang: #24242B;
    --mau-tim: #8B5CF6;
    --mau-chu: #FFFFFF;
    --primary-color: #8b5cf6; 
    --bg-card: #2b2d31;
    --text-dim: #b5bac1;
    --text-main: #f2f3f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--mau-nen);
    color: white;
}

/* --- UPDATE HEADER THEO MẪU TRANG CHỦ --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--bg-card);
    border-bottom: 1px solid #111214;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { 
    font-size: 22px; 
    font-weight: 800; 
    text-transform: uppercase; 
}

.logo a { text-decoration: none; color: white; }

.logo span { 
    color: var(--primary-color); 
    display: block; 
    font-size: 14px; 
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
}

nav ul li a { 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--text-dim); 
    text-decoration: none;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-color);
}

.header-icons { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.search-container {
    display: flex;
    align-items: center;
    background: #111214;
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid #444;
}

#global-search {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 150px;
}

#btn-search-trigger {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
}

.mini-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--mau-tim);
    margin-right: 8px;
}

.user-top-info {
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* --- GIỮ NGUYÊN LAYOUT CHÍNH CỦA BẠN --- */
.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.filter-sidebar {
    width: 280px;
    padding: 25px;
    background-color: #1A1A1D;
    border-right: 1px solid #333;
    flex-shrink: 0;
}

.search-result {
    flex: 1;
    padding: 25px;
    background-color: #121215;
}

/* Giữ nguyên các class .filter-group, .opt, .book-item... từ code cũ của bạn bên dưới */
.filter-group { 
    margin-bottom: 25px; 
}
.filter-label { 
    color: #888; 
    font-size: 12px; 
    font-weight: bold; 
    margin-bottom: 12px; 
    text-transform: uppercase; 
}
.filter-options { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; }
.opt { 
    background-color: #24242B;
    color: #ccc; 
    padding: 7px 15px; 
    border-radius: 20px; 
    font-size: 13px; 
    cursor: pointer; 
    border: 1px solid transparent; 
}
.opt.active { 
    background-color: var(--mau-tim); 
    color: white; 
}
.btn-reset-filter { 
    width: 100%; 
    padding: 10px; 
    background: transparent; 
    border: 1px solid #ff4d4d; 
    color: #ff4d4d; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
}
.book-item { 
    background-color: #1A1A1D; 
    border: 1px solid #333; 
    border-radius: 12px; 
    padding: 20px; 
    display: flex; 
    gap: 20px; 
    margin-bottom: 20px; 
}
.book-cover img { 
    width: 100px; 
    height: 140px; 
    object-fit: cover; 
    border-radius: 6px; }
.book-info { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; }
.book-title { 
    font-size: 18px; 
    color: white; 
    margin-bottom: 8px; 
}
.tag-convert { 
    background-color: #444; 
    color: #bbb; 
    font-size: 10px; 
    padding: 2px 6px; 
    border-radius: 3px; 
    margin-right: 8px; 
}
.book-meta { 
    font-size: 13px; 
    color: #888; 
    display: flex; 
    gap: 15px; 
}
.status-active { 
    color: #4ade80; 
}
.book-summary { 
    font-size: 14px; 
    color: #aaa; 
    line-height: 1.5; 
    margin: 10px 0; 
}
.book-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.btn-read { 
    background-color: var(--mau-tim); 
    color: white; 
    border: none; 
    padding: 8px 18px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: bold; 
}
.btn-detail { 
    background-color: #333; 
    color: #eee; 
    border: 1px solid #444; 
    padding: 8px 18px; 
    border-radius: 25px; 
    cursor: pointer; 
}

/* --- THÊM FOOTER THEO MẪU TRANG CHỦ --- */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid #111214;
    padding: 40px 0 0 0;
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 0 5% 40px 5%;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    color: #3b82f6;
}

.footer-logo span { color: #ffffff; }

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--mau-tim);
    display: inline-block;
}

.footer-tags { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 15px; 
}
.footer-tags a { 
    background: #1a1b1e; 
    border: 1px solid #444; 
    padding: 4px 12px; 
    border-radius: 4px; 
    color: var(--text-dim); 
    text-decoration: none; 
    font-size: 13px; 
}

.footer-bottom {
    padding: 20px;
    text-align: left;
    font-size: 13px;
    color: #555;
    background-color: #111214;
}