/* Context Menu - Reusable right-click context menu styles */

.context-menu {
    position: fixed;
    z-index: 9999;
    background: var(--mud-palette-surface);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 200px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s ease;
}

    .context-menu-item:hover {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.1);
    }

    .context-menu-item.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.context-submenu {
    position: relative;
}

.context-submenu-items {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--mud-palette-surface);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 150px;
    display: none;
}

.context-submenu:hover .context-submenu-items {
    display: block;
}

.context-menu-divider {
    height: 1px;
    background-color: var(--mud-palette-divider);
    margin: 4px 0;
}
