/* Site-specific overrides on top of the template CSS. */

/* Catalog: uniform cover size and breathing room before the title */
.book-box .book-cover {
    display: block;
    margin: 0 auto 20px;
    max-width: 260px;
}
.book-box .book-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 2px;
}
.book-box h5 {
    margin-top: 0;
    margin-bottom: 5px;
}
.book-box {
    margin-bottom: 40px;
}
/* Catalog toolbar: search on the left, sort on the right */
.book-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.book-search .input-group { flex: 0 1 520px; }
.book-search .btn-clear {
    font-size: 18px;
    line-height: 1;
    padding: 12px 0 13.7px;
    width: 47.7px; /* square: same as the Cari button's height */
}

/* Home: latest books strip */
.latest-books .btn-outline {
    margin-top: 4px;
}
@media (max-width: 767px) {
    .latest-books .text-right {
        text-align: left;
        margin-top: 15px;
    }
}

/* Admin: page title row (admin/includes/page-header.php) */
.admin-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 30px;
}
.admin-page-header h2 { margin: 0; }
.admin-page-header .btn { margin: 0; }

/* Admin: heading of a second form section on the same page */
.admin-section-title { margin-top: 50px; }

/* Admin: search box above a list */
.admin-search { max-width: 480px; margin-bottom: 10px; }

/* Admin: book status */
/* .label.status-badge beats the theme's .label (0.7em padding), which loads after this file */
.label.status-badge {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    padding: 5px 8px;
    vertical-align: middle;
    position: relative;
    top: -3px;
    margin-left: 10px;
}
.label.label-default.status-badge { color: #fff; }
.status-panel .radio + .radio { margin-top: 12px; }

/* Admin: row action buttons (Ubah, Lihat, Hapus, ...) */
.table-actions { white-space: nowrap; }
.table-actions .btn.btn-xs {
    margin: 2px 4px 2px 0;
    padding: 6px 0 7px;
    width: 34px; /* round: same as the button's height */
    vertical-align: middle;
}

/* Admin: users table, one <tbody> per user so the hidden reset row does not shift the stripes */
.users-table > tbody + tbody { border-top: 0; }
.users-table > tbody > tr > td { vertical-align: middle; }
.users-table > tbody:nth-of-type(odd) > tr > td { background: #f9f9f9; }
.users-table > tbody > tr.user-reset-row > td { border-top: 0; padding: 4px 8px 16px; }
.user-reset-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.user-reset-form label { margin: 0; font-weight: 600; }
.user-reset-form .form-control { width: 240px; max-width: 100%; margin: 0; }
.user-reset-form .btn { margin: 0; }

/* Blockquote: the theme turns it into a large grey box with 24px light text.
   Use the standard quote look instead, in page content and inside the admin editor alike. */
#content blockquote,
body.editor-preview blockquote {
    background: none;
    border-left: 4px solid #f1670b; /* theme accent */
    padding: 6px 0 6px 20px;
    margin: 20px 0;
}
#content blockquote p,
body.editor-preview blockquote p {
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}
#content blockquote p:last-child,
body.editor-preview blockquote p:last-child {
    margin-bottom: 0;
}

/* Catalog sort control: right of the search box, below it on phones */
.book-sort { display: flex; align-items: center; white-space: nowrap; }
.book-sort label { margin: 0 6px 0 0; font-weight: 400; }
.book-sort select { display: inline-block; width: auto; height: 47.7px; margin: 0; }
@media (max-width: 575px) {
    .book-search { flex-direction: column; align-items: stretch; gap: 15px; }
    .book-search .input-group { flex-basis: auto; }
    .book-sort { justify-content: center; }
}

/* Book grids: flex rows so a taller card (two-line title) doesn't snag the floats and leave gaps */
.book-grid { display: flex; flex-wrap: wrap; }
.book-grid::before, .book-grid::after { display: none; }
