.jexhrai-score-display {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.jexhrai-score-display > span:first-child {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFC148, #e5b44f);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 44px;
    height: 44px;
    box-shadow: 0 4px 10px rgba(229, 180, 79, 0.22);
    flex: 0 0 auto;
    line-height: 1;
}

.jexhrai-score-display > span:first-child::before {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 4px;
    transform: translateY(-2px);
}

.jexhrai-score-display .jexhrai-score-comment {
    color: #374151;
    font-size: 0.92rem;
    line-height: 1.35;
    margin: 0;
    opacity: 0.95;
    max-width: 64ch;
}

.jexhrai-score-display.positive > span:first-child {
    background: linear-gradient(135deg, #16a34a, #059669);
}

.jexhrai-score-display.negative > span:first-child {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 600px) {
    .jexhrai-score-display {
        padding: 8px;
        gap: 8px;
    }
    .jexhrai-score-display > span:first-child {
        min-width: 40px;
        height: 40px;
        padding: 6px 10px;
        font-size: 0.95rem;
    }
    .jexhrai-score-display .jexhrai-score-comment {
        font-size: 0.88rem;
    }
}

.jexhrai-scoring-dashboard {
    background: linear-gradient(135deg, #F8F8F8 0%, #f3f4f6 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0rem 0;
    border: 1px solid rgba(246, 195, 95, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease;
    margin-top: 0em;
    border-top: 1px solid rgba(246, 195, 95, 0.1);
    margin-bottom: 1rem;
}

.jexhrai-scoring-dashboard.jexhrai-unified-rendered {
    position: relative;
}

.jexhrai-scoring-dashboard.jexhrai-unified-rendered::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(246, 195, 95, 0.3), rgba(229, 180, 79, 0.3));
    border-radius: 22px;
    z-index: -1;
    animation: subtleGlow 2s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.6;
    }
}

.jexhrai-scoring-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 5px;
}

.jexhrai-total-score {
    background: linear-gradient(135deg, #FFC148, #e5b44f);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    animation: scorePopIn 0.6s ease;
    box-shadow: 0 2px 8px rgba(246, 195, 95, 0.3);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.jexhrai-total-score .score-label {
    font-size: 1rem;
    opacity: 0.9;
}

.jexhrai-total-score .score-value {
    font-size: 1.5rem;
    font-weight: 900;
}

.jexhrai-total-score .score-max {
    font-size: 1rem;
    opacity: 0.8;
}

.jexhrai-scoring-items {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.jexhrai-scoring-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #FFC148;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jexhrai-scoring-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jexhrai-scoring-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.jexhrai-scoring-item .item-title {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.jexhrai-scoring-item .item-score {
    background: rgba(246, 195, 95, 0.1);
    color: #d97706;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.jexhrai-scoring-item .item-justification {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    font-style: italic;
}

.jexhrai-scoring-item.score-excellent {
    border-left-color: #10b981;
}

.jexhrai-scoring-item.score-excellent .item-score {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.jexhrai-total-score.score-excellent {
    background: linear-gradient(135deg, #10b981, #059669);
}

.jexhrai-scoring-item.score-good {
    border-left-color: #FFC148;
}

.jexhrai-scoring-item.score-good .item-score {
    background: rgba(246, 195, 95, 0.1);
    color: #d97706;
}

.jexhrai-total-score.score-good {
    background: linear-gradient(135deg, #FFC148, #e5b44f);
}

.jexhrai-scoring-item.score-average {
    border-left-color: #f59e0b;
}

.jexhrai-scoring-item.score-average .item-score {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.jexhrai-total-score.score-average {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.jexhrai-scoring-item.score-poor {
    border-left-color: #ef4444;
}

.jexhrai-scoring-item.score-poor .item-score {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.jexhrai-total-score.score-poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 768px) {
    .jexhrai-scoring-dashboard {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .jexhrai-total-score {
        font-size: 1rem;
        padding: 0.6rem 1.25rem;
    }
    
    .jexhrai-total-score .score-value {
        font-size: 1.25rem;
    }
    
    .jexhrai-scoring-item {
        padding: 0.75rem;
    }
    
    .jexhrai-scoring-item .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@keyframes scorePopIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


