/* NOTE: MwEntityGraph component styles (prefixed with mw-eg-*) */

.mw-eg-container {
    width: 100%;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    background: var(--mud-palette-background);
}

.mw-eg-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* NOTE: Type color classes matching the sequence editor palette */
.mw-eg-type-primitive { color: #be58c8; }
.mw-eg-type-complex { color: #e5c07b; }

/* NOTE: Tooltip shown on node hover (compact mode) */
.mw-eg-tooltip {
    display: none;
    position: absolute;
    z-index: 100;
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--mud-palette-surface, #2d2d2d);
    border: 1px solid var(--mud-palette-lines-default, #444);
    color: var(--mud-palette-text-primary, #e0e0e0);
    font-family: Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mw-eg-tooltip strong {
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.mw-eg-tooltip-meta {
    display: block;
    font-size: 11px;
    color: var(--mud-palette-text-secondary, #aaa);
    margin-bottom: 2px;
}

.mw-eg-tooltip-section {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mud-palette-primary, #7e57c2);
    margin-top: 6px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--mud-palette-lines-default, #444);
    padding-bottom: 2px;
}

.mw-eg-tooltip-prop {
    display: block;
    font-size: 11px;
    padding: 1px 0;
}

.mw-eg-tooltip-prop em {
    font-style: normal;
}

/* NOTE: Detailed mode — HTML overlay container */
.mw-eg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* NOTE: Detailed mode — entity card */
.mw-eg-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    background: var(--mud-palette-surface, #2d2d2d);
    border: 1px solid var(--mud-palette-lines-default, #444);
    border-radius: 6px;
    font-family: Roboto, sans-serif;
    pointer-events: none;
    transform-origin: top left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.mw-eg-card-header {
    padding: 5px 10px;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 1px solid var(--mud-palette-lines-default, #444);
    background: var(--mud-palette-primary, #7e57c2);
    color: white;
}

.mw-eg-card-prop {
    padding: 2px 10px;
    font-size: 11px;
    line-height: 16px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--mud-palette-text-primary, #e0e0e0);
}

.mw-eg-card-prop-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

/* NOTE: Reference properties get a subtle left border accent */
.mw-eg-card-prop-ref {
    border-left: 2px solid #e5c07b;
    padding-left: 8px;
}

/* NOTE: Hover highlight states for detailed mode cards */
.mw-eg-card-highlighted {
    border-color: #ff9800;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.3);
}

.mw-eg-card-dimmed {
    opacity: 0.1;
}

/* NOTE: Focus state for detailed mode cards */
.mw-eg-card-focused {
    border-color: #ff9800;
    box-shadow: 0 0 16px rgba(255, 152, 0, 0.4);
}
