/* Todo & Task Management Styles - Following Watchlist Pattern */

/* Sub-tabs */
.sub-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 20px 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 2px solid #e5e7eb;
}

.sub-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.sub-tab-btn:hover {
    color: #333;
    background: #f9fafb;
}

.sub-tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
}

.todo-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.todo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.todo-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.todo-header .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Statistics Cards */
.todos-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    min-width: 0;
    flex: 1;
}

.stat-card .stat-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card .stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Filter Summary */
.filter-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-summary-item {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-summary-item:hover {
    background: #f0f0f0;
}

.filter-summary-item.active {
    font-weight: bold;
    color: #2196F3;
    background: #e3f2fd;
}

.filter-summary-count {
    color: #666;
    font-size: 0.85rem;
    margin-left: 8px;
}

.filter-summary-item.active .filter-summary-count {
    color: #1976D2;
}

@media (max-width: 1200px) {
    .todos-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .todos-stats {
        flex-direction: column;
    }
}

/* Layout with Sidebar */
.todo-layout {
    display: flex;
    gap: 20px;
}

.todo-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.todo-main {
    flex: 1;
    min-width: 0;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.filter-section .filter-select,
.filter-section .filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.filter-section .filter-input {
    margin-bottom: 8px;
}

.filter-section .btn-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #4CAF50;
    background: #4CAF50;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-section .btn-search:hover {
    background: #45a049;
    border-color: #45a049;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 1px;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

/* Filters */
.todos-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select, .filter-input, .export-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.filter-input {
    flex: 1;
    min-width: 200px;
}

.search-group {
    display: flex;
    gap: 5px;
    flex: 1;
    min-width: 250px;
}

.search-group .filter-input {
    flex: 1;
    min-width: 0;
}

.btn-search {
    padding: 8px 16px;
    border: 1px solid #4CAF50;
    background: #4CAF50;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-search:hover {
    background: #45a049;
    border-color: #45a049;
}

/* Todo List */
.todos-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}

/* Pagination */
.todos-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

.pagination-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.btn-pagination {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-pagination:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #4CAF50;
}

.btn-pagination.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #999;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.todo-item:hover {
    background: #f9fafb;
}

.todo-checkbox {
    margin-right: 12px;
    margin-top: 4px;
}

.todo-content {
    flex: 1;
}

.todo-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.todo-id-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.todo-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.todo-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #999;
}

.todo-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
}

.priority-high { color: #ef4444; }
.priority-medium { color: #f59e0b; }
.priority-low { color: #10b981; }

.category-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    background: #e5e7eb;
    color: #666;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

#todoDescriptionEditor {
    min-height: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}


/* Subtasks */
.subtasks-list {
    margin-top: 8px;
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 6px;
}

.subtask-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.subtask-select-checkbox {
    margin-right: 8px;
}

.subtask-item.completed {
    opacity: 0.6;
}

.subtask-item.completed .subtask-title {
    text-decoration: line-through;
}

.subtask-title {
    flex: 1;
    font-size: 0.9rem;
}

.subtask-actions {
    margin-bottom: 10px;
}

.btn-delete-selected {
    padding: 8px 16px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-delete-selected:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#subtaskProgress {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}


/* Execute Button */
.todo-execute {
    padding: 6px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    margin-right: 8px;
}

.todo-execute:hover {
    background: #45a049;
    transform: scale(1.05);
}

.todo-execute:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}


/* Results Button */
.todo-results {
    padding: 6px 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    margin-right: 8px;
}

.todo-results:hover {
    background: #1976D2;
    transform: scale(1.05);
}

/* Results Modal */
.results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.result-stat label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.result-stat span {
    font-size: 0.95rem;
    font-weight: 600;
}

.results-conclusion {
    margin-bottom: 25px;
    padding: 16px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
}

.results-conclusion h3 {
    margin: 0 0 12px 0;
    color: #1976D2;
    font-size: 1.1rem;
}

.conclusion-content {
    color: #333;
    line-height: 1.6;
    white-space: normal;
}

.conclusion-content p {
    margin: 12px 0;
}

.conclusion-content ul {
    margin: 8px 0 12px 0;
    padding-left: 20px;
}

.conclusion-content li {
    margin: 6px 0;
    line-height: 1.5;
}

.conclusion-content strong {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
}

.result-subtask-numbered {
    margin-bottom: 20px;
    border-left: 3px solid #e0e0e0;
    padding-left: 12px;
}

.subtask-header-line {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.subtask-header-line .agent-name {
    color: #2196F3;
    font-weight: 500;
}

.subtask-result-content {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.results-subtasks h3 {
    margin-bottom: 15px;
    color: #333;
}

.user-rating-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.user-rating-section h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.rating-input-group {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.rating-input-group input[type="number"] {
    text-align: center;
    font-weight: 600;
}

.rating-input-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.result-subtask {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.result-subtask.completed {
    border-left: 4px solid #4CAF50;
}

.result-subtask.failed {
    border-left: 4px solid #f44336;
}

.result-subtask-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.result-subtask-status {
    font-size: 1.2rem;
}

.result-subtask-agent {
    margin-left: auto;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976D2;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.result-subtask-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.result-subtask-response {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.btn-retry {
    width: 100%;
    padding: 12px;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-retry:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-export {
    flex: 1;
    padding: 10px;
    background: #607D8B;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: #455A64;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* ==================== Batch Execution Styles ==================== */

/* AI Options Panel */
.ai-options-panel {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.ai-options-header {
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.ai-options-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.btn-ai-recommend {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-ai-recommend:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn-ai-recommend:active {
    transform: translateY(0);
}

.ai-options-content {
    padding: 15px;
    background: #f9f9f9;
}

.option-row {
    margin-bottom: 12px;
}

.option-row:last-child {
    margin-bottom: 0;
}

.option-row > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
}

.option-row select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    font-size: 0.85rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

.option-row label input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
}

/* Subtask Row Structure */
.subtask-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.subtask-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subtask-name {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.subtask-description {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 50px;
    font-family: inherit;
}

.subtask-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.subtask-priority {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.subtask-order {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn-remove-subtask {
    width: 32px;
    height: 32px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-remove-subtask:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

/* ==================== Batch Execution Styles ==================== */

/* Selection Bar */
.selection-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.selection-info input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.parallelism-select {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
    flex: 1;
    max-width: 220px;
}

.btn-run-batch {
    padding: 6px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-run-batch:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-cancel-selection {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-selection:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Todo Item Selection */
.todo-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
}

/* Batch Progress Modal - Compact */
.batch-progress-content {
    padding: 12px;
}

#batchProgressModal .modal-content {
    padding: 0;
}

#batchProgressModal .modal-header {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

#batchProgressModal .modal-header h3 {
    font-size: 0.95rem;
    margin: 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-header h4 {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
}

.btn-cancel-batch {
    padding: 4px 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-cancel-batch:hover {
    background: #d32f2f;
}

.progress-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.stat-item {
    flex: 1;
    padding: 6px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.stat-value.stat-success {
    color: #4CAF50;
}

.stat-value.stat-error {
    color: #f44336;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.batch-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.batch-section {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 8px;
}

.batch-section h5 {
    margin: 0 0 6px 0;
    color: #555;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.batch-list {
    max-height: 120px;
    overflow-y: auto;
}

.batch-item {
    padding: 4px 8px;
    margin-bottom: 3px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.batch-item.running {
    background: #2196F3;
    color: white;
    animation: pulse 1.5s infinite;
}

.batch-item.queued {
    background: #e0e0e0;
    color: #666;
}

.batch-item.success {
    background: #C8E6C9;
    color: #2E7D32;
}

.batch-item.error {
    background: #FFCDD2;
    color: #C62828;
}

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

/* Batch Summary - Compact */
.batch-summary {
    padding: 15px;
}

.batch-summary h3 {
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
    font-size: 1.1rem;
}

.summary-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.summary-stat {
    text-align: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    min-width: 100px;
}

.summary-stat.success {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
}

.summary-stat.error {
    background: linear-gradient(135deg, #FFCDD2 0%, #EF9A9A 100%);
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.summary-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-results {
    margin-bottom: 15px;
}

.summary-results h4 {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 0.95rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.result-item.success {
    background: #C8E6C9;
    color: #2E7D32;
}

.result-item.error {
    background: #FFCDD2;
    color: #C62828;
}

.summary-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.btn-minimize {
    padding: 4px 10px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
}

.btn-minimize:hover {
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
