/* Chunk Selection Styles */
/* Progress container fix - ensure it doesn't block the UI when done */
#progressContainer {
    pointer-events: auto !important;
}
#progressContainer.processing {
    z-index: 1100;
}
#progressContainer:not(.processing) {
    display: none !important;
    z-index: -1;
    background: transparent !important;
}

.chunk-item {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    cursor: pointer;
    min-height: 190px;
    background: rgba(0, 0, 0, 0.16);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.chunk-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(13, 202, 240, 0.7);
    transform: translateY(-2px);
}

.chunk-item.selected {
    background-color: rgba(13, 110, 253, 0.2);
    border: 2px solid #0d6efd;
}

.chunk-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.chunk-thumbnail-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chunk-item-checkbox {
    margin-right: 10px;
}

.chunk-item-number {
    font-weight: bold;
    margin-right: 8px;
}

.chunk-item-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    white-space: pre-wrap;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.42;
    color: #d1d5db;
}

.chunk-word-count {
    margin-left: auto;
    color: #9ca3af;
    font-size: 0.78rem;
}

.chunk-preview-content {
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Selected chunks summary */
.selected-chunks-summary {
    background-color: rgba(0, 0, 0, 0.05);
}

#selectedChunksSummary {
    font-size: 0.9em;
}

/* Active chunk highlight */
.chunk-item.active-preview {
    border-color: #ffc107;
    border-left-width: 3px;
    background-color: rgba(255, 193, 7, 0.1);
}