/* ==========================================================================
   Keyboard Hints Footer
   ========================================================================== */

.keyboard-hints {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}

.keyboard-hints .hints-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex: 1;
}

.keyboard-hints .hints-content span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.keyboard-hints kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-family: monospace;
    font-size: 0.7rem;
}

/* Nav mode indicator badge */
.keyboard-hints .mode-indicator {
    font-weight: 700;
    font-size: 0.75rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Nav mode styling for keyboard hints bar */
.keyboard-hints.nav-mode {
    background: rgba(122, 162, 247, 0.15);
    border-top-color: var(--accent);
}

.keyboard-hints .hints-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.keyboard-hints .bug-report-link {
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.keyboard-hints .bug-report-link:hover {
    opacity: 1;
}

.keyboard-hints .server-version {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.5;
    white-space: nowrap;
}

/* ==========================================================================
   Delete Confirmation Modal
   ========================================================================== */

/* Delete confirmation modals should be narrower */
.modal-content.delete-confirm {
    max-width: 400px;
}

.modal-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-content .modal-warning {
    color: var(--error);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-cancel {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-confirm {
    padding: 0.5rem 1rem;
    border: 1px solid var(--error);
    background: var(--error);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-confirm:hover {
    background: #ff5a72;
    border-color: #ff5a72;
}

/* Keyboard focus ring for the confirm/delete modal buttons (#1384) so the
   focused (Cancel-by-default) button is visible without the mouse. */
.modal-cancel:focus-visible,
.modal-confirm:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Keyboard Shortcuts Help Overlay (press ?)
   ========================================================================== */

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    padding: 1rem;
}

.help-dialog {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-darker);
}

.help-dialog-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.help-dialog-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.help-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.help-dialog-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem 2rem;
}

.help-group-title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
}

.help-shortcut-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.help-shortcut {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.help-keys {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.help-keys kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.help-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.help-dialog-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg-darker);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.help-dialog-footer kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: monospace;
    font-size: 0.7rem;
}

/* ==========================================================================
   Mobile - hide keyboard hints (no keyboard on mobile)
   ========================================================================== */

@media (max-width: 768px) {
    .keyboard-hints {
        display: none;
    }
}

