/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Configuration Strip */
.config-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.config-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.config-item {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.checkbox-item {
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.config-item label {
    font-size: 0.8em;
    margin-bottom: 3px;
    color: #666;
}

.checkbox-item label {
    margin-bottom: 0;
    margin-left: 5px;
}

.config-item input, .config-item select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.config-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.config-item input:focus, .config-item select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 3px rgba(74, 144, 226, 0.3);
}

/* Error Area */
.error-area {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #ffe6e6;
    border-left: 5px solid #ff4d4d;
    color: #a60000;
    display: none;
}

.error-area.show {
    display: block;
}

/* Content Area */
.content-area {
    display: flex;
    flex: 1;
    gap: 20px;
    height: calc(100vh - 180px);
}

/* Panels */
.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.panel-header h2 {
    font-size: 1.2em;
    color: #333;
}

.copy-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #3a7bc8;
}

textarea {
    flex: 1;
    padding: 15px;
    border: none;
    resize: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
}

textarea:focus {
    outline: none;
}

#outputText {
    background-color: #f8f8f8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
        height: auto;
    }
    
    .panel {
        height: 300px;
    }
}