:root {
    --sidebar-width: 230px;
    --main-navbar-height: 64px;
    --dashboard-footer-height: 28px;
}

html.collapsed {
    --sidebar-width: 52px;
}

html,
body {
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

.image-container {
    background-image: url("../images/profile.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    background-position: center;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Change this line */
    align-items: flex-start;
}

.image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 18, 28, 0.84) 0%, rgba(14, 18, 28, 0.52) 44%, rgba(14, 18, 28, 0.18) 100%);
}

.content_landing {
    position: relative;
    padding: 38px 40px;
    width: min(560px, calc(100% - 32px));
    border: 2px dashed #ffffff30;
    margin: 130px 0 0 50px;
    background: rgba(8, 12, 20, 0.34);
    backdrop-filter: blur(2px);
}

.content_landing h1 {
    font-family: "Roboto";
    font-weight: 900;
    text-transform: uppercase;
    font-size: 50px;
    margin: 0;
    color: #fff;
    margin: 0;
}

.content_landing h3 {
    color: #fff;
    letter-spacing: 12px;
    font-weight: 400;
}

.content_details h3 {
    color: #fff;
    letter-spacing: 5px !important;
    font-weight: 400;
}

.content_details {
    position: relative;
    padding: 38px 40px;
    width: 422px;
    border: none;
    margin: 130px 0 0 50px;
}

.content_landing p {
    color: #ffff;
    font-size: 18px;
    line-height: 1.6;
    margin: 0px 0 24px 0;
}

.content_landing p a {
    color: rgb(238, 241, 248);
}

.highlight_name {
    font-weight: 800;
    font-size:x-large;
}

.content { 
    width: 100%;
    height: 100vh;
    padding: 0rem 1rem;
}

.content h1 {
    font-family: "Roboto";
    font-weight: 900;
    text-transform: uppercase;
    font-size: 50px;
    margin: 0;
    color: #fff;
    margin: 0;
}

.content h3 {
    color: #fff;
    letter-spacing: 12px;
    font-weight: 400;
}

.content p {
    color: #ffff;
    font-size: 18px;
    margin: 0px 0 40px 0;
}

.content p a {
    color: rgb(238, 241, 248);
}

.btn-outline {
    text-decoration: none;
    color: #fff;
    padding: 12px 40px;
    border: 1px solid;
    letter-spacing: 2px;
    font-weight: 500;
}

.btn-outline:hover {
    background: #fff;
    color: #111827;
}

.btn-outline-muted {
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-disabled {
    cursor: not-allowed;
    opacity: 0.64;
}

.btn-outline-disabled:hover {
    background: transparent;
    color: #fff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: rgba(22, 163, 74, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    padding: 8px 14px;
    text-transform: uppercase;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 34px 0;
}

.landing-stats div {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    padding: 14px;
}

.landing-stats strong,
.landing-stats span {
    display: block;
    color: #fff;
}

.landing-stats strong {
    font-size: 22px;
    line-height: 1.1;
}

.landing-stats span {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 6px;
    opacity: 0.84;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.navbar {
    display: flex;
    justify-content: end;
    padding: 1rem;
}

@media only screen and (max-width: 720px) {
    .image-container {
        min-height: 100vh;
        height: auto;
        align-items: center;
    }

    .image-container::before {
        background: rgba(14, 18, 28, 0.78);
    }

    .content_landing {
        margin: 90px 16px 40px;
        padding: 28px 22px;
    }

    .content_landing h1 {
        font-size: 38px;
    }

    .content_landing h3 {
        letter-spacing: 6px;
        font-size: 16px;
    }

    .landing-stats {
        grid-template-columns: 1fr;
    }

    .btn-outline {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        padding: 12px 18px;
    }
}

.content-details {
    height: 100vh;
    filter: brightness(60%);

    /* scroll */
    background-attachment: fixed;
}

/* Dashboard layout */
.dashboard-layout {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: #f4f6f9;
}

.dashboard-layout > header {
    margin: 0;
    padding: 0;
}

.dashboard {
    display: flex;
    padding: calc(var(--main-navbar-height) + 0.5rem) 1.5rem 2.5rem;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    min-height: calc(100vh - var(--main-navbar-height) - var(--dashboard-footer-height));
    box-sizing: border-box;
    transition: margin-left 0.3s ease, width 0.3s ease, max-width 0.3s ease;
}

html.collapsed .sidebar-header .sidebar-header__fav {
    display: block;
    width: 38px;
}

.sideabra-header .sidebar-header__fav {
    display: none;
}

.sidebar-header__logo {
    width: 100px;
    display: block;
}

.sidebar-header__fav {
    display: none;
}

html.collapsed .sidebar-header .sidebar-header__logo {
    display: none;
}

.sidebar {
    background-color: #ffffff;
    color: #ffffff;
    width: var(--sidebar-width);
    min-height: 100vh;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    padding: 0;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
}

html.collapsed .sidebar-wrapper:hover .sidebar {
    width: 230px;
}

html.collapsed .sidebar-wrapper:hover .sidebar .sidebar-header__fav {
    display: none;
}
html.collapsed .sidebar-wrapper:hover .sidebar .sidebar-header__logo {
    display: block;
}

.sidebar-header {
    padding: 2rem 8px;
}

.sidebar-header img {
    width: 40px;
}

#app:not(.dark-theme) .sidebar-header__img--dark,
#app.dark-theme .sidebar-header__img--light {
    display: none !important;
}

.sidebar-header .sidebar-header__title {
    font-size: 20px;
    font-weight: 600;
    color: #52628b;
}

.collapsed .sidebar {
    width: var(--sidebar-width);
}

html.collapsed .sidebar .toggle-button {
    transform: rotate(180deg);
}

.sidebar-menu {
    list-style-type: none;
    padding: 0;
}

.sidebar-menu__item a {
}

.sidebar-menu__item--active a,
.sidebar-menu__item--active a:hover {
    border-left: 4px solid navy;
    background: #f1f3f7;
    font-weight: 500 !important;
}

.sidebar-menu__item a {
    color: #3c4043;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    position: relative;
    font-size: 14px;
    padding: 12px 0;
    width: 100%;
    gap: 1px;
    font-weight: 500;
}

.sidebar-menu a:hover {
    color: #445ebe;
    font-weight: bold;
}

.sidebar-menu a i {
    min-width: 52px; /* Add a fixed width to the icon */
    font-size: 17px;
    text-align: center;
}

.sidebar-menu .sidebar-menu__dropdown {
    position: relative;
}

.sidebar-menu .dropdown-item__count {
    margin-right: 16px;
}

.sidebar-menu .sidebar-menu__dropdown .dropdown-toggle:focus {
    color: #52628b !important;
}

.sidebar-menu .sidebar-menu__dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 16px;
}

.sidebar-menu .dropdown-toggle.show {
    color: #445ebe;
}

.sidebar-menu .dropdown-toggle.show .dropdown-toggle__right {
    transform: rotate(90deg);
}

.sidebar-menu .dropdown-toggle__left i {
    display: inline-block;
}

.sidebar-menu .dropdown-toggle__right i {
    font-size: 20px;
    min-width: auto;
    display: flex;
    position: relative;
}

.sidebar-menu .sidebar-menu__dropdown .dropdown-toggle::after {
    display: none;
}

.sidebar-menu .sidebar-menu__dropdown-content {
    list-style-type: none;
    position: static !important;
    padding: 0 8px;
    transform: none !important;
    border: none;
    border-radius: 0;
}

.sidebar-menu .sidebar-menu__dropdown .sidebar-menu__dropdown-content a {
    padding: 6px 16px;
}

.sidebar-menu__dropdown .sidebar-menu__dropdown-content li a:hover {
    color: #445ebe;
    background: none;
}

.sidebar-menu__dropdown:hover .sidebar-menu__dropdown-title {
    background: #f5f4f4;
}

.sidebar-menu .dropdown-toggle.show,
.sidebar-menu .sidebar-menu__dropdown-content.show {
    background: #f1f3f7;
}

html.collapsed .sidebar {
    padding: 0;
    width: var(--sidebar-width);
    overflow: hidden;
}

.toggle-button {
    border: none;
    background: #fff;
    margin-right: 1rem;
}

.toggle-button__collapsed {
    display: none;
}
html.collapsed .toggle-button__collapsed {
    display: block;
}
html.collapsed .toggle-button__not-collapsed {
    display: none;
}

.toggle-button i {
    color: #52628b;
    font-size: 22px;
}

/* Main Navbar */
header .navbar.main-navbar {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    z-index: 1030;
    margin: 0;
    padding: 0.5rem 1rem;
    padding-right: 1.25rem;
    border-bottom: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    overflow: visible;
    transition: left 0.3s ease, width 0.3s ease, max-width 0.3s ease;
}

.main-navbar .container-fluid,
.main-navbar-right-actions,
.main-navbar .nav-item.dropdown {
    overflow: visible;
}

.main-navbar .container-fluid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-navbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 0;
}

.main-navbar .navbar-brand {
    font-size: 20px;
    font-weight: bold;
    color: #1a1f36;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-navbar-quote {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    padding: 0 0.5rem;
}

.navbar-quote {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 42rem;
    width: 100%;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(57, 73, 171, 0.08) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(57, 73, 171, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    opacity: 1;
    transition: opacity 0.35s ease;
}

.navbar-quote--refreshing {
    opacity: 0.45;
}

.main-navbar-quote--empty {
    visibility: hidden;
}

.navbar-quote__icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: #6366f1;
    opacity: 0.85;
}

.navbar-quote__content {
    min-width: 0;
    text-align: center;
}

.navbar-quote__text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.35;
    font-style: italic;
    color: #374151;
    font-family: Georgia, "Times New Roman", serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.navbar-quote__author {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #6366f1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-quote__dash {
    color: #9ca3af;
    font-weight: 400;
}

.navbar-quote__year {
    font-weight: 500;
    color: #6b7280;
}

.main-navbar .nav-link {
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.main-navbar button.nav-link {
    cursor: pointer;
}

.dashboard-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    height: 28px;
    background-color: #fff;
    border-top: 1px solid #eef0f4;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: left 0.3s ease, width 0.3s ease, max-width 0.3s ease;
}

.dashboard-footer p {
    font-size: 0.75rem;
    color: #6b7280;
}

.main-navbar .navbar-collapse {
    justify-content: flex-end;
    padding-left: 1rem;
}

.main-navbar .navbar-collapse .navbar-nav-left {
    display: none;
}

.main-navbar .navbar-collapse .search-form input {
    width: 400px;
    font-size: 0.875rem;
    background: #e8eaed;
    min-height: 45px;
    font-weight: bold;
    border-left: none;
    padding-left: 0;
}

.main-navbar .navbar-collapse .search-form input:focus-visible,
.main-navbar .navbar-collapse .search-form input:focus {
    outline: 0;
    border: none;
    box-shadow: none;
}

.main-navbar .navbar-collapse .search-form span.input-group-text {
    background: #e8eaed;
}

.main-navbar .dropdown-toggle img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
}

.main-navbar .dropdown-toggle::after {
    display: none;
}

.main-navbar .dropdown-menu {
    box-shadow: 3px 1px 8px 1px rgb(83 83 83 / 10%);
    border: none;
    min-width: 250px;
    padding: 0;
    margin-top: 0.375rem;
    right: 0;
    left: auto;
}

.main-navbar .dropdown-menu .dropdown-menu__user-details {
    padding: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.main-navbar .dropdown-menu .dropdown-menu__user-details .user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.main-navbar .dropdown-menu .dropdown-menu__user-details h6 {
    font-weight: bold;
    margin-bottom: 0;
}

.main-navbar .dropdown-menu .dropdown-menu__user-details p {
    color: #555;
    font-size: 0.8rem;
}

.main-navbar .dropdown-menu ul {
    padding: 0;
    list-style: none;
}

.main-navbar .dropdown-menu ul .dropdown-item {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    border-top: 1px solid #eee;
}

.main-navbar-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
    padding-right: 0.25rem;
}

.main-navbar-right-actions .navbar-nav {
    flex-direction: row;
    flex-shrink: 0;
}


.main-navbar-right-actions .main-navbar-icons-action {
    font-size: 20px;
    color: #555;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.main-navbar #theme_toggle {
    cursor: pointer;
}

/* CHART */
.charts .charts__card .chart-item {
    height: 300px;
}

/* CARD */
.card {
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
    border: none;
    padding: 20px;
}

.card .card-header {
    border-bottom: none;
    padding: 16px 16px 4px;
}

.card .card-header h6 {
    font-weight: bold;
}

.card .card-header button {
    margin: 3px;
    width: 120px;
    float: right;
}

.form-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #eef0f4;
}

.form-action-buttons .btn {
    min-width: 120px;
}

/* Library UI */
.library-page {
    padding-bottom: 2rem;
}

.library-alert {
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top:1rem;
    flex-wrap: wrap;
}

.page-header__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.page-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1a1f36;
}

.page-header__subtitle {
    margin: 0.15rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.page-header__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.library-card {
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

.library-card .card-body--form {
    padding: 1.75rem;
}

.book-cover-thumb {
    display: block;
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.book-cover-thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.25rem;
}

.book-cover-preview-wrap {
    display: inline-block;
}

.book-cover-preview {
    display: block;
    max-width: 140px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.library-table-wrapper {
    padding: 0.25rem 1.25rem 1.25rem;
}

.library-table-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: 1px solid #eef0f4;
}

.library-table-filters__group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
}

.library-table-filters__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0;
}

.library-table-filters__select {
    border-radius: 8px;
    border-color: #dde1e8;
    font-size: 0.875rem;
    min-width: 150px;
}

.library-table-filters__select:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
}

.library-table-wrapper .dataTables_wrapper .dataTables_filter {
    text-align: right;
}

.library-table-wrapper .dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #dde1e8;
    padding: 0.4rem 0.75rem;
    min-width: 220px;
    font-size: 0.875rem;
}

.library-table-wrapper .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
    outline: none;
}

.library-table-wrapper .dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.library-table-wrapper .dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #dde1e8;
    padding: 0.35rem 2rem 0.35rem 0.75rem;
    font-size: 0.875rem;
    min-width: 4.25rem;
    width: auto;
    line-height: 1.4;
    color: #374151;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.75rem;
    cursor: pointer;
}

.library-table-wrapper .dataTables_wrapper .dataTables_length select:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
    outline: none;
}

.library-table-wrapper table.dataTable thead th,
.library-table-wrapper table.dataTable thead td,
.library-table-wrapper table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    font-weight: 600;
    border-bottom: 2px solid #eef0f4;
    white-space: nowrap;
    background-color: #f8f9fc;
}

.library-table-wrapper table.dataTable tbody td,
.library-table-wrapper table tbody td {
    font-size: 0.9rem;
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
    border-color: #eef0f4;
    color: #374151;
}

.library-table-wrapper table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * {
    box-shadow: none !important;
    background-color: #f8f9fc !important;
}

.library-table-wrapper table.dataTable.table-striped > tbody > tr:nth-of-type(even) > * {
    box-shadow: none !important;
    background-color: #fff !important;
}

.library-table-wrapper table.dataTable.table-hover > tbody > tr:hover > * {
    box-shadow: none !important;
    background-color: #f1f3f8 !important;
}

.form-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef0f4;
}

.form-page-header__back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.form-page-header__title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1f36;
}

.form-section {
    margin-bottom: 1.75rem;
}

.form-section__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eef0f4;
}

.form-section--conditional {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #eef0f4;
}

.library-form .form-control-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.library-form .form-control,
.library-form .form-select {
    border-radius: 8px;
    border-color: #dde1e8;
    font-size: 0.9rem;
}

.library-form .form-control:focus,
.library-form .form-select:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
}

.form-text-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #3949ab;
    text-decoration: none;
}

.form-text-link:hover {
    color: #1a237e;
    text-decoration: underline;
}

/* Library modal */
.library-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.library-modal .modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f4;
}

.library-modal .modal-body {
    padding: 1.25rem;
}

.library-modal .modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #eef0f4;
    gap: 0.5rem;
}

.library-modal .form-label {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.35rem;
}

.library-modal .form-control {
    border-radius: 8px;
    border-color: #dde1e8;
    font-size: 0.9rem;
}

.library-modal .form-control:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge--in-library {
    background: #dcfce7;
    color: #166534;
}

.status-badge--borrowed {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge--buying-list {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge--read {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge--unread {
    background: #fef3c7;
    color: #92400e;
}

.status-badge--reading {
    background: #e8e8ff;
    color: #1a1a9a;
}

.status-badge-meta {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.status-badge--toggle {
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.status-badge--toggle:hover:not(:disabled) {
    opacity: 0.85;
    transform: translateY(-1px);
}

.status-badge--toggle:disabled {
    cursor: wait;
    opacity: 0.6;
}

.read-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 20px;
    border: 1px dashed currentColor;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.15s ease, border-style 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.read-status-toggle--read {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.read-status-toggle--unread {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.read-status-toggle--reading {
    color: #1a1a9a;
    background: #e8e8ff;
    border-color: #6b6bd4;
}

.read-status-toggle__state-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.read-status-toggle__swap-icon {
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.75;
}

.read-status-toggle:hover:not(:disabled) {
    border-style: solid;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.read-status-toggle--read:hover:not(:disabled) {
    background: #bbf7d0;
}

.read-status-toggle--unread:hover:not(:disabled) {
    background: #fde68a;
}

.read-status-toggle--reading:hover:not(:disabled) {
    background: #d4d4ff;
}

.read-status-toggle:focus-visible {
    outline: 2px solid #3949ab;
    outline-offset: 2px;
}

.read-status-toggle:disabled {
    cursor: wait;
    opacity: 0.65;
}

.table-inline-select {
    min-width: 120px;
    max-width: 140px;
    font-size: 0.8rem;
    padding: 0.2rem 1.75rem 0.2rem 0.5rem;
    border-radius: 20px;
    border-color: #e5e7eb;
    background-color: #fff;
}

.table-inline-select:focus {
    border-color: #3949ab;
    box-shadow: 0 0 0 0.15rem rgba(57, 73, 171, 0.15);
}

.books-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 14px;
    background: #eef0f4;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

.table-actions .btn {
    padding: 0.3rem 0.55rem;
    line-height: 1;
}

/* Dashboard stats */
.stat-card {
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-icon--success { color: #28a745; }
.stat-card .stat-icon--danger { color: #dc3545; }
.stat-card .stat-icon--warning { color: #ffc107; }
.stat-card .stat-icon--info { color: #17a2b8; }
.stat-card .stat-icon--primary { color: #3949ab; }

.stat-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.dashboard-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    font-weight: 600;
    background-color: #f8f9fc;
    border-bottom: 2px solid #eef0f4;
}

.dashboard-table.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #f8f9fc;
}

.dashboard-table.table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: #fff;
}

.dashboard-table.table-hover > tbody > tr:hover > td {
    background-color: #f1f3f8;
}

.dashboard-panel__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .dashboard-panel__header {
        flex-direction: row;
        align-items: center;
    }
}

.dashboard-overview-row .dashboard-panel {
    min-height: 100%;
}

.stat-card--compact .card-body {
    padding: 0.85rem 0.5rem;
}

.stat-card--compact .stat-icon {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.stat-card--compact .stat-card__value {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.stat-card--compact .stat-card__label {
    font-size: 0.78rem;
}

.dashboard-table--compact thead th,
.dashboard-table--compact tbody td {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    vertical-align: middle;
}

.dashboard-table--compact thead th {
    font-size: 0.68rem;
}

.dashboard-table__meta {
    font-size: 0.72rem;
    line-height: 1.3;
}

.dashboard-table--recent tbody td {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.dashboard-panel--compact .card-header {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.dashboard-account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.85rem 0.75rem 1rem;
    border-top: 1px solid #eef0f4;
    margin-top: auto;
}

.dashboard-account-breakdown {
    background: #f8f9fc;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 0.65rem 0.7rem;
    min-height: 100%;
}

.dashboard-account-breakdown__title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    margin-bottom: 0.55rem;
}

.dashboard-account-breakdown__empty {
    font-size: 0.75rem;
}

.dashboard-account-item + .dashboard-account-item {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #e5e7eb;
}

.dashboard-account-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.76rem;
    margin-bottom: 0.15rem;
}

.dashboard-account-item__amounts {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.dashboard-empty-icon {
    font-size: 2rem;
    color: #9ca3af;
}

.status-badge--sm {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
}

@media (max-width: 991.98px) {
    .dashboard-account-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, 0.45);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.25s ease;
}

html.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
}

body.sidebar-open-no-scroll {
    overflow: hidden;
}

/* ── Dashboard mobile & tablet ── */
@media (max-width: 991.98px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1040;
    }

    html.sidebar-open .sidebar {
        transform: translateX(0);
    }

    html.collapsed .sidebar {
        width: 260px;
        transform: translateX(-100%);
    }

    html.sidebar-open.collapsed .sidebar {
        transform: translateX(0);
    }

    html.collapsed .sidebar-wrapper:hover .sidebar {
        width: 260px;
    }

    header .navbar.main-navbar {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }

    .dashboard {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-height: calc(100vh - var(--main-navbar-height) - var(--dashboard-footer-height));
        padding: calc(var(--main-navbar-height) + 0.35rem) 1rem 2.5rem;
    }

    .dashboard-footer {
        left: 0;
        width: 100%;
        max-width: 100%;
    }

    .main-navbar .navbar-brand {
        font-size: 1rem;
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-navbar .container-fluid {
        gap: 0.5rem;
    }

    .main-navbar-quote {
        display: none;
    }

    .main-navbar .user-name-text {
        display: none;
    }

    .toggle-button__collapsed {
        display: none !important;
    }

    .toggle-button__not-collapsed {
        display: block !important;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header__actions {
        width: 100%;
    }

    .page-header__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .page-header__title {
        font-size: 1.25rem;
    }

    .library-page.container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .library-card .card-body--form {
        padding: 1.25rem;
    }

    .library-table-wrapper {
        padding: 0.25rem 0.75rem 1rem;
    }

    .library-table-wrapper .dataTables_wrapper > .row {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 0.5rem !important;
    }

    .library-table-wrapper .dataTables_wrapper .dataTables_length,
    .library-table-wrapper .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
        width: 100%;
    }

    .library-table-wrapper .dataTables_wrapper .dataTables_length label,
    .library-table-wrapper .dataTables_wrapper .dataTables_filter label {
        width: 100%;
        justify-content: flex-start;
    }

    .library-table-wrapper .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        min-width: 0;
        margin-left: 0 !important;
    }

    .library-table-wrapper .dataTables_wrapper .dataTables_info,
    .library-table-wrapper .dataTables_wrapper .dataTables_paginate {
        text-align: center !important;
        width: 100%;
    }

    .library-table-wrapper .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .form-action-buttons {
        flex-direction: column-reverse;
    }

    .form-action-buttons .btn {
        width: 100%;
        min-width: 0;
    }

    .form-page-header {
        flex-wrap: wrap;
    }

    .card {
        padding: 16px;
    }

    .stat-card h2 {
        font-size: 1.4rem;
    }

    .stat-card .stat-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard {
        padding: calc(var(--main-navbar-height) + 0.25rem) 0.75rem 2.25rem;
    }

    .page-header__content {
        gap: 0.75rem;
    }

    .page-header__icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .table-actions {
        justify-content: flex-start;
    }

    .main-navbar-right-actions {
        gap: 4px;
    }

    .main-navbar-right-actions .main-navbar-icons-action {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .toggle-button {
        margin-right: 0.25rem;
    }
}
