/* セクション共通スタイル */
.rotors-section,
.plugboard-section {
    background:
            linear-gradient(145deg,
            rgba(10, 10, 10, 0.9) 0%,
            rgba(25, 35, 25, 0.9) 50%,
            rgba(15, 15, 15, 0.9) 100%
            );
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 65, 0.4);
    box-shadow:
            0 0 20px rgba(0, 255, 65, 0.2),
            inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.rotors-section::before,
.plugboard-section::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.section-title {
    color: #00ff41;
    font-size: 1.6em;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    text-shadow:
            0 0 5px #00ff41,
            1px 1px 0px rgba(139, 69, 19, 0.7);
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 10px;
}

/* テキストパネル */
.text-panel {
    background:
            linear-gradient(145deg,
            rgba(10, 10, 10, 0.9) 0%,
            rgba(25, 35, 25, 0.9) 100%
            );
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 65, 0.4);
    box-shadow:
            0 0 20px rgba(0, 255, 65, 0.2),
            inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.text-panel::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.text-panel h3 {
    color: #00ff41;
    margin-bottom: 15px;
    font-family: 'Courier Prime', monospace;
    text-shadow:
            0 0 5px #00ff41,
            1px 1px 0px rgba(139, 69, 19, 0.7);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 8px;
}

.text-panel textarea {
    width: 100%;
    height: 140px;
    background:
            linear-gradient(145deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(10, 20, 10, 0.95) 100%
            );
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    resize: vertical;
    box-shadow:
            inset 0 0 20px rgba(0, 0, 0, 0.8),
            0 0 10px rgba(0, 255, 65, 0.1);
    text-shadow: 0 0 3px #00ff41;
    line-height: 1.4;
}

.text-panel textarea::placeholder {
    color: rgba(0, 255, 65, 0.4);
    text-shadow: none;
}

.text-panel textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 65, 0.8);
    box-shadow:
            inset 0 0 20px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(0, 255, 65, 0.3);
}

/* 接続表示 */
.connections-display {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(0, 255, 65, 0.7);
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.3);
    padding: 15px;
    background: rgba(10, 10, 10, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}