/* Improve readability of case content, especially facts section */
[data-extraction-style="true"] .card-body {
    line-height: 1.8;
    font-size: 0.95rem;
}
[data-extraction-style="true"] .card-body > p {
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.05em;
}

/* Entity link emphasis */
.entity-link {
    box-shadow: 0 1px 4px rgba(13, 110, 253, 0.25);
    transition: all 0.2s;
}
.entity-link:hover {
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.35);
    transform: translateY(-1px);
}

/* Entity Popover Styles */
.onto-label { cursor: help; border-bottom: 1px dotted currentColor; text-decoration: none; }
.onto-label[style*="pointer"] { border-bottom-style: solid; }
.onto-label:hover { background-color: rgba(var(--bs-primary-rgb), 0.1); border-radius: 2px; }
.onto-popover-content { max-width: 350px; }
.onto-popover-content .onto-type-badge { font-size: 0.7rem; padding: 0.15rem 0.4rem; }
.onto-popover-content .onto-uri { font-size: 0.7rem; word-break: break-all; color: #6c757d; background: #f8f9fa; padding: 4px 6px; border-radius: 3px; margin-top: 8px; }
.onto-popover-content .onto-definition { font-size: 0.85rem; margin: 8px 0; color: #495057; }
/* Entity type colors */
.onto-type-roles, .onto-type-role { background-color: #0d6efd; color: white; }
.onto-type-states, .onto-type-state { background-color: #6f42c1; color: white; }
.onto-type-resources, .onto-type-resource { background-color: #0dcaf0; color: black; }
.onto-type-principles, .onto-type-principle { background-color: #198754; color: white; }
.onto-type-obligations, .onto-type-obligation { background-color: #dc3545; color: white; }
.onto-type-constraints, .onto-type-constraint { background-color: #6c757d; color: white; }
.onto-type-capabilities, .onto-type-capability { background-color: #ffc107; color: black; }
.onto-type-actions, .onto-type-action { background-color: #212529; color: white; }
.onto-type-events, .onto-type-event { background-color: #e9ecef; color: #212529; }
.onto-source-ontology { border: 2px solid #0d6efd; }
