/* Page styles for templates/flows/details.html. Extracted from an inline <style> block. */
.detail-section {
    background: var(--bs-body-bg, #fff);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.detail-icon {
    font-size: 48px;
}
.detail-title {
    flex: 1;
}
.detail-title h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
}
.detail-title p {
    margin: 0;
    color: #666;
}
.badge-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.info-item {
    padding: 12px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 8px;
}
.info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}
.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--bs-body-color, #333);
}
.steps-timeline {
    position: relative;
    padding-left: 40px;
}
.step-item {
    position: relative;
    padding: 16px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 8px;
    margin-bottom: 16px;
}
.step-item::before {
    content: attr(data-step);
    position: absolute;
    left: -40px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 48px;
    width: 2px;
    height: calc(100% - 16px);
    background: #ddd;
}
.step-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}
.step-type {
    display: inline-block;
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.step-config {
    margin-top: 8px;
    padding: 8px;
    background: var(--bs-body-bg, #fff);
    border-radius: 4px;
    font-size: 13px;
}
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.result-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.result-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.result-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.result-status.completed {
    background: var(--bs-success-bg-subtle, #d4edda);
    color: var(--bs-success-text-emphasis, #155724);
}
.result-status.running {
    background: var(--bs-primary-bg-subtle, #cce5ff);
    color: var(--bs-primary-text-emphasis, #004085);
}
.result-status.failed {
    background: var(--bs-danger-bg-subtle, #f8d7da);
    color: var(--bs-danger-text-emphasis, #721c24);
}
.result-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.result-meta-item {
    font-size: 13px;
}
.result-meta-label {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}
.result-meta-value {
    font-weight: 600;
    color: var(--bs-body-color, #333);
}
.result-output {
    margin-top: 12px;
    padding: 12px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.result-output pre {
    margin: 0;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
}
