.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%;
}

.field input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
}

.field input[type="text"]::placeholder {
    color: #999;
    font-style: italic;
    font-family: system-ui, -apple-system, sans-serif;
}

.field input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 8px;
}

.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;
    resize: vertical;
}

#input-params {
    resize: vertical;
    min-height: 100px;
}

/* 代码显示区域特定样式 */
.code-display {
    min-height: auto;
    height: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    overflow-y: visible;
}

#api-service-output.code-display {
    min-height: auto;
}

#api-class-output.code-display, 
#model-class-output.code-display, 
#presenter-class-output.code-display {
    min-height: auto;
    height: auto;
}

#view-interface-output.code-display, 
#call-presenter-output.code-display, 
#ui-callback-output.code-display {
    min-height: auto;
    height: auto;
}

.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;
}
