/* RSP-1232HL panel visual styles */

.panel-chassis {
    background: linear-gradient(180deg, #2a2a2e 0%, #1a1a1c 100%);
    border: 2px solid #3d3d42;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.panel-half {
    flex: 1;
    min-width: 0;
}

.panel-divider {
    width: 3px;
    background: linear-gradient(180deg, #111 0%, #444 50%, #111 100%);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.lcd-screen {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 2px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9);
}

.key-block {
    aspect-ratio: 1.6 / 1;
    background: #111;
    border: 2px solid #2a2a2a;
    position: relative;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.key-block:hover {
    border-color: #555;
}

.key-block.active {
    background: #111;
    border-width: 2px;
}

.key-block.active .lcd-label {
    color: #f3f4f6;
}

.key-block.active .lcd-sub {
    color: #9ca3af;
}

.key-block:not(.active) .lcd-label {
    color: #6b7280;
}

.key-block:not(.active) .lcd-sub {
    color: #4b5563;
}

.key-block.pending {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 1px #f59e0b;
}

.key-block.drag-over {
    border-color: #f59e0b !important;
    box-shadow: 0 0 12px #f59e0b88;
    background: #1a1a10;
}

.key-block.key-dragging {
    opacity: 0.5;
}

.key-block.key-draggable {
    cursor: grab;
}

.key-block.key-draggable:active {
    cursor: grabbing;
}

.key-block.latched {
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.key-latch-badge {
    position: absolute;
    top: 2px;
    right: 3px;
    z-index: 2;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
    padding: 1px 3px;
    border-radius: 2px;
    background: #78350f;
    color: #fde68a;
    border: 1px solid #f59e0b;
    pointer-events: none;
}

.key-latch-badge.hidden {
    display: none;
}

.led-ring {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #555;
    background: #222;
    box-shadow: 0 0 0 1px #111;
}

.physical-key {
    width: 28px;
    height: 10px;
    background: linear-gradient(180deg, #666 0%, #444 50%, #333 100%);
    border-radius: 2px;
    border: 1px solid #222;
}

.brand-label {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #666;
}

.panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.panel-toolbar-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #374151;
    color: #d1d5db;
    border: 1px solid #4b5563;
    cursor: pointer;
}

.panel-toolbar-btn:hover {
    background: #4b5563;
}

.panel-toolbar-btn--danger {
    color: #fca5a5;
    border-color: #7f1d1d;
}

.panel-toolbar-btn--danger:hover {
    background: #450a0a;
}
