﻿.custom-node {
    border: 1px solid #777;
    padding: 10px;
    border-radius: 5px;
    background: white;
    width: 150px;
    text-align: center;
}

.custom-node-body {
    display: flex;
    flex-direction: column; /* Stacks the header-row on top of the label */
    align-items: center; /* Horizontally centers the content */
    justify-content: center; /* Vertically centers the content */
    gap: 8px; /* Space between the header row and the label */
    padding: 10px;
    min-width: 140px; /* Give the node a good default width */
}

.custom-node-icon {
    font-size: 28px; /* Make the icon prominent */
    color: #343a40; /* A dark, neutral color */
    line-height: 1; /* Helps with alignment */
}

.custom-node-label {
    font-size: 12px;
    color: #6c757d; /* Grey text for secondary info */
    text-align: center;
}

.handle-label {
    position: absolute;
    background: #555;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    pointer-events: none; /* Important! */
}

.handle-label-right {
    transform: translate(10px, -50%);
}

.handle-label-left {
    transform: translate(-100%, -50%);
    left: -10px;
}

.node-header-row {
    display: flex;
    align-items: center; /* Vertically aligns the icon and stats text */
    justify-content: center;
    gap: 12px; /* Adds space BETWEEN the icon and the stats */
}

.node-mi-badge {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between the small bar chart icon and the number */
    font-size: 16px; /* Make the number clearly visible */
    font-weight: 700;
    color: #212529; /* Black text */
    cursor: help;
}

    /* The small icon *inside* the MI badge */
    .node-mi-badge i {
        font-size: 14px;
        color: #495057; /* A slightly lighter grey */
    }
