/* AI CONTEXT: Shortcuts CSS
   PURPOSE: Hotkey hover tooltips (shared by both taggers) + rebind panel styling
   Loaded by index.html and station1.html; relies on .modal-overlay/.modal-content
   from common/index CSS. */

/* ── Hotkey tooltips (any button carrying a .hotkey-tooltip) ─────────────── */
.hotkey-tooltip {
    visibility: hidden; width: auto; min-width: 20px; background: #555; color: #fff;
    text-align: center; border-radius: 6px; padding: 5px 8px;
    position: absolute; z-index: 1; bottom: 110%; left: 50%; transform: translateX(-50%);
    opacity: 0; transition: opacity 0.3s; font-size: 0.8em; white-space: nowrap;
    pointer-events: none;
}
button:has(> .hotkey-tooltip) { position: relative; }
button:hover > .hotkey-tooltip { visibility: visible; opacity: 1; }

/* ── Trigger button ─────────────────────────────────────────────────────── */
#open-shortcuts {
    background: none; border: 1px solid #bbb; color: #555; border-radius: 6px;
    padding: 6px 12px; font-size: 0.9em; cursor: pointer;
}
#open-shortcuts:hover { background: #eee; }

/* ── Settings panel ─────────────────────────────────────────────────────── */
.shortcuts-panel-content { max-width: 420px; width: 90%; }
.shortcuts-panel-content h3 { margin: 0 0 12px; }
#shortcuts-list { list-style: none; margin: 0; padding: 0; }
#shortcuts-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 4px; border-bottom: 1px solid #eee;
}
#shortcuts-list li.capturing { background: #fff8e1; }
.shortcut-label { flex: 1; }
.shortcut-key {
    font-family: monospace; background: #333; color: #fff; border-radius: 4px;
    padding: 3px 10px; min-width: 46px; text-align: center; font-size: 0.9em;
}
#shortcuts-list li.capturing .shortcut-key { background: #ff9800; }
.shortcut-rebind {
    background: none; border: 1px solid #bbb; color: #555; border-radius: 5px;
    padding: 4px 12px; cursor: pointer; font-size: 0.85em;
}
.shortcut-rebind:hover { background: #eee; }
#shortcuts-hint { min-height: 1.2em; margin: 12px 0 0; color: #666; font-size: 0.9em; text-align: center; }
#shortcuts-hint.error { color: #f44336; }
