/* Context menu styles */
.context-menu {
    position: absolute;
    display: none;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    border-radius: 4px;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

/* Modal dialog styles */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    pointer-events: none; /* Allow interaction with the rest of the page */
}

.dialog-box {
    position: fixed;
    top: 9%;
    left: 1%;
    background: white;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    z-index: 1002;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: all; /* Ensure only the dialog box is interactive */
}

.dialog-box .close-button {
    float: right;
    cursor: pointer;
    padding: 5px;
    border: none;
    background: transparent;
    font-size: 20px;
}

.dialog-box pre {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 14px;
    margin-top: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    max-height: 68vh;
    overflow: auto;
}

.dialog-box pre .error-name {
    overflow: auto;
    max-width: inherit;
    max-height: 30vh;
    font-size: 1em;
    border: 1px black solid;
}

.context-menu-item.hidden {
    display: none;
}