.sprotty-graph {
    height: calc(100vh - 250px); /* Adjust based on header, toolbar, and footer heights */
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

text {
    stroke-width: 0;
    stroke: #2c3e50;
    fill: #2c3e50;
    text-anchor: middle;
    font-family: 'Poppins', Arial, sans-serif;
}

.sprotty-edge {
    fill: none;
    stroke: #34495e;
    stroke-width: 1.5px;
    transition: stroke-width 0.2s ease;
}

/* Node type color schemes with softer, more modern palette */
.project > .sprotty-node {
    fill: rgba(41, 128, 185, 0.1);
    stroke: #2980b9;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.environment > .sprotty-node {
    fill: rgba(46, 204, 113, 0.1);
    stroke: #27ae60;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.system > .sprotty-node {
    fill: rgba(142, 68, 173, 0.1);
    stroke: #8e44ad;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.entity > .sprotty-node {
    fill: rgba(230, 126, 34, 0.1);
    stroke: #d35400;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.constraint > .sprotty-node {
    fill: rgba(231, 76, 60, 0.1);
    stroke: #c0392b;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.heading > .sprotty-label {
    font-weight: 600;
    font-size: 14px;
    fill: #2c3e50;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.5px;
    user-select: none;
    transition: fill 0.3s ease;
}

.sprotty-node:hover {
    filter: brightness(95%);
    cursor: pointer;
}

.sprotty-edge:hover {
    stroke-width: 2.5px;
    stroke: #2c3e50;
}

.sprotty-label {
    fill: #34495e;
    font-size: 12px;
    font-family: 'Poppins', Arial, sans-serif;
}

.arrowhead {
    fill: #2c3e50;
}

.sprotty-port {
    fill: #3498db;
    stroke: #ffffff;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.sprotty-icon {
    fill: #2ecc71;
    stroke-width: 0;
}

.sprotty-label.icon {
    fill: #ffffff;
}

.sprotty-node.selected {
    stroke-width: 3;
    filter: brightness(90%);
}

/* Context Menu Styling */
.class-context-menu {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
}

.class-context-menu-item {
    background-color: #ffffff;
    padding: 8px 15px;
    min-width: 150px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.class-context-menu-item:hover:not(.disabled-action) {
    background-color: #f1f3f5;
    color: #2980b9;
}

.class-context-menu-item.disabled-action {
    color: #adb5bd;
    cursor: not-allowed;
}

.class-context-menu-item:empty {
    border-top: 1px solid #e9ecef;
    margin: 5px 10px;
    padding: 0;
}

/* Previous existing styles remain the same */

.sprotty-popup {
    position: absolute; /* Change from fixed to absolute */
    z-index: 1000;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 15px;
    max-width: 300px;
    transform: translate(-50%, -110%); /* Adjust vertical positioning */
}

.sprotty-popup-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #2c3e50;
}

.sprotty-popup-title .fa {
    margin-right: 10px;
    color: #3498db;
}

.sprotty-popup-body {
    font-size: 14px;
    color: #34495e;
    line-height: 1.5;
}

.sprotty-popup-body p {
    margin-bottom: 5px;
}