/* Collapsible button */
.collapsible {
    background-color: #f1f1f1;
    color: #333;
    cursor: pointer;
    padding: 10px 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.collapsible:hover {
    background-color: #ddd;
}

/* Active state */
.collapsible.active {
    background-color: #ccc;
}

/* Content inside collapsible */
.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

.content label,
.content input,
.content button {
    display: block;
    margin: 8px 0;
}


.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
}

.thumb-nav.left {
    left: 40px;
}

.thumb-nav.right {
    right: 40px;
}

.thumb-nav:hover {
    background: rgba(255,255,255,0.45);
}
.thumb-strip {
    white-space: nowrap;
}

.thumb {
    flex: 0 0 auto; /* 🔑 prevents shrinking/wrapping */
}

.complete_book_div {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.preview-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.preview-nav button {
    border: none;
    background: rgba(0,0,0,0.1);
    /*width: 36px;
    height: 36px;*/
    border-radius: 50%;
    cursor: pointer;
    padding: 6px;
}

.preview-nav img {
    width: 180px;
    border: 1px solid #fff;
}


.page-loader {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.page-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #1bb3ad;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}