body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: #f3f4f6;
    display: flex;
    height: 100vh;
}

#control-panel {
    width: 350px;
    flex-shrink: 0;
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    overflow-y: auto;
}

#viewport-container {
    flex-grow: 1;
    position: relative;
}

canvas {
    display: block;
}

.panel-header {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-title {
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
}

.rotor-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    background-color: #f9fafb;
    padding: 0.5rem;
    border-radius: 6px;
}

.rotor-setting label {
    font-weight: 500;
    color: #4b5563;
}

.rotor-setting span {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1f2937;
    background: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

#plugboard-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.io-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-area {
    width: 100%;
    height: 100px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    resize: none;
    font-family: 'Roboto Mono', monospace;
}

.tooltip {
    position: absolute;
    background: #111827;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.8rem;
}