/* Adapter代码生成器样式 */
.tool-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.output-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.output-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field.full-width {
    width: 100%;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    margin: 0;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow: auto;
    resize: none;
    height: auto;
    min-height: 50px;
}

/* 代码显示区域样式 */
.code-display {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
    overflow-wrap: break-word;
    word-break: break-all;
    margin: 0;
}

.button-section {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

button:hover {
    background-color: #2980b9;
}

#clear-btn {
    background-color: #3498db;
}

#clear-btn:hover {
    background-color: #2980b9;
}

.copy-btn {
    align-self: flex-start;
    margin-top: 10px;
    background-color: #3498db;
}

.copy-btn:hover {
    background-color: #2980b9;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}