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

body {
    background: linear-gradient(135deg, #111111, #757575);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.compiler-panel {
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 50px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.compiler-stages-panel {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, #262b53, #4a6491);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.status-success {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.status-error {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
    border: 1px solid #c0392b;
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-success .status-icon {
    background: #27ae60;
}

.status-error .status-icon {
    background: #c0392b;
}

.BtnNav {
    background-color: #0e639c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    font-weight: 500;
}

.BtnNav:hover {
    background-color: #1177bb;
}

/* Estilos para el editor */
.VentanaPrincipal {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.VentanaInteraccion {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #252526;
    overflow: hidden;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #2d2d2d;
    border-bottom: 1px solid #3e3e3e;
}

.nombre-programa {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nombre-programa label {
    font-size: 14px;
    color: #d4d4d4;
    white-space: nowrap;
}

.nombre-programa input {
    padding: 6px 10px;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    font-size: 14px;
    width: 180px;
    background: #3c3c3c;
    color: #d4d4d4;
}

.editor-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.editor-btn {
    background-color: #3c3c3c;
    color: #d4d4d4;
    border: 1px solid #3e3e3e;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.editor-btn:hover {
    background-color: #4c4c4c;
}

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

.line-numbers {
    background-color: #2d2d2d;
    color: #858585;
    padding: 10px 8px;
    text-align: right;
    font-size: 14px;
    line-height: 1.5;
    user-select: none;
    overflow: hidden;
    width: 60px;
    flex-shrink: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.CodeMirror {
    flex: 1;
    height: auto !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.5;
}

.status-bar {
    background-color: #007acc;
    color: white;
    padding: 8px 15px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
}

/* Estilos para el panel de resultados */
.panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #f5f7fa;
}

@media (max-width: 1024px) {
    .panel-content {
        grid-template-columns: 1fr;
    }
}

.section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
}

.section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section h2 i {
    font-size: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.summary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #6c757d;
}

.process-list, .variable-list, .area-list, .error-list, .process-call-list {
    max-height: 300px;
    overflow-y: auto;
}

.process-item, .variable-item, .area-item, .error-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.process-name, .variable-name, .area-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.process-details, .variable-details, .area-details {
    font-size: 14px;
    color: #6c757d;
}

.param-list, .dimension-list {
    margin-top: 8px;
    padding-left: 20px;
}

.param-item, .dimension-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #e9ecef;
}

.param-item:last-child, .dimension-item:last-child {
    border-bottom: none;
}

.error-item {
    border-left: 4px solid #e74c3c;
    background: #fff5f5;
}

.error-message {
    color: #c0392b;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #95a5a6;
    font-style: italic;
}

.executable-section {
    grid-column: 1 / -1;
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.toggle-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-button:hover {
    background: #2980b9;
}

.hidden {
    display: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.process-call-item {
    background: #f8f9fa;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.call-valid {
    border-left: 4px solid #27ae60;
}

.call-invalid {
    border-left: 4px solid #e74c3c;
}

.valid-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.valid-true {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.valid-false {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}