﻿/* Basic styles */
body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* --- Chapter page uploader --- */
.kiya-dropzone {
    border: 2px dashed #adb5bd;
    border-radius: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.kiya-dropzone:hover {
    border-color: #0d6efd;
}
.kiya-dropzone.dragover {
    border-color: #0d6efd;
    background: #e7f1ff;
}
.kiya-dropzone .bi {
    font-size: 2.2rem;
    color: #adb5bd;
    display: block;
    margin-bottom: 0.25rem;
}

.kiya-pages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.page-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.page-card.draggable {
    cursor: grab;
}
.page-card.dragging {
    opacity: 0.5;
    border-color: #0d6efd;
}
.page-card .page-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.page-card .page-name {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0.5rem;
    font-size: 0.75rem;
    word-break: break-all;
    overflow: hidden;
    color: #6c757d;
}
.page-num {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.05rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}
.staged-remove,
.remove-page {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    z-index: 2;
    padding: 0 0.4rem;
    line-height: 1.3;
    font-size: 0.8rem;
}
