/* _tools/codeEditor/style.css */
body {
    background-color: #0f1114;
    color: #e0e6ed;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 20px;
}

#tool {
    background: #1a1d21;
    width: 100%;
    max-width: 1000px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .editor-grid { grid-template-columns: 1fr; }
}

.control-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #252a30;
    border-radius: 8px;
    margin-bottom: 20px;
}

select, input[type="number"] {
    background: #2f363d;
    color: #fff;
    border: 1px solid #444c56;
    padding: 8px;
    border-radius: 4px;
}

textarea {
    width: 100%;
    height: 300px;
    background: #161b22;
    color: #9ece6a; /* 螢光綠，有駭客感 */
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    resize: none;
}

textarea::placeholder { color: #57606a; }

.label-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #8b949e;
}

.btn-action {
    background: #3182ce;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-action:hover { background: #4299e1; }