File size: 1,919 Bytes
4e7644b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
.contextMenu {
  position: fixed;
  z-index: 10000;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 4px 0;
  min-width: 160px;
  animation: contextMenuFadeIn 0.12s ease-out;
}

@keyframes contextMenuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.menuItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;

  &:hover {
    background: #f5f5f5;
  }

  &.danger {
    color: #ff4d4f;

    &:hover {
      background: #fff2f0;
    }
  }

  &.disabled {
    color: #bbb;
    cursor: not-allowed;

    &:hover {
      background: transparent;
    }
  }
}

.menuIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  font-size: 14px;
}

.menuLabel {
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

/* ─── Dark Mode ──────────────────────────────────────────────────────────── */
:global(.dark-mode) {
  .contextMenu {
    background: #2a2a2a;
    border-color: #3a3a3a;
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.35),
      0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .menuItem {
    color: rgba(255, 255, 255, 0.85);

    &:hover {
      background: rgba(255, 255, 255, 0.08);
    }

    &.danger {
      color: #ff6b6b;

      &:hover {
        background: rgba(255, 77, 79, 0.1);
      }
    }

    &.disabled {
      color: #555;

      &:hover {
        background: transparent;
      }
    }
  }

  .divider {
    background: #3a3a3a;
  }
}