:root {
    /* Color Palette - HSL for easy manipulation */
    --primary-hue: 220;
    /* Blue-ish */
    --primary: hsl(var(--primary-hue), 70%, 50%);
    --primary-dark: hsl(var(--primary-hue), 70%, 40%);
    --primary-hover: hsl(var(--primary-hue), 70%, 45%);
    --bg-body: hsl(210, 20%, 98%);
    --bg-card: #ffffff;
    --text-main: hsl(210, 10%, 20%);
    --text-muted: hsl(210, 10%, 50%);
    --border: hsl(210, 10%, 90%);

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    /* Radius */
    --radius: 8px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

body {
    font-family: 'Inter', sans-serif;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Grid for Books */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.book-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: var(--radius);
    margin-bottom: var(--spacing-sm);
}

.book-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    /* Standardization: 2 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.4em;
    /* Approx 2 lines */
    line-height: 1.2;
}

.book-card h3 a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.2s;
}

.book-card h3 a:hover {
    color: var(--primary);
}

.book-card .author {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 0 0;
    /* Standardization: 1 line max */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-info {
    width: 100%;
    margin-bottom: auto;
}

.book-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    width: 100%;
    padding-top: 3px;
}

.progress-container {
    flex-grow: 1;
}

/* Ensure card content stretches */
.book-card {
    display: flex;
    flex-direction: column;
    /* Height handled by grid, but ensure flex layout internal */
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

/* All Books Table View */
.book-table {
    width: 100%;
    border-collapse: collapse;
}

.book-table th {
    text-align: left;
    padding: var(--spacing-sm);
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.book-table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.book-table tr:hover td {
    background-color: hsl(210, 20%, 96%);
}

.small-cover {
    height: 50px;
    /* Requirement: 50px tall */
    width: auto;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}

.small-cover-placeholder {
    height: 50px;
    width: 40px;
    background-color: var(--border);
    border-radius: 2px;
}

.status-badge.compact {
    font-size: 1.0rem;
    padding: 0.1rem 0.4rem;
}

.dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.section-header h2 {
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    box-sizing: border-box;
    /* Fix width overflow */
}

/* Book Detail Layout */
.book-content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .book-content-grid {
        grid-template-columns: 1fr;
    }
}

.book-sidebar img.detail-cover {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Sessions */
.session-item {
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-sm) 0;
}

.session-item:last-child {
    border-bottom: none;
}

.session-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.session-notes {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

/* Utilities */
.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted);
}

.section-header {
    display: flex;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Grid for Books */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.book-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: var(--radius);
    margin-bottom: var(--spacing-sm);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

/* All Books Table View */
.book-table {
    width: 100%;
    border-collapse: collapse;
}

.book-table th {
    text-align: left;
    padding: var(--spacing-sm);
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.book-table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.book-table tr:hover td {
    background-color: hsl(210, 20%, 96%);
}

.small-cover {
    height: 50px;
    /* Requirement: 50px tall */
    width: auto;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}

.small-cover-placeholder {
    height: 50px;
    width: 40px;
    background-color: var(--border);
    border-radius: 2px;
}

.status-badge.compact {
    font-size: 1.0rem;
    padding: 0.1rem 0.4rem;
}

.dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.section-header h2 {
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    box-sizing: border-box;
    /* Fix width overflow */
}

/* Book Detail Layout */
.book-content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .book-content-grid {
        grid-template-columns: 1fr;
    }
}

.book-sidebar img.detail-cover {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Sessions */
.session-item {
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-sm) 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.session-content {
    flex-grow: 1;
}

.session-item:last-child {
    border-bottom: none;
}

.session-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.session-notes {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

/* Utilities */
.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}



.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

/* Header & Navigation Redesign */
.main-header {
    background: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-lg);
}

.nav-logo {
    height: 40px;
    width: auto;
    margin-right: var(--spacing-md);
    vertical-align: middle;
}

.main-nav {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav-link:hover {
    border-bottom-color: var(--primary);
}

/* Slide-out Search */
.nav-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 0;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid transparent;
    transition: width 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
    background: transparent;
    opacity: 0;
    cursor: default;
}

.search-input.active {
    width: 200px;
    padding: 0.5rem;
    border-bottom: 1px solid var(--primary);
    opacity: 1;
    cursor: text;
}

.search-input:focus {
    outline: none;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-toggle:hover {
    color: var(--primary);
}

/* Hide original navbar elements if they still exist in CSS */
.navbar {
    display: none;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #818181;
    /* Grayish unfilled part */
    border-radius: 999px;
    /* Rounded corners */
    height: 1.25rem;
    /* Sufficient height for text */
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    background-color: #4caf50;
    /* Greenish fill */
    height: 100%;
    border-radius: 999px 0 0 999px;
    transition: width 0.3s ease;
}

/* Ensure full radius when full */
.progress-bar[style="width: 100%;"] {
    border-radius: 999px;
}

.progress-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* Ensure readability on both green and gray */
    pointer-events: none;
    /* Let clicks pass through */
    white-space: nowrap;
}

/* No Cover Placeholder */
.no-cover-placeholder {
    width: 100%;
    height: 150px;
    background-color: #e0e0e0;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

/* Action Menu */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    margin: 0;
    flex: 1;
    padding-right: 0.5rem;
}

.action-container {
    position: relative;
}

.action-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #4caf50;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #45a049;
}

.action-menu {
    position: absolute;
    background-color: white;
    /* Explicit background */
    border: 1px solid #d1d5db;
    /* Explicit border */
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    width: 160px;
    z-index: 1000;
    display: block;
}

.action-menu.hidden {
    display: none;
}

.menu-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.1s;
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
    text-decoration: none;
}

.menu-item:hover {
    background-color: #f3f4f6;
}

.menu-item.text-danger {
    color: #ef4444;
}

.menu-item.text-danger:hover {
    background-color: #fef2f2;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

.modal-box p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #4caf50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Modal Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Header Actions (Search + User) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--border);
    height: 32px;
    /* Match avatar height roughly for vertical centering/separator */
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.logout-link {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #ef4444;
    /* Red for logout */
    border-bottom: none;
    /* Override default nav-link border */
}

/* Adjust search to not push everything weirdly given the new layout */
.search-form {
    margin-right: 0;
}

/* Profile Page */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.joined-date {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-actions {
    text-align: center;
}

/* Combobox */
.combobox-wrapper {
    position: relative;
    display: flex;
}

.combobox-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.combobox-toggle {
    border: 1px solid var(--border);
    border-left: none;
    background: #f8f9fa;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    padding: 0 10px;
    cursor: pointer;
    color: var(--text-muted);
}

.combobox-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 4px;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.combobox-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.combobox-item:hover {
    background-color: #f3f4f6;
}

.combobox-item-new {
    padding: 8px 12px;
    color: var(--text-muted);
    font-style: italic;
    cursor: default;
}

.hidden {
    display: none !important;
}

/* Desktop Nav Layout Fix */
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-left: var(--spacing-md);
}

/* =========================================
   Mobile Responsiveness (Max-Width: 768px)
   ========================================= */

/* Nav Toggle (Hidden by default) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: relative;
    transition: background-color 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    left: 0;
    transition: transform 0.2s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

@media (max-width: 768px) {

    /* 1. Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-logo {
        margin-right: 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-md);
        flex-direction: column;
        z-index: 2000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search form {
        width: 100%;
    }

    .search-input {
        width: 100%;
        /* Force open on mobile usually easier, or keep collapse logic */
        opacity: 1;
        cursor: text;
        padding: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-user {
        margin-top: var(--spacing-sm);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 2. Layout & Typography */
    .container {
        padding: 0 var(--spacing-sm);
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .dashboard-sections {
        gap: var(--spacing-md);
    }

    /* 3. Book Grid */
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on phones */
        gap: var(--spacing-sm);
    }

    @media (max-width: 400px) {
        .book-grid {
            grid-template-columns: 1fr;
            /* 1 column on really small phones */
        }
    }

    .book-card img {
        height: 120px;
        /* Slightly smaller covers */
    }

    /* 4. DataTables "Card View" Transformation */
    #booksTable thead {
        display: none;
    }

    #booksTable tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: var(--spacing-md);
        background: var(--bg-card);
        padding: var(--spacing-sm);
    }

    #booksTable tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
        text-align: right;
    }

    #booksTable tbody td:last-child {
        border-bottom: none;
    }

    #booksTable tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-align: left;
        margin-right: 1rem;
    }

    /* Special handling for Cover cell in card view */
    #booksTable tbody td[data-label="Cover"] {
        justify-content: center;
        border-bottom: none;
        padding-bottom: 0;
    }

    #booksTable tbody td[data-label="Cover"]::before {
        display: none;
    }

    /* 5. Modals */
    .modal-box {
        width: 95%;
        padding: var(--spacing-md);
    }

    /* 6. Book Detail */
    .book-content-grid {
        grid-template-columns: 1fr;
        /* Already partially there, reinforcing */
    }

    .book-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .header-actions {
        width: 100%;
        display: flex;
        gap: var(--spacing-md);
    }

    .header-actions .btn {
        flex: 1;
        text-align: center;
    }
}