/**
 * Footer Styles - App footer, shortcuts, modals
 */

/* App Footer */
#appFooter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--gradient-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#footerStatus {
    color: var(--color-primary);
    font-size: 14px;
}

#fpsCounter {
    color: #888;
    font-size: 12px;
    font-family: monospace;
}

/* Help Button — FAB style, above AccidentDB */
#shortcutsHint {
    position: fixed;
    bottom: 174px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(96, 125, 139, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    padding: 0;
}

#shortcutsHint:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(96, 125, 139, 0.6);
}

#shortcutsHint b {
    display: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-control-bar);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-dark);
    border-radius: 12px;
    min-width: 320px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 18px;
}

.modal-header button {
    background: transparent;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    box-shadow: none;
}

.modal-header button:hover {
    color: #fff;
    background: transparent;
}

.modal-body {
    padding: 20px;
}

.shortcuts-table {
    width: 100%;
    color: #fff;
    border-collapse: collapse;
}

.shortcuts-table tr {
    border-bottom: 1px solid #333;
}

.shortcuts-table tr:last-child {
    border-bottom: none;
}

.shortcuts-table td {
    padding: 10px 15px;
}

.shortcuts-table td:first-child {
    text-align: center;
    width: 60px;
}

kbd {
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 4px 10px;
    font-family: monospace;
    font-size: 14px;
    color: var(--color-primary);
    box-shadow: 0 2px 0 #111;
}