/* File: context-menus.css
    Description: Custom context menu styling.
*/

#custom-context-menu {
    position: fixed;
    z-index: 10000;
    width: 220px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    opacity: 0;
    transform: scale(0.95);
    transform-origin: top left;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
    pointer-events: none;
    display: none; /* Hidden by default */
}

#custom-context-menu.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.ctx-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s;
    text-decoration: none;
}

.ctx-item:hover {
    background-color: var(--primary);
    color: white;
}

.ctx-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
}

.ctx-divider {
    height: 1px;
    background-color: var(--border);
    margin: 0.25rem 0;
}

.ctx-header {
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Special styling for Stop Impersonating menu item */
.ctx-item-impersonate {
    color: #3b82f6 !important; /* Standout Blue */
    font-weight: bold;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
}

.ctx-item-impersonate:hover {
    background-color: #3b82f6 !important;
    color: white !important;
}

.ctx-item-impersonate i {
    color: #3b82f6;
}

.ctx-item-impersonate:hover i {
    color: white;
}