/* ---- ITERATION 284 ---- Agent Tab - Intent Details panel */ 
/* Component blocks */
.component-block {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.component-block.success {
    border-left: 3px solid #4caf50;
}

.component-block.warning {
    border-left: 3px solid #ff9800;
}

.component-header {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.component-header.expandable:hover {
    background-color: #f5f5f5;
}

.component-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.component-summary {
    flex: 1;
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
}

.expand-indicator {
    transition: transform 0.2s;
}

.component-block.expanded .expand-indicator {
    transform: rotate(90deg);
}

.component-details {
    display: none;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.component-block.expanded .component-details {
    display: block;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    font-weight: 600;
    min-width: 150px;
    color: #333;
}

.detail-value {
    flex: 1;
}

/* Prompt and Response sections */
.prompt-section, .response-section {
    margin: 10px 0;
}

.prompt-section h5, .response-section h5 {
    margin: 0 0 8px 0;
    color: #a0a0a0;
    font-size: 0.9em;
    font-weight: 600;
}

.prompt-content, .response-content {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.prompt-content pre, .response-content pre {
    margin: 0;
    color: #e0e0e0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.system-prompt {
    border-left: 3px solid #40a9ff;
}

.user-prompt {
    border-left: 3px solid #52c41a;
}

.json-response {
    border-left: 3px solid #faad14;
}

.decision-response {
    border-left: 3px solid #722ed1;
}

.decision-true {
    color: #52c41a;
    font-weight: bold;
}

.decision-false {
    color: #ff4d4f;
    font-weight: bold;
}

/* Model Connector specific styles */
.component-block.model-connector {
    border-left: 3px solid #40a9ff;
}

.model-details {
    padding: 0;
}

.model-section {
    border-bottom: 1px solid #2a2a2a;
}

.model-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #222;
    border-bottom: 1px solid #2a2a2a;
}

.section-icon {
    font-size: 1.1em;
}

.section-title {
    font-weight: 600;
    color: #a0a0a0;
    flex: 1;
}

.response-type-badge {
    background: #1a1a1a;
    color: #40a9ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    border: 1px solid #2a2a2a;
}

.prompt-content, .response-content {
    padding: 12px 15px;
    background: #0d0d0d;
    max-height: 300px;
    overflow-y: auto;
}

.prompt-content pre, .response-content pre {
    margin: 0;
    color: #e0e0e0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.system-prompt {
    background: linear-gradient(90deg, #0d0d0d 0%, #0a1929 100%);
}

.user-prompt {
    background: linear-gradient(90deg, #0d0d0d 0%, #0a2918 100%);
}

.json-response pre {
    color: #ffd93d;
}

.decision-response pre {
    color: #b19cd9;
}

.model-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 15px;
    background: #1a1a1a;
}

.model-metadata .metadata-item {
    display: flex;
    gap: 6px;
}

.model-metadata .metadata-label {
    color: #666;
    font-size: 0.85em;
}

.model-metadata .metadata-value {
    color: #a0a0a0;
    font-size: 0.85em;
}