/* Node Scoring Breakdown Styles */

.scoring-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.scoring-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.score-component {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.badge-reasoning {
    background-color: #17a2b8;
}

.badge-fallacy {
    background-color: #dc3545;
}

.stance-indicator {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stance-agree {
    background-color: #d4edda;
    color: #155724;
}

.stance-disagree {
    background-color: #f8d7da;
    color: #721c24;
}

.stance-neutral {
    background-color: #e2e3e5;
    color: #383d41;
}

.calculation-box {
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.calculation-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.truth-block-detail {
    transition: all 0.3s ease;
}

.truth-block-detail:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.formula-display code {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.engagement-metric, .quality-bar, .stance-card {
    transition: all 0.3s ease;
}

.engagement-metric:hover, .quality-bar:hover, .stance-card:hover {
    transform: scale(1.05);
}

.score-flow-diagram {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #6c757d;
    margin: 0 10px;
}

.parameter-badge {
    margin: 2px;
    font-size: 0.85rem;
}

.calculation-step {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .score-flow-diagram {
        padding: 15px;
    }

    .flow-arrow {
        font-size: 1.2rem;
        margin: 5px;
    }

    .calculation-step {
        padding: 10px;
        margin: 5px 0;
    }

    .parameter-badge {
        font-size: 0.75rem;
        margin: 1px;
    }

    .stance-card {
        margin-bottom: 15px;
    }
}

/* Enhanced visual feedback */
.calculation-box.bg-info {
    border-left-color: #0dcaf0;
}

.calculation-box.bg-success {
    border-left-color: #198754;
}

.calculation-box.bg-primary {
    border-left-color: #0d6efd;
}

/* Truth block detail enhancements */
.truth-block-detail.border-success {
    border-color: #198754 !important;
    border-width: 2px !important;
}

.truth-block-detail.border-warning {
    border-color: #ffc107 !important;
    border-width: 2px !important;
}

/* Progress bar animations */
.progress-bar {
    transition: width 0.8s ease-in-out;
}

/* Enhanced formula display */
.formula-display {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 4px;
}

/* Card header enhancements */
.scoring-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 10px;
}

/* Interactive elements */
.btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Toast notifications positioning */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
