.keyboard-test-component {
    padding: 1%;
    background: var(--container-bg, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--container-border, #dee2e6);
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
}
.keyboard-header {
    text-align: center;
    flex-shrink: 0;
    margin-bottom: 10px;
}
.keyboard-header h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
    color: #2c3e50;
}
.keyboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 0;
    padding: 10px;
    position: relative;
}
.keyboard-wrapper {
    position: relative;
    transform-origin: center center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.keyboard {
    position: relative;
    background: #2c3e50;
    border-radius: 8px;
    padding: 0;
}
.key {
    position: absolute;
    background: linear-gradient(180deg, #ecf0f1 0%, #bdc3c7 100%);
    border: 1px solid #95a5a6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.1s, color 0.1s, transform 0.1s, box-shadow 0.1s;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    user-select: none;
}
.key.pressed {
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    color: white;
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.key.tested {
    background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}
.keyboard-selector {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.keyboard-selector label {
    font-weight: bold;
    color: #2c3e50;
}
.keyboard-selector select {
    padding: 5px 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}
.keyboard-combo {
    position: relative;
}
.keyboard-combo input {
    padding: 5px 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 180px;
    box-sizing: border-box;
}
.keyboard-combo-list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    text-align: left;
}
.keyboard-combo-list[hidden] {
    display: none;
}
.keyboard-combo-list li {
    padding: 6px 10px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    white-space: nowrap;
}
.keyboard-combo-list li.is-active {
    background: #e8f1fa;
}
.keyboard-combo-list li.is-selected {
    font-weight: 700;
}
.keyboard-combo-list li.keyboard-combo-empty {
    color: #6b7280;
    cursor: default;
}