/* Global 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;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

nav a:hover, nav a.active {
    color: white;
    border-bottom: 2px solid #3498db;
}

/* Main container */
.container {
    display: grid;
    grid-template-columns: 1fr 0.2fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Panels */
.panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

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

.panel-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.controls {
    display: flex;
    gap: 0.5rem;
}

.controls select, .controls button {
    padding: 0.5rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.editor-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* CodeMirror customization */
.CodeMirror {
    height: 100% !important;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Options panel */
.options-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: fit-content;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.option-group select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.compile-btn {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

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

.compile-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.compile-status {
    padding: 0.7rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
}

/* Info panel */
.info-panel {
    margin: 1.5rem auto;
    max-width: 1400px;
    height: auto;
}

.info-content {
    padding: 1.5rem;
}

.status-ok {
    color: #27ae60;
    font-weight: 600;
}

.status-error {
    color: #e74c3c;
    font-weight: 600;
}

.status-checking {
    color: #f39c12;
    font-weight: 600;
}

#backend-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    margin-top: 2rem;
}

.about-section {
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.about-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-section h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.about-section ul {
    margin-left: 1.5rem;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ddd;
}

.copyright a {
    color: #3498db;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .panel {
        height: 500px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .panel {
        height: 400px;
    }
} 