/* ============================================================
   context-menu.css — v0.9.6.2 Right-Click Context Menus
   Windows-95-look mit saubererem Hover-Feedback.
   ============================================================ */

.ctx-menu {
    position: fixed;
    z-index: 100000;
    min-width: 200px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    padding: 3px;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    font-size: 11px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.35);
    user-select: none;
    animation: ctxFadeIn 90ms ease-out;
}

@keyframes ctxFadeIn {
    from { opacity: 0; transform: translateY(-3px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.ctx-menu-item {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    color: #000;
    border-radius: 1px;
    line-height: 1.3;
    min-height: 18px;
}

.ctx-menu-item:hover:not(.disabled) {
    background: #0a2a7a;
    color: #fff;
}
.ctx-menu-item:hover:not(.disabled) .ctx-menu-hint {
    color: #cfd8ff;
}

.ctx-menu-item.disabled {
    color: #808080;
    cursor: default;
    text-shadow: 1px 1px 0 #e8e8e8;
}

.ctx-menu-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1;
}

.ctx-menu-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ctx-menu-hint {
    font-size: 10px;
    color: #606060;
    margin-left: 16px;
    font-style: italic;
}

.ctx-menu-sep {
    height: 1px;
    background: #808080;
    border-bottom: 1px solid #ffffff;
    margin: 3px 2px;
}

/* Cursor-Indikator dass ein Element ein Context-Menu hat */
[data-ctxmenu] {
    cursor: context-menu;
}
[data-ctxmenu]:hover {
    /* kleiner Hint */
}

/* Window-Titlebar behält pointer (drag) */
[data-ctxmenu="window-titlebar"] {
    cursor: move;
}

/* Hover-Tooltip für Topbar-Ctxmenu */
[data-ctxmenu^="topbar-"]:hover::after {
    /* keine aktive anzeige — nur visuelles feedback, wenn browser rechtsklick rendert */
}
