#imagesToPdfTool .stat-box {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #fff;
    height: 100%;
}

#imagesToPdfTool .stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}

#imagesToPdfTool .dropzone {
    border: 2px dashed #adb5bd;
    border-radius: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

#imagesToPdfTool .dropzone.is-dragover {
    border-color: #0d6efd;
    background: #eef5ff;
}

#imagesToPdfTool .preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

#imagesToPdfTool .preview-card {
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.7rem rgba(33, 37, 41, 0.05);
}

#imagesToPdfTool .preview-card.is-dragging {
    opacity: 0.55;
}

#imagesToPdfTool .preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

#imagesToPdfTool .drag-handle {
    cursor: grab;
    color: #6c757d;
    font-size: 1.05rem;
    user-select: none;
}

#imagesToPdfTool .preview-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

#imagesToPdfTool .preview-image {
    display: block;
    width: 100%;
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
}

#imagesToPdfTool .preview-card-body {
    padding: 0.9rem;
}

#imagesToPdfTool .file-name {
    font-weight: 600;
    word-break: break-word;
}

#imagesToPdfTool .meta-list {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: #495057;
}

#imagesToPdfTool .thumbnail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

#imagesToPdfTool .result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#imagesToPdfTool .empty-state {
    border: 1px dashed #ced4da;
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
    background: #fff;
}

@media (max-width: 575.98px) {
    #imagesToPdfTool .preview-grid {
        grid-template-columns: 1fr;
    }

    #imagesToPdfTool .preview-image-wrap {
        min-height: 180px;
    }
}
