/* ===================================================
   Book Club Manager — Bảng màu Xanh Ôliu & Nâu
   =================================================== */
:root {
    --bc-olive: #5C6B2A;
    --bc-olive-dark: #404A1D;
    --bc-olive-light: #8FA05C;
    --bc-brown: #6F4E37;
    --bc-brown-dark: #4A3222;
    --bc-brown-light: #A67B5B;
    --bc-cream: #F5F0E6;
    --bc-text: #3A2E1F;
    --bc-white: #FFFFFF;
    --bc-radius: 10px;
    --bc-shadow: 0 2px 10px rgba(74, 50, 34, 0.12);
}

html:has(body.bc-minimal-page) {
    scroll-behavior: smooth;
}

body.bc-minimal-page {
    margin: 0;
    background: var(--bc-cream);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bc-wrap {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bc-text);
}

.bc-wrap h1, .bc-wrap h2, .bc-wrap h3 {
    color: var(--bc-brown-dark);
    font-family: Georgia, "Times New Roman", serif;
}

.bc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, var(--bc-olive) 0%, var(--bc-olive-dark) 100%);
    color: var(--bc-white);
    padding: 24px 28px;
    border-radius: var(--bc-radius);
    margin-bottom: 24px;
}
.bc-header h1 { color: var(--bc-white); margin: 0 0 4px; }
.bc-header p { margin: 0; opacity: 0.9; }

.bc-login-box {
    background: var(--bc-white);
    border: 1px solid var(--bc-olive-light);
    border-radius: var(--bc-radius);
    padding: 30px;
    max-width: 380px;
    margin: 60px auto;
    box-shadow: var(--bc-shadow);
    text-align: center;
}
.bc-login-box h2 { margin-top: 0; }
.bc-login-box form { text-align: left; }
.bc-login-box p { margin: 0 0 14px; }
.bc-login-box label {
    display: block;
    font-weight: 600;
    color: var(--bc-brown-dark);
    font-size: 14px;
    margin-bottom: 5px;
}
.bc-login-box input[type="text"],
.bc-login-box input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cfc6ad;
    border-radius: 6px;
    font-size: 14px;
}
.bc-login-box input[type="text"]:focus,
.bc-login-box input[type="password"]:focus {
    outline: none;
    border-color: var(--bc-olive);
}
.bc-login-box input[type="submit"] {
    background: var(--bc-brown);
    color: var(--bc-white);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.bc-login-box input[type="submit"]:hover { background: var(--bc-brown-dark); }
.bc-login-box .login-remember { font-size: 13px; color: var(--bc-brown); }

/* Buttons */
.bc-btn {
    display: inline-block;
    background: var(--bc-brown);
    color: var(--bc-white) !important;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}
.bc-btn:hover { background: var(--bc-brown-dark); }
.bc-roster-add-btn { margin-top: 14px; }
.bc-roster-cancel-edit { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--bc-brown); }
#bc-pres-form { scroll-margin-top: 20px; }
.bc-btn-outline {
    background: transparent;
    border: 1.5px solid var(--bc-white);
    color: var(--bc-white) !important;
}
.bc-btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Stat cards */
.bc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.bc-stat-card {
    background: var(--bc-cream);
    border: 1px solid var(--bc-olive-light);
    border-radius: var(--bc-radius);
    padding: 20px;
    text-align: center;
}
.bc-stat-number {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    color: var(--bc-white);
    background: var(--bc-olive);
    line-height: 1;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bc-stat-number:hover {
    background: var(--bc-olive-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,50,34,0.25);
}
.bc-stat-label { display: block; color: var(--bc-brown); font-size: 14px; margin-top: 10px; }

/* Menu cards */
.bc-menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.bc-menu-card {
    position: relative;
    display: block;
    background: var(--bc-white);
    border: 1px solid #e2dcc9;
    border-left: 5px solid var(--bc-olive);
    border-radius: var(--bc-radius);
    padding: 20px;
    text-decoration: none;
    color: var(--bc-text) !important;
    box-shadow: var(--bc-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bc-menu-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(74,50,34,0.18); }
.bc-menu-card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #b3492f;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.bc-menu-icon { font-size: 28px; }
.bc-menu-card h3 { margin: 8px 0 4px; color: var(--bc-brown-dark); }
.bc-menu-card p { margin: 0; font-size: 13px; color: #6b6250; }

/* Sections */
.bc-section {
    background: var(--bc-white);
    border: 1px solid #e2dcc9;
    border-radius: var(--bc-radius);
    padding: 22px;
    margin-bottom: 24px;
}
.bc-section h2 { margin-top: 0; border-bottom: 2px solid var(--bc-olive-light); padding-bottom: 10px; }

/* Collapsible filter (CR-003) */
.bc-filter-collapsible { padding: 0; }
.bc-filter-collapsible[open] { padding: 22px; }
.bc-filter-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15em;
    color: var(--bc-brown-dark);
    padding: 22px;
    user-select: none;
}
.bc-filter-collapsible[open] .bc-filter-summary {
    padding: 0 0 10px 0;
    border-bottom: 2px solid var(--bc-olive-light);
    margin-bottom: 18px;
}
.bc-filter-summary::-webkit-details-marker { display: none; }
.bc-filter-summary::marker { content: ''; }
.bc-filter-summary::after {
    content: '▸';
    margin-left: auto;
    transition: transform 0.15s ease;
    color: var(--bc-olive-light);
}
.bc-filter-collapsible[open] .bc-filter-summary::after { transform: rotate(90deg); }
.bc-filter-count { font-size: 12px; padding: 2px 8px; }

.bc-upcoming-list { list-style: none; padding: 0; margin: 0; }
.bc-upcoming-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd3ba;
}
.bc-upcoming-list li:last-child { border-bottom: none; }

/* Forms */
.bc-form-card { background: var(--bc-cream); }
.bc-form-row { margin-bottom: 14px; display: flex; flex-direction: column; }
.bc-form-row label { font-weight: 600; margin-bottom: 5px; color: var(--bc-brown-dark); font-size: 14px; }
.bc-form-row input, .bc-form-row select, .bc-form-row textarea {
    padding: 9px 12px;
    border: 1px solid #cfc6ad;
    border-radius: 6px;
    font-size: 14px;
    background: var(--bc-white);
}
.bc-form-row input:focus, .bc-form-row select:focus, .bc-form-row textarea:focus {
    outline: none;
    border-color: var(--bc-olive);
}
.bc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

/* Table */
.bc-table { width: 100%; border-collapse: collapse; }
.bc-table th, .bc-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee5cf;
    font-size: 14px;
}
.bc-table th {
    background: var(--bc-olive);
    color: var(--bc-white);
}
.bc-table tr:hover { background: #faf7ef; }
.bc-table a { color: var(--bc-brown); font-weight: 600; text-decoration: none; }
.bc-table a:hover { text-decoration: underline; }

.bc-badge {
    background: var(--bc-brown-light);
    color: var(--bc-white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.bc-notice {
    background: #eef3e2;
    border-left: 4px solid var(--bc-olive);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: var(--bc-olive-dark);
}

/* ===================================================
   Thanh điều hướng dùng chung (Nav)
   =================================================== */
.bc-nav {
    background: var(--bc-brown-dark);
    border-radius: var(--bc-radius);
    margin-bottom: 20px;
    padding: 10px 16px;
}
.bc-nav-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.bc-nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.bc-nav-link {
    color: #f0e9da !important;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.bc-nav-link:hover { background: rgba(255,255,255,0.12); }
.bc-nav-active { background: var(--bc-olive); color: #fff !important; font-weight: 600; }
.bc-nav-logout { background: rgba(255,255,255,0.08); }

@media (max-width: 768px) {
    .bc-nav-inner { flex-direction: column; align-items: flex-start; }
    .bc-nav-links { width: 100%; }
    .bc-nav-link { flex: 1 1 auto; text-align: center; }
}

/* ===================================================
   Trạng thái Roster: đã present / kế tiếp / sắp tới
   =================================================== */
.bc-status-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.bc-status-da_present { background: #d8d2c2; color: #5a5140; }
.bc-status-next { background: var(--bc-olive); color: #fff; }
.bc-status-sap_toi { background: var(--bc-brown-light); color: #fff; }
.bc-row-next { background: #f5f8ec; }

/* Badge trạng thái tài khoản (khoá/hoạt động) */
.bc-badge-locked { background: #b3492f; }

/* ===================================================
   Thẻ Sự kiện & Thẻ Hội viên
   =================================================== */
.bc-event-card {
    background: var(--bc-white);
    border: 1px solid #e2dcc9;
    border-left: 5px solid var(--bc-brown);
    border-radius: var(--bc-radius);
    padding: 18px 20px;
    margin-bottom: 14px;
}
.bc-event-card h3 { margin: 0 0 6px; color: var(--bc-brown-dark); }
.bc-event-meta { color: var(--bc-olive-dark); font-weight: 600; margin: 4px 0; }
.bc-event-card .bc-btn, .bc-event-card .bc-btn-outline { margin-top: 8px; margin-right: 8px; font-size: 13px; padding: 8px 14px; }
.bc-event-card .bc-btn-outline { color: var(--bc-brown) !important; border: 1.5px solid var(--bc-brown); background: transparent; }

.bc-member-card { text-align: center; }
.bc-member-card img { border-radius: 50%; margin-bottom: 8px; }
.bc-member-role { color: var(--bc-olive-dark); font-size: 12px; font-weight: 600; text-transform: uppercase; }

/* ===================================================
   Đánh giá sao
   =================================================== */
.bc-stars { color: #c9982e; letter-spacing: 1px; }

/* ===================================================
   Khu vực bình luận / thảo luận
   =================================================== */
.bc-content { line-height: 1.7; margin-bottom: 10px; }
.bc-comment-list { list-style: none; padding: 0; margin: 0; }
.bc-comment-list ul.children { list-style: none; padding-left: 24px; margin: 10px 0 0; }
.bc-comment { margin-bottom: 16px; }
.bc-comment-body {
    background: var(--bc-cream);
    border-radius: var(--bc-radius);
    padding: 14px 16px;
}
.bc-comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bc-comment-head img { border-radius: 50%; }
.bc-comment-date { font-size: 11px; color: #8a7d63; }
.bc-comment-text p { margin: 0; }
.bc-comment-actions { margin-top: 8px; font-size: 12px; }
.bc-comment-actions a { color: var(--bc-brown); text-decoration: none; margin-right: 10px; }
.bc-comment-actions a:hover { text-decoration: underline; }

#commentform p { margin-bottom: 12px; }
#commentform label { display: block; font-weight: 600; color: var(--bc-brown-dark); font-size: 14px; margin-bottom: 5px; }
#commentform input[type="text"], #commentform input[type="email"], #commentform textarea, #commentform select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #cfc6ad;
    border-radius: 6px;
    font-size: 14px;
}
#commentform .submit {
    background: var(--bc-brown);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
    cursor: pointer;
}
#commentform .submit:hover { background: var(--bc-brown-dark); }

/* ===================================================
   Trang Kiểm duyệt bình luận
   =================================================== */
.bc-btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--bc-brown);
    color: var(--bc-brown) !important;
}
.bc-btn-outline-dark:hover { background: var(--bc-brown); color: #fff !important; }
.bc-btn-danger {
    background: #b3492f;
    color: #fff !important;
}
.bc-btn-danger:hover { background: #8f3a25; }

.bc-mod-item {
    background: var(--bc-white);
    border: 1px solid #e2dcc9;
    border-radius: var(--bc-radius);
    padding: 16px 18px;
    margin-bottom: 14px;
}
.bc-mod-pending { border-left: 5px solid #c9982e; background: #fffaf0; }
.bc-mod-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.bc-mod-actions .bc-btn, .bc-mod-actions .bc-btn-outline-dark, .bc-mod-actions .bc-btn-danger {
    padding: 7px 14px;
    font-size: 13px;
}

/* ===================================================
   Brand Mark "CoBooks" — icon + wordmark riêng
   =================================================== */
.bc-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bc-logo-icon { display: block; color: inherit; }
.bc-logo-icon-emoji { font-size: 24px; line-height: 1; }
.bc-logo-wordmark {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.2px;
}
.bc-logo-co { color: var(--bc-brown); }
.bc-logo-books { color: var(--bc-brown-dark); font-style: italic; }
.bc-logo-club { font-weight: 500; opacity: 0.85; }

/* Trong header — không còn khung nền kem bao quanh, để logo hiển thị trực
   tiếp trên nền header với kích thước lớn hơn, rõ ràng hơn. Màu fallback
   (icon SVG + chữ, dùng khi chưa upload logo ảnh) được đổi sang tông sáng
   để vẫn tương phản tốt với nền nâu đậm của header. */
.bc-brand-mark-header {
    padding: 4px 0;
}
.bc-site-brand .bc-logo-icon { color: var(--bc-cream); }
.bc-site-brand .bc-logo-co { color: var(--bc-olive-light); }
.bc-site-brand .bc-logo-books,
.bc-site-brand .bc-logo-club { color: var(--bc-cream); font-size: 20px; }
.bc-site-brand .bc-logo-wordmark { font-size: 20px; }

/* Trong hộp đăng nhập nhúng ở dashboard */
.bc-login-box-brand { display: flex; justify-content: center; margin-bottom: 14px; }

/* ===================================================
   Logo ảnh thật (khi đã upload assets/images/logo.png / logo-compact.png)
   =================================================== */
.bc-brand-mark-image { display: inline-flex; align-items: center; }
.bc-logo-image { display: block; width: auto; }
.bc-logo-image-nav { height: 22px; max-height: 22px; max-width: 150px; object-fit: contain; }
/* Header: tăng kích thước hiển thị (32px → 44px) để các chi tiết nhỏ lồng
   trong wordmark (la bàn, bánh răng, mắt xoáy ốc) còn nhận diện được rõ. */
.bc-logo-image-header { height: 44px; max-height: 44px; max-width: 240px; object-fit: contain; }
.bc-logo-image-login { height: 56px; max-height: 56px; max-width: 260px; object-fit: contain; }
/* Footer: logo bản compact (không kèm slogan in sẵn) + tagline text riêng bên dưới */
.bc-logo-image-footer { height: 44px; max-height: 44px; max-width: 240px; object-fit: contain; }
/* Favicon phía trên logo footer — cùng chiều cao với logo footer */
.bc-footer-favicon { display: flex; justify-content: center; margin-bottom: 10px; }
.bc-footer-favicon-link { display: inline-flex; }
.bc-footer-favicon-image { display: block; height: 44px; width: auto; max-width: 44px; object-fit: contain; }
@media (max-width: 480px) {
    .bc-logo-image-nav { height: 18px; max-height: 18px; max-width: 120px; }
    .bc-logo-image-header { height: 34px; max-height: 34px; max-width: 190px; }
    .bc-logo-image-login { height: 42px; max-height: 42px; max-width: 200px; }
    .bc-logo-image-footer { height: 34px; max-height: 34px; max-width: 190px; }
    .bc-footer-favicon-image { height: 34px; max-width: 34px; }
}
.bc-login-box-brand .bc-logo-icon { color: var(--bc-olive); }

/* ===================================================
   Phân trang
   =================================================== */
/* ===================================================
   Dãy thẻ chuyển nhanh tháng (Reading Challenge)
   =================================================== */
.bc-month-chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.bc-month-chips-label {
    font-size: 13px;
    color: #8a7d63;
    margin-right: 2px;
}
.bc-month-chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--bc-cream);
    border: 1px solid #e2dcc9;
    color: var(--bc-brown-dark) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.bc-month-chip:hover { background: var(--bc-olive-light); color: #fff !important; border-color: var(--bc-olive-light); }
.bc-month-chip-active { background: var(--bc-olive); color: #fff !important; border-color: var(--bc-olive); }
.bc-month-chip-more {
    background: transparent;
    border: 1px dashed #b8ab8c;
    color: #8a7d63 !important;
    cursor: pointer;
    font-family: inherit;
}
.bc-month-chip-more:hover { background: var(--bc-cream); border-style: solid; }

.bc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.bc-page-link {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--bc-cream);
    color: var(--bc-brown-dark) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e2dcc9;
}
.bc-page-link:hover { background: var(--bc-olive-light); color: #fff !important; }
.bc-page-active {
    background: var(--bc-olive);
    color: #fff !important;
    border-color: var(--bc-olive);
}
.bc-page-ellipsis { padding: 0 4px; color: #9a8d72; }

/* ===================================================
   Site Header & Footer (icon sách trang trí)
   =================================================== */
.bc-site-header {
    background: var(--bc-brown-dark);
    padding: 16px 20px;
}
.bc-site-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bc-site-brand {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bc-site-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}
.bc-site-brand-link:hover {
    opacity: 0.9;
}
/* Khung nền sáng (pill) sau logo ảnh trong header — tăng tương phản cho
   phần "co" màu ôliu đậm và chi tiết la bàn/bánh răng vốn dễ chìm vào
   nền nâu đậm của header. */
.bc-site-brand .bc-brand-mark-image {
    background: linear-gradient(180deg, #FFFDF8 0%, #F5EEDF 100%);
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(212, 163, 52, 0.55);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.bc-book-icon { font-size: 22px; }
.bc-book-icon-2 { opacity: 0.85; }
.bc-lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cfc6ad;
    font-size: 13px;
    font-weight: 600;
}
.bc-lang-switch a { color: #cfc6ad; text-decoration: none; padding: 3px 6px; border-radius: 4px; }
.bc-lang-switch a.bc-lang-active { color: #fff; background: var(--bc-olive); }
.bc-lang-switch a:hover { color: #fff; }

.bc-site-footer {
    text-align: center;
    padding: 24px 20px 30px;
    color: var(--bc-brown-dark);
}
.bc-footer-brand { display: flex; justify-content: center; margin-bottom: 10px; }
.bc-site-footer .bc-logo-wordmark { font-size: 18px; }
.bc-footer-icons { font-size: 22px; letter-spacing: 8px; margin-bottom: 8px; opacity: 0.8; }
.bc-site-footer p { margin: 2px 0; font-size: 13px; }
.bc-footer-copy { color: #9a8d72; }
.bc-footer-guide-link { margin: 4px 0; }
.bc-footer-guide-link a { color: var(--bc-brown); font-weight: 600; text-decoration: none; }
.bc-footer-guide-link a:hover { text-decoration: underline; }

/* ===================================================
   Trang Hướng dẫn sử dụng — mục lục
   =================================================== */
.bc-guide-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--bc-cream);
    border-radius: var(--bc-radius);
    padding: 16px 18px;
    margin-bottom: 20px;
}
.bc-guide-toc a {
    background: var(--bc-white);
    border: 1px solid #e2dcc9;
    color: var(--bc-brown-dark) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}
.bc-guide-toc a:hover { background: var(--bc-olive); color: #fff !important; border-color: var(--bc-olive); }

.bc-import-note {
    font-size: 12px;
    color: #8a7d63;
    background: var(--bc-cream);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.bc-notice-success {
    background: #e6f0e0;
    border-left-color: var(--bc-olive);
}

.bc-notice-error {
    background: #fbeae5;
    border-left-color: #b3492f;
    color: #7a2e1c;
}

/* ===================================================
   CR-009: Thêm sách bằng ảnh chụp (Gemini Vision)
   =================================================== */
.bc-photoscan-hint {
    color: var(--bc-olive-dark);
    margin-bottom: 16px;
}

.bc-photoscan-bulk-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    background: #f5f2e8;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.bc-photoscan-bulk-fields .bc-form-row {
    margin-bottom: 0;
}

.bc-photoscan-bulk-fields .bc-photoscan-hint {
    width: 100%;
    margin: 4px 0 0;
    font-size: 13px;
}

.bc-photoscan-review-table input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.bc-photoscan-low-confidence {
    outline: 2px solid #b3492f;
    outline-offset: -2px;
}

.bc-photoscan-low-confidence td {
    background: #fbeae5;
}

.bc-photoscan-duplicate {
    outline: 2px dashed #b3492f;
    outline-offset: -2px;
}

.bc-photoscan-duplicate td {
    background: #fdf1ea;
}

.bc-photoscan-duplicate-warning {
    color: #b3492f;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

.bc-photoscan-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: var(--bc-olive-dark);
}

.bc-photoscan-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid var(--bc-olive-light);
    border-top-color: var(--bc-olive);
    border-radius: 50%;
    display: inline-block;
    animation: bc-photoscan-spin 0.8s linear infinite;
}

@keyframes bc-photoscan-spin {
    to { transform: rotate(360deg); }
}

.bc-pending-section .bc-mod-pending {
    border-left-color: var(--bc-olive);
    background: #f5f8ec;
}

/* ===================================================
   RESPONSIVE — Tablet & Mobile
   =================================================== */

/* Tablet: <= 768px */
@media (max-width: 768px) {
    .bc-wrap { margin: 16px auto; padding: 0 14px; }

    .bc-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
    }
    .bc-header h1 { font-size: 22px; }

    .bc-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bc-stat-number { font-size: 26px; }

    .bc-menu-cards { grid-template-columns: 1fr; }

    .bc-form-grid { grid-template-columns: 1fr; }

    .bc-section { padding: 16px; }

    /* Bảng cuộn ngang trên màn nhỏ thay vì bị vỡ layout */
    .bc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bc-table { min-width: 560px; }
}

/* Mobile nhỏ: <= 480px */
@media (max-width: 480px) {
    .bc-stats { grid-template-columns: 1fr 1fr; }
    .bc-header h1 { font-size: 19px; }
    .bc-btn, .bc-btn-outline { width: 100%; text-align: center; box-sizing: border-box; }
    .bc-header { gap: 10px; }
    .bc-login-box { margin: 30px 16px; padding: 24px 20px; }
    .bc-table th, .bc-table td { padding: 8px; font-size: 13px; }
    .bc-site-brand .bc-brand-mark-image { padding: 6px 14px; }
}

/* ===== CR-007 (NF001): Bài Chia Sẻ Sách ===== */
.bc-btn-small {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
}
.bc-shares-pinned {
    background: var(--bc-cream);
    border: 1px solid var(--bc-olive-light);
}
.bc-share-card {
    background: var(--bc-white);
    border: 1px solid #e2dcc9;
    border-left: 4px solid var(--bc-olive-light);
    border-radius: var(--bc-radius);
    padding: 16px 18px;
    margin-bottom: 14px;
}
.bc-share-card:last-child { margin-bottom: 0; }
.bc-share-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.bc-share-card p { margin: 6px 0; }
.bc-roster-share-hint {
    margin-top: 4px;
    font-size: 12px;
}
.bc-roster-share-hint a { color: var(--bc-olive-light); font-weight: 600; }

@media (max-width: 480px) {
    .bc-share-card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
