/* ai-robot-decision-explainer.css - Tool-specific styles only */
/* All base styles are inherited from common.css */

/* Decision Pathway Visualization enhancements */
.pathway-step {
    margin-bottom: 25px;
    position: relative;
}

.pathway-step:last-child {
    margin-bottom: 0;
}

.pathway-step .step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pathway-step .step-icon i {
    color: white;
    font-size: 1.3rem;
}

.pathway-step .step-content {
    flex: 1;
}

.pathway-step .step-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.pathway-step .step-description {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.pathway-step .step-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pathway-step .detail-tag {
    background: #e1e5eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #2c3e50;
    font-family: monospace;
}

.pathway-step .step-arrow {
    position: absolute;
    left: 25px;
    top: 50px;
    color: #3498db;
}

/* Confidence score enhancements */
.confidence-bar {
    height: 8px;
    background: #e1e5eb;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    transition: width 0.5s ease;
}

/* Factor list enhancements */
.factor-list {
    list-style: none;
    padding: 0;
}

.factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e1e5eb;
}

.factor-item:last-child {
    border-bottom: none;
}

.factor-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
}

.factor-name i {
    color: #3498db;
    width: 20px;
}

.factor-weight {
    color: #3498db;
    font-weight: 600;
    font-size: 1rem;
}

/* Metric cards */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.metric-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.metric-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Decision badge animations */
#finalDecision {
    transition: all 0.3s ease;
}

.status-success {
    color: #27ae60;
    font-weight: bold;
}

/* Button group responsive fixes */
@media (max-width: 768px) {
    .output-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .output-header .action-buttons {
        width: 100%;
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        gap: 10px;
    }
    
    .output-header .action-buttons .btn {
        flex: 1;
        margin: 0;
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .output-header .action-buttons {
        flex-direction: column !important;
    }
    
    .output-header .action-buttons .btn {
        width: 100%;
    }
}

/* JSON editor styling */
textarea {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Select dropdown styling */
select {
    cursor: pointer;
    background-color: white;
}

select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

/* Result box hover effects */
.result-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-box:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* FAQ answer styles */
.faq-answer {
    display: none;
    padding: 12px 0 12px 20px;
    border-left: 3px solid #3498db;
    margin-top: 8px;
    color: #5a6268;
    line-height: 1.6;
}

.faq-question {
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #3498db;
}

.faq-question i {
    transition: transform 0.2s ease;
}