/**
 * Keyboard shortcuts styling for Project Ploughshares Transaction Management System
 */

/* Keyboard key styling */
kbd {
    display: inline-block;
    padding: 0.2em 0.4em;
    font-size: 0.85em;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.2rem;
    box-shadow: inset 0 -0.1rem 0 rgba(0, 0, 0, 0.25);
}

/* Tooltip for hotkeys */
[data-hotkey]::after {
    content: attr(data-hotkey);
    display: inline-block;
    margin-left: 5px;
    padding: 0.1em 0.3em;
    font-size: 0.75em;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.2rem;
    vertical-align: middle;
}

/* Hotkey badge in buttons */
.btn .hotkey-badge {
    margin-left: 5px;
    font-size: 0.75em;
    vertical-align: middle;
    opacity: 0.7;
}

/* Hotkey modal styling */
.hotkey-table td:first-child {
    width: 100px;
    text-align: right;
}

.hotkey-table td {
    padding: 0.3rem 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    [data-hotkey]::after {
        display: none;
    }
} 