/* Context menu */
.context-menu {
    position: absolute;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow:
        0 10px 36px var(--color-shadow-lg),
        0 0 0 1px var(--color-shadow-xs);
    padding: 6px;
    min-width: 200px;
    z-index: 2000;
    display: none;
    animation: contextMenuIn 0.15s ease-out;
}

@keyframes contextMenuIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-dark);
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.12s ease;
}

.context-menu-item:hover {
    background: var(--color-border-light);
}

.context-menu-item:active {
    background: var(--color-border);
}

.context-menu-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-subtle);

    [dir="rtl"] & {
        margin-left: 0;
        margin-right: 0;
    }
}

.context-menu-item-danger {
    color: var(--color-danger-alt);
}

.context-menu-item-danger:hover {
    background: var(--color-danger-light-bg);
}

.context-menu-item-danger i {
    color: var(--color-danger-alt);
}

.context-menu-separator {
    height: 1px;
    background: var(--color-border-light);
    margin: 4px 8px;
}
