/* ==========================================================================
   Pipeline - Processing Overlay, Upload
   ========================================================================== */

/* Upload overlay */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.upload-overlay.hidden {
    display: none;
}

.drop-zone {
    background: #16213e;
    border: 2px dashed #e94560;
    border-radius: 16px;
    padding: 60px 80px;
    text-align: center;
    max-width: 500px;
    transition: border-color 0.2s, background 0.2s;
}

.drop-zone.dragover {
    border-color: #ff6b6b;
    background: #1a2a4e;
}

.drop-zone h2 {
    color: #e94560;
    margin-bottom: 12px;
    font-size: 22px;
}

.drop-zone p {
    color: #888;
    margin-bottom: 24px;
}

.browse-btn {
    background: #e94560;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.browse-btn:hover {
    background: #ff6b6b;
}

/* Upload content layout */
.upload-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 900px;
    width: 90%;
}

.upload-books-section {
    flex: 1;
    max-width: 400px;
}

.upload-books-section h2 {
    color: #e94560;
    margin-bottom: 16px;
    font-size: 20px;
}

.upload-books-list {
    background: #16213e;
    border-radius: 12px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.upload-books-loading,
.upload-books-empty {
    text-align: center;
    padding: 32px 16px;
    color: #666;
}

.upload-book-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #1a1a2e;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-book-item:last-child {
    margin-bottom: 0;
}

.upload-book-item:hover {
    background: #222244;
}

.upload-book-info h3 {
    color: #eee;
    font-size: 15px;
    margin-bottom: 3px;
    font-weight: 500;
}

.upload-book-info p {
    color: #888;
    font-size: 12px;
}

.upload-divider {
    width: 1px;
    height: 300px;
    background: #333;
    flex-shrink: 0;
}

/* Hidden file input */
#file-input {
    display: none;
}

/* Processing overlay */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

.processing-overlay.hidden {
    display: none;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #0f3460;
    border-top: 4px solid #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

.processing-text {
    color: #eee;
    font-size: 18px;
    margin-bottom: 12px;
}

.processing-subtext {
    color: #888;
    font-size: 14px;
}
