/* Detailed Execution Plan Styles — Clean & Minimal */

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

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

.task-item:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

.task-number {
    color: #9ca3af;
    min-width: 20px;
    font-size: 0.75rem;
}

.task-status {
    font-size: 0.9rem;
    min-width: 20px;
}

.task-description {
    flex: 1;
    color: #374151;
}

.tool-details {
    margin-left: 1.25rem;
    padding: 0.4rem 0.6rem;
    background: transparent;
    border-left: 2px solid #d1d5db;
    border-radius: 0;
    margin-top: 0.25rem;
}

.tool-name {
    color: #6366f1;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.78rem;
}

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

.tool-name code {
    background: #f3f4f6;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

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

.params-label {
    font-weight: 500;
    color: #6b7280;
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
}

.params-list {
    margin: 0.2rem 0 0 0.75rem;
    padding-left: 0;
    list-style: none;
}

.params-list li {
    margin: 0.15rem 0;
    padding: 0.1rem 0;
    font-size: 0.75rem;
}

.params-list strong {
    color: #6b7280;
    min-width: 100px;
    display: inline-block;
}

.params-list code {
    background: #f9fafb;
    padding: 0.05rem 0.25rem;
    border-radius: 0.15rem;
    font-size: 0.72rem;
    color: #d946ef;
}

.task-dependencies,
.task-timing {
    margin-top: 0.25rem;
    color: #9ca3af;
    font-size: 0.75rem;
}

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

.task-result-preview {
    margin-top: 0.4rem;
    padding: 0.35rem 0.6rem;
    background: #f9fafb;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    border: 1px solid #e5e7eb;
}

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

.result-label {
    font-weight: 500;
    color: #6366f1;
    margin-right: 0.35rem;
    font-size: 0.75rem;
}

.execution-summary {
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid #e5e7eb;
    font-size: 0.78rem;
}

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

.summary-item.success {
    color: #10b981;
}

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

/* Collapsible execution details toggle */
.execution-details {
    margin-bottom: 0.5rem;
}

.execution-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #9ca3af;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    user-select: none;
}

.execution-toggle:hover {
    background: #f3f4f6;
    color: #6366f1;
}

.execution-toggle i {
    transition: transform 0.2s;
    font-size: 0.65rem;
}

.execution-toggle.expanded i {
    transform: rotate(180deg);
}

.execution-content {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    background: #fafbfc;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.execution-content.show {
    display: block;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .task-item {
        background: #1f2937;
        border-color: #374151;
    }

    .tool-details {
        border-left-color: #4b5563;
    }

    .tool-name code,
    .params-list code {
        background: #374151;
        color: #e879f9;
    }

    .task-result-preview {
        background: #1e293b;
        border-color: #334155;
    }

    .execution-summary {
        background: #1f2937;
        border-color: #374151;
    }

    .execution-toggle {
        background: #1f2937;
        border-color: #374151;
        color: #9ca3af;
    }

    .execution-content {
        background: #1f2937;
        border-color: #374151;
    }
}
