/* ============================================
   BKLOG - Modal Styles
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 41, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: var(--space-lg);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--ocean-surface);
    border: 1px solid var(--ocean-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal.large {
    max-width: 1000px;
}

.modal.small {
    max-width: 480px;
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--ocean-light);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--steel-100);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--steel-400);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--ocean-mid);
    color: var(--steel-100);
}

/* Modal Body */
.modal-body {
    flex: 1;
    padding: var(--space-xl);
    overflow-y: auto;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--ocean-light);
}

/* Request Type Toggle */
.request-type-toggle {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-xs);
    background: var(--ocean-dark);
    border-radius: var(--radius-md);
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--steel-400);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--steel-200);
    background: var(--ocean-surface);
}

.toggle-btn.active {
    background: var(--ocean-surface);
    color: var(--accent-cyan);
}

.toggle-btn svg {
    flex-shrink: 0;
}

/* Existing Request Info */
.existing-request-info {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--ocean-dark);
    border-radius: var(--radius-md);
    border: 1px solid var(--ocean-light);
}

.request-info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
}

.request-info-item .label {
    font-size: 0.75rem;
    color: var(--steel-400);
}

.request-info-item .value {
    font-size: 0.875rem;
    color: var(--steel-200);
    font-weight: 500;
}

/* Client Info Form */
.client-info-form {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--steel-300);
}

.form-input {
    padding: var(--space-sm) var(--space-md);
    background: var(--ocean-dark);
    border: 1px solid var(--ocean-light);
    border-radius: var(--radius-md);
    color: var(--steel-100);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.1);
}

.form-input::placeholder {
    color: var(--steel-500);
}

/* Input con error - animación de resaltado */
.form-input.input-error,
select.input-error {
    border-color: var(--status-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--ocean-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent-cyan);
    background: rgba(79, 209, 197, 0.05);
}

.upload-zone-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.upload-zone-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--steel-200);
    margin-bottom: var(--space-sm);
}

.upload-zone-text {
    font-size: 0.875rem;
    color: var(--steel-400);
}

.upload-zone-btn {
    margin-top: var(--space-md);
}

.upload-zone input[type="file"] {
    display: none;
}

/* Progress Container - Dual Bars */
.progress-container {
    display: none;
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--ocean-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ocean-light);
}

.progress-container.active {
    display: block;
}

/* Progress Section */
.progress-section {
    margin-bottom: var(--space-lg);
}

.progress-section:last-of-type {
    margin-bottom: var(--space-md);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.progress-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--steel-200);
}

.progress-label svg {
    color: var(--steel-400);
}

.progress-text {
    font-size: 0.75rem;
    color: var(--steel-400);
    font-family: var(--font-mono);
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--ocean-surface);
    border-radius: 100px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    transition: width 0.3s ease-out;
}

.progress-fill.extraction {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}

.progress-fill.validation {
    background: linear-gradient(90deg, var(--success), #34d399);
}

/* Progress Stats */
.progress-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--ocean-light);
}

.progress-stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.progress-stat .stat-label {
    font-size: 0.75rem;
    color: var(--steel-400);
}

.progress-stat .stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--steel-200);
}

/* Confidence Score Colors */
.progress-stat .stat-value.score-good {
    color: var(--success);
}

.progress-stat .stat-value.score-medium {
    color: var(--warning);
}

.progress-stat .stat-value.score-low {
    color: var(--error);
}

/* Animation for active progress */
@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-fill {
    animation: progressPulse 1.5s ease-in-out infinite;
}

.progress-fill[style*="100%"] {
    animation: none;
}

/* Progress Log - Shows inconsistencies and corrections */
.progress-log {
    margin-top: var(--space-md);
    border-top: 1px solid var(--ocean-light);
    padding-top: var(--space-md);
}

.progress-log-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--steel-400);
    margin-bottom: var(--space-sm);
}

.progress-log-header svg {
    color: var(--steel-500);
}

.progress-log-entries {
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    line-height: 1.6;
}

.progress-log-entry {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.3s ease;
}

.progress-log-entry:last-child {
    border-bottom: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-log-entry .log-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.progress-log-entry .log-text {
    flex: 1;
    color: var(--steel-300);
}

.progress-log-entry .log-field {
    color: var(--accent-cyan);
    font-weight: 500;
}

.progress-log-entry .log-time {
    color: var(--steel-500);
    font-size: 0.65rem;
}

/* Log entry types */
.progress-log-entry.type-info .log-icon { color: var(--info); }
.progress-log-entry.type-warning .log-icon { color: var(--warning); }
.progress-log-entry.type-error .log-icon { color: var(--error); }
.progress-log-entry.type-success .log-icon { color: var(--success); }
.progress-log-entry.type-correction .log-icon { color: var(--accent-gold); }

/* Estilos para valores esperados vs extraídos en errores */
.progress-log-entry.type-warning .log-text {
    line-height: 1.5;
}

.progress-log-entry .log-text .log-expected {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.progress-log-entry .log-text .log-extracted {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.progress-log-entry .log-text .log-status {
    color: var(--warning);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.progress-log-entry.type-correction .log-text {
    color: var(--accent-gold);
    font-style: italic;
}

/* Scrollbar for log */
.progress-log-entries::-webkit-scrollbar {
    width: 4px;
}

.progress-log-entries::-webkit-scrollbar-track {
    background: var(--ocean-dark);
}

.progress-log-entries::-webkit-scrollbar-thumb {
    background: var(--ocean-mid);
    border-radius: 2px;
}

/* Result Tabs */
.result-container {
    display: none;
    margin-top: var(--space-lg);
}

.result-container.active {
    display: block;
}

.result-tabs {
    display: flex;
    gap: 4px;
    padding: var(--space-sm);
    background: var(--ocean-dark);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow-x: auto;
}

.result-tab {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--steel-400);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.result-tab:hover {
    color: var(--steel-200);
    background: var(--ocean-surface);
}

.result-tab.active {
    color: var(--accent-cyan);
    background: var(--ocean-surface);
}

.result-tab.detected {
    position: relative;
}

.result-tab.detected::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

/* Validation Banner - Opción de validar */
.validation-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(79, 209, 197, 0.1);
    border: 1px solid rgba(79, 209, 197, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.validation-banner-icon {
    flex-shrink: 0;
    color: var(--accent-cyan);
}

.validation-banner-content {
    flex: 1;
}

.validation-banner-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.validation-banner-text {
    font-size: 0.75rem;
    color: var(--steel-400);
    margin-top: 2px;
}

.validation-banner button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.validation-banner .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Warning Banner - Campos con dudas */
.warning-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.warning-banner-icon {
    flex-shrink: 0;
    color: var(--warning);
}

.warning-banner-content {
    flex: 1;
}

.warning-banner-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--warning);
    margin-bottom: var(--space-xs);
}

.warning-score {
    font-weight: 400;
    color: var(--steel-400);
    font-size: 0.75rem;
}

.warning-banner-fields {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.warning-field {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-sm);
    color: var(--steel-300);
    font-family: var(--font-mono);
}

.warning-more {
    font-size: 0.7rem;
    color: var(--steel-500);
    font-style: italic;
}

.warning-banner-toggle {
    flex-shrink: 0;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    color: var(--warning);
    background: transparent;
    border: 1px solid var(--warning);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.warning-banner-toggle:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Warning Details Table */
.warning-details {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--ocean-dark);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.warning-details.hidden {
    display: none;
}

.warning-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.warning-table th,
.warning-table td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--ocean-light);
}

.warning-table th {
    font-weight: 600;
    color: var(--steel-400);
    background: var(--ocean-surface);
}

.warning-campo {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

.warning-status {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.warning-status.status-incorrecto { color: var(--error); }
.warning-status.status-parcial { color: var(--warning); }
.warning-status.status-faltante { color: var(--info); }
.warning-status.status-revisar { color: var(--steel-400); }

.warning-expected {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.warning-extracted {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* ============================================
   Duplicate Banner - Documento duplicado
   ============================================ */

.duplicate-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.duplicate-banner-icon {
    flex-shrink: 0;
    color: var(--error);
}

.duplicate-banner-content {
    flex: 1;
}

.duplicate-banner-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--error);
    margin-bottom: var(--space-xs);
}

.duplicate-banner-text {
    font-size: 0.875rem;
    color: var(--steel-300);
    margin-bottom: var(--space-sm);
}

.duplicate-banner-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--steel-400);
}

.duplicate-banner-details strong {
    color: var(--steel-300);
}

.duplicate-banner-actions {
    flex-shrink: 0;
}

/* Extraction duplicate (datos idénticos) - blue/info style */
.duplicate-banner.extraction-duplicate {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.duplicate-banner.extraction-duplicate .duplicate-banner-icon {
    color: var(--info, #3b82f6);
}

.duplicate-banner.extraction-duplicate .duplicate-banner-title {
    color: var(--info, #3b82f6);
}

/* ============================================
   Previous Doc Banner - Documento existente (informativo)
   ============================================ */

.previous-doc-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.previous-doc-banner-icon {
    flex-shrink: 0;
    color: var(--steel-400, #9ca3af);
}

.previous-doc-banner-content {
    flex: 1;
}

.previous-doc-banner-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--steel-300, #d1d5db);
    margin-bottom: var(--space-xs);
}

.previous-doc-banner-text {
    font-size: 0.875rem;
    color: var(--steel-400);
    margin-bottom: var(--space-sm);
}

.previous-doc-banner-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--steel-400);
}

.previous-doc-banner-details strong {
    color: var(--steel-300);
}

.previous-doc-banner-actions {
    flex-shrink: 0;
}

/* ============================================
   Update Banner - Solicitud actualizada
   ============================================ */

.update-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.update-banner-icon {
    flex-shrink: 0;
    color: var(--info);
}

.update-banner-content {
    flex: 1;
}

.update-banner-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--info);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.update-version {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-weight: 500;
}

.update-banner-text {
    font-size: 0.875rem;
    color: var(--steel-300);
    margin-bottom: var(--space-sm);
}

.update-banner-changes {
    font-size: 0.75rem;
}

.changes-count {
    color: var(--accent-cyan);
    font-weight: 500;
}

.no-changes {
    color: var(--steel-500);
    font-style: italic;
}

/* Changes Details Table */
.changes-details {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--ocean-dark);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.changes-details.hidden {
    display: none;
}

.changes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.changes-table th,
.changes-table td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--ocean-light);
}

.changes-table th {
    font-weight: 600;
    color: var(--steel-400);
    background: var(--ocean-surface);
}

.change-type {
    font-size: 0.7rem;
    text-transform: capitalize;
}

.change-campo {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

.change-before {
    color: var(--steel-500);
    text-decoration: line-through;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.change-after {
    color: var(--success);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.change-modified td { background: rgba(245, 158, 11, 0.05); }
.change-added td { background: rgba(16, 185, 129, 0.05); }
.change-removed td { background: rgba(239, 68, 68, 0.05); }

.changes-more {
    text-align: center;
    color: var(--steel-500);
    font-style: italic;
}

/* JSON Panel */
.json-panel {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-md);
    background: var(--ocean-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
}

.json-panel.active {
    display: block;
}

.json-panel pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* JSON Syntax Highlighting */
.json-key { color: var(--accent-cyan); }
.json-string { color: var(--success); }
.json-number { color: var(--accent-gold); }
.json-boolean { color: var(--error); }
.json-null { color: var(--steel-500); }

/* Download Actions */
.download-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 2000;
}

/* Toast */
.toast {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--ocean-surface);
    border: 1px solid var(--ocean-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    color: var(--steel-200);
}

.toast-close {
    padding: 4px;
    background: transparent;
    border: none;
    color: var(--steel-500);
    cursor: pointer;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
}

/* Confirm Modal */
.confirm-modal .modal-body {
    text-align: center;
    padding: var(--space-2xl);
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 129, 129, 0.15);
    border-radius: 50%;
    color: var(--error);
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--steel-100);
    margin-bottom: var(--space-sm);
}

.confirm-text {
    font-size: 0.875rem;
    color: var(--steel-400);
    max-width: 300px;
    margin: 0 auto;
}

/* ============================================
   File Queue (Multiple Files)
   ============================================ */
.file-queue {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--ocean-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ocean-light);
}

.file-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ocean-light);
}

.file-queue-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--steel-200);
}

.file-queue-count {
    font-size: 0.75rem;
    color: var(--steel-400);
    font-family: var(--font-mono);
}

.file-queue-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: var(--space-md);
}

.file-queue-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--ocean-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    transition: all var(--transition-fast);
}

.file-queue-item:hover {
    background: var(--ocean-mid);
}

.file-queue-item.processing {
    border-left: 3px solid var(--accent-cyan);
    animation: pulse 1.5s ease-in-out infinite;
}

.file-queue-item.completed {
    border-left: 3px solid var(--success);
}

.file-queue-item.error {
    border-left: 3px solid var(--error);
}

.file-queue-item .file-icon {
    font-size: 1.25rem;
}

.file-queue-item .file-info {
    flex: 1;
    min-width: 0;
}

.file-queue-item .file-name {
    font-size: 0.875rem;
    color: var(--steel-200);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-queue-item .file-size {
    font-size: 0.75rem;
    color: var(--steel-500);
}

.file-queue-item .file-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.file-queue-item .file-status.pending {
    background: var(--ocean-mid);
    color: var(--steel-400);
}

.file-queue-item .file-status.processing {
    background: rgba(79, 209, 197, 0.15);
    color: var(--accent-cyan);
}

.file-queue-item .file-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.file-queue-item .file-status.error {
    background: rgba(252, 129, 129, 0.15);
    color: var(--error);
}

.file-queue-item .file-remove {
    padding: 4px;
    background: transparent;
    border: none;
    color: var(--steel-500);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.file-queue-item:hover .file-remove {
    opacity: 1;
}

.file-queue-item .file-remove:hover {
    color: var(--error);
}

.file-queue-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   Difference Confirmation Modal
   ============================================ */
.diff-intro {
    font-size: 0.875rem;
    color: var(--steel-300);
    margin-bottom: var(--space-md);
}

.diff-list {
    background: var(--ocean-dark);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.diff-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--ocean-light);
}

.diff-item:last-child {
    border-bottom: none;
}

.diff-field {
    font-weight: 500;
    color: var(--steel-200);
    min-width: 100px;
}

.diff-existing {
    color: var(--error);
    text-decoration: line-through;
    opacity: 0.7;
}

.diff-arrow {
    color: var(--steel-500);
}

.diff-new {
    color: var(--success);
    font-weight: 500;
}

.diff-question {
    font-size: 0.875rem;
    color: var(--steel-300);
    font-weight: 500;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: var(--ocean-dark);
}

.btn-warning:hover {
    filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-overlay {
        padding: 0;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
    }

    .toast {
        min-width: unset;
    }
}
