/* LCARS Touch Keyboard */
.lcars-keyboard {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 3px solid var(--theme-primary);
    padding: 10px;
    z-index: 2000000;
    box-shadow: 0 -5px 20px rgba(255, 153, 51, 0.5);
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: rgba(255, 153, 51, 0.1);
    border-radius: 5px;
}

.keyboard-title {
    color: var(--theme-primary);
    font-weight: bold;
    font-size: 0.9em;
    letter-spacing: 2px;
}

.keyboard-controls {
    display: flex;
    gap: 5px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.key {
    min-width: 45px;
    height: 45px;
    background: var(--theme-accent);
    color: #000;
    border: 2px solid var(--theme-primary);
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
    font-family: var(--theme-font);
}

.key:hover {
    background: var(--theme-primary);
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--theme-primary);
}

.key:active {
    transform: scale(0.95);
    background: var(--theme-highlight);
}

.key-special {
    background: var(--theme-secondary);
    min-width: 60px;
}

.key-space {
    flex: 1;
    min-width: 200px;
}

/* Numpad Mode */
.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.numpad-key {
    height: 60px;
    font-size: 1.5em;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .lcars-keyboard {
        padding: 5px;
    }

    .keyboard-header {
        padding: 2px 5px;
        margin-bottom: 5px;
    }

    .keyboard-row {
        gap: 3px;
        margin-bottom: 3px;
    }

    .key {
        min-width: calc(10vw - 4px);
        height: 40px;
        font-size: 0.8em;
        padding: 0;
        border-width: 1px;
    }

    .key-special {
        min-width: calc(15vw - 5px);
    }

    .key-space {
        min-width: 40vw;
    }

    .numpad-grid {
        gap: 5px;
    }

    .numpad-key {
        height: 45px;
    }
}