/* Detailed Execution Plan Styles */

.agent-plan.detailed {
    margin: 1rem 0;
}

.task-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.task-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.task-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.task-number {
    color: #6c757d;
    min-width: 25px;
}

.task-status {
    font-size: 1.2rem;
    min-width: 25px;
}

.task-description {
    flex: 1;
}

.tool-details {
    margin-left: 2rem;
    padding: 0.75rem;
    background: #fff;
    border-left: 3px solid #007bff;
    border-radius: 0 0.25rem 0.25rem 0;
    margin-top: 0.5rem;
}

.tool-name {
    color: #007bff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tool-name i {
    margin-right: 0.5rem;
}

.tool-name code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

.tool-params {
    margin-top: 0.5rem;
}

.params-label {
    font-weight: 500;
    color: #495057;
    display: block;
    margin-bottom: 0.25rem;
}

.params-list {
    margin: 0.5rem 0 0 1rem;
    padding-left: 0;
    list-style: none;
}

.params-list li {
    margin: 0.25rem 0;
    padding: 0.25rem 0;
}

.params-list strong {
    color: #495057;
    min-width: 120px;
    display: inline-block;
}

.params-list code {
    background: #f8f9fa;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    font-size: 0.9em;
    color: #e83e8c;
}

.task-dependencies,
.task-timing {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.task-dependencies i,
.task-timing i {
    margin-right: 0.5rem;
    color: #adb5bd;
}

.task-result-preview {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #e7f3ff;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    border: 1px solid #bee5eb;
}

.task-result-preview .error {
    color: #dc3545;
}

.result-label {
    font-weight: 500;
    color: #0056b3;
    margin-right: 0.5rem;
}

.execution-summary {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #e9ecef;
    border-radius: 0.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid #dee2e6;
}

.summary-item {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.summary-item.success {
    color: #28a745;
}

.summary-item.error {
    color: #dc3545;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .task-item {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .tool-details {
        background: #1a1a1a;
        border-left-color: #4a90e2;
    }
    
    .tool-name code,
    .params-list code {
        background: #444;
        color: #ff79c6;
    }
    
    .task-result-preview {
        background: #1e3a5f;
        border-color: #2a5a8f;
    }
    
    .execution-summary {
        background: #2d2d2d;
        border-color: #444;
    }
}