/* Batch Results Styles */

/* Batch processing and results */
.batch-progress-section {
    margin: 0 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.batch-progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #64748b;
    font-size: 0.8rem;
}

.batch-progress-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
    font-weight: 500;
}

#batchSpinner,
.batch-result-status .spinner-border {
    width: 0.7rem;
    height: 0.7rem;
    border-width: 0.1em;
}

.batch-progress-track {
    height: 4px;
    margin-top: 0.55rem;
    overflow: hidden;
    border-radius: 2px;
    background: #e2e8f0;
}

#batchProgressBar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--color-primary);
    transition: width 0.3s;
}

.batch-progress-section.is-complete .batch-progress-label-wrap {
    color: #334155;
}

.batch-summary-section { padding: 0 1rem 1rem; }

#batchSummaryTable {
    margin: 0;
    table-layout: fixed;
    font-size: 0.8rem;
}

#batchSummaryTable thead th {
    padding: 0.7rem 0.5rem 0.45rem;
    border-bottom: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
}

#batchSummaryTable th:first-child,
#batchSummaryTable td:first-child { width: 48%; }
#batchSummaryTable th:nth-child(2),
#batchSummaryTable td:nth-child(2) { width: 20%; }
#batchSummaryTable th:nth-child(3),
#batchSummaryTable td:nth-child(3) { width: 32%; }

#batchSummaryTable:not(.batch-with-pins) .batch-pin-column { display: none; }
#batchSummaryTable:not(.batch-with-pins) th:first-child,
#batchSummaryTable:not(.batch-with-pins) td:first-child { width: 68%; }
#batchSummaryTable:not(.batch-with-pins) th:nth-child(2),
#batchSummaryTable:not(.batch-with-pins) td:nth-child(2) { width: 32%; }

#batchSummaryTable tbody td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.batch-filename-cell {
    overflow-wrap: anywhere;
    color: #475569;
}

.batch-result-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    color: #64748b;
}

.batch-result-status.is-success { color: #047857; }
.batch-result-status.is-error { color: #b91c1c; }
.batch-result-status.is-processing { color: #64748b; }

.batch-load-more {
    padding: 0.65rem !important;
    color: var(--color-text-muted);
    text-align: center;
    cursor: pointer;
}

.batch-pin-cell a {
    color: var(--color-primary-dark);
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.75rem;
    white-space: nowrap;
    text-decoration: none;
}

.batch-pin-cell a:hover {
    color: #6d28d9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.batch-download-helper {
    display: block;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
}

.batch-result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    #downloadBatchBtn .btn-text { display: inline; }
    #downloadBatchBtn i {
        margin-right: 0.25rem !important;
        font-size: 0.95rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    /* Download button - hover green */
    #downloadBatchBtn:hover {
        --button-shadow-color: 5, 150, 105;
        background: linear-gradient(180deg, #2bca98 0%, #079b6e 100%) !important;
        border-color: #059669 !important;
        color: white !important;
        transform: translateY(-1px);
        box-shadow:
            0 2px 3px rgba(15, 23, 42, 0.08),
            0 3px 7px rgba(5, 150, 105, 0.12),
            var(--control-highlight);
    }
}
