#tab-bookshelf>div.dragging {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.yomitai-button {
    width: 100%;
    display: block;
    padding: 6px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.yomitai-button[data-active="false"] {
    background-color: #fffce6;
    color: #666;
}

.yomitai-button[data-active="true"] {
    background-color: #d97f1c;
    color: #fff;
}

.yomitai-menu {
    background: #fff !important;
    padding: 0;
    border: none;
    box-shadow: none;
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
}

.yomitai_btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff !important;
    border: 2px solid #4dd0e1;
}

.yomitai_btn[data-active="false"] {
    background-color: #f9f9f9;
}

.yomitai_btn[data-active="true"] {
    background-color: #ffe0b2;
}

.yomitai_btn label {
    width: 80px;
    background: #fff6c2;
    color: #666;
    padding: 6px 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.yomitai_btn input:checked+label {
    background: #d97f1c;
    color: #fff;
}

.yomitai_btn label[for^="recommend-"] {
    background-color: #e0f7fa;
    color: #007b8a;
    font-weight: bold;
}

.yomitai_btn label[for^="recommend-"]:hover {
    background-color: #b2ebf2;
    color: #005f6b;
}

.yomitai_btn input:checked+label[for^="recommend-"] {
    background-color: #4dd0e1;
    color: #fff;
}

.yomitai_option label[for^="want-"] {
    color: #f39a38;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    width: 90px;
}

.yomitai_note {
    margin-left: 15px;
}

.yomitai_explanation {
    font-size: 10px;
    color: #555;
}

.rating-section select {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fffef5;
    font-weight: bold;
}

.note-section textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    resize: vertical;
    background-color: #fffef5;
}

.yomitai_top {
    margin-bottom: 10px;
}

.yomitai_bottom_row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.yomitai-record-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin: 16px 0 8px 0;
}

.yomitai-popup-title {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.comiclist-wrapper {
    overflow-x: auto;
    width: 100%;
    margin: 20px auto;
    max-width: 100%;
}

.comiclist-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100px;
}

.comiclist-table th,
.comiclist-table td {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 14px;
}

.comiclist-table th {
    background-color: #f39a38;
    color: white;
}

.comiclist-table tbody tr:hover {
    background-color: #e0f7ff !important;
    transition: background-color 0.3s;
}

.title-col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-col-small {
    min-width: 100px;
    max-width: 100px;
}

.title-col-medium {
    min-width: 200px;
    max-width: 200px;
}

.title-col-large {
    min-width: 300px;
    max-width: 300px;
}

.title-col-max {
    max-width: none;
}

.custom-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-left: 40px;
    background-color: #fff6c2;
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 24px;
    pointer-events: none;
    z-index: 2;
}

#custom-searchbox input[type="search"] {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 10px 10px 0;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

#settings-panel select {
    padding: 6px 12px;
    border: 1px solid #5ac8fa;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%3E%3Cpath%20fill='%235ac8fa'%20d='M4%206l4%204%204-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 16px;
}

#settings-panel select:focus {
    outline: none;
    border-color: #5ac8fa;
    box-shadow: 0 0 5px rgba(90, 200, 250, 0.5);
}

#settings-panel label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    margin: 4px 4px 4px 0;
    border: 1px solid #5ac8fa;
    border-radius: 6px;
    background: #e7f8ff;
    cursor: pointer;
    font-size: 13px;
}

#settings-panel input[type="checkbox"] {
    accent-color: #5ac8fa;
}

.dataTables_paginate .paginate_button {
    background-color: #eee !important;
    color: #777 !important;
    border: none !important;
    border-radius: 10px !important;
    margin: 10px;
}

.paginate-sm .paginate_button {
    font-size: 1em;
}

.paginate-md .paginate_button {
    font-size: 1.5em;
}

.paginate-lg .paginate_button {
    font-size: 2em;
}

.comiclist-filter-row {
    display: none;
    background: #fff6c2;
    padding: 10px;
    margin: 0 auto 10px !important;
    border-radius: 12px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    width: fit-content;
}

.comiclist-filter-row select {
    appearance: none;
    padding: 6px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%3E%3Cpath%20fill='%23999'%20d='M4%206l4%204%204-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 160px;
}

.comiclist-filter-row select:focus {
    outline: none;
    border-color: #5ac8fa;
    box-shadow: 0 0 5px rgba(90, 200, 250, 0.5);
}

.book-item {
    display: inline-block;
    margin: 5px;
    width: calc(25% - 10px);
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-item.text-mode {
    text-align: left;
}

.book-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    position: relative;
}

.book-image-area {
    width: 100%;
    aspect-ratio: 3/4;
    background: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.book-image-area img {
    height: 100%;
    width: auto;
    min-height: 100%;
    min-width: 100%;
}

.custom-star {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 3px;
    font-size: 12px;
    color: #f39a38;
}

.book-title {
    margin-top: 5px;
    font-size: 10px;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.comiclist-updated-date {
    margin: 0 0 2px 0;
    font-size: 12px;
    color: #666;
    text-align: right;
}

.comiclist-heading {
    margin-bottom: 2px !important;
}

.login-required {
    font-size: large;
}

.comic-search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.comiclist-disclaimer {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin: 10px 0 20px;
}

.comiclist-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    padding: 20px 40px;
    border-radius: 10px;
    z-index: 9999;
    animation: fadeBlink 1s infinite;
}

@keyframes fadeBlink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}