:root {
    --bg-main: #0B0E14;
    --bg-panel: #141923;
    --text-main: #E2E8F0;
    --accent: #00F0FF;
    --accent-hover: #00C3D0;
    --cad-bg: #FFFFFF; /* Para simular papel/plano técnico */
    --cad-line: #000000;
    --cad-highlight: #FF3366;
    --border-color: rgba(255,255,255,0.1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background: var(--bg-main); 
    color: var(--text-main); 
    height: 100vh; 
    overflow: hidden; 
}

.app-container { 
    display: flex; 
    height: 100vh; 
}

/* Sidebar Styling */
.sidebar { 
    width: 350px; 
    background: var(--bg-panel); 
    border-right: 1px solid var(--border-color); 
    display: flex; 
    flex-direction: column; 
    overflow-y: auto;
}

.branding { 
    padding: 25px 20px; 
    border-bottom: 1px solid var(--border-color); 
}

.branding h1 { 
    color: var(--accent); 
    font-size: 1.5rem; 
    letter-spacing: -0.5px;
}

.branding p { 
    font-size: 0.85rem; 
    color: #888; 
    margin-top: 5px;
}

.metrics-panel, .steps-panel { 
    padding: 20px; 
    border-bottom: 1px solid var(--border-color); 
}

.metrics-panel h3, .steps-panel h3 { 
    margin-bottom: 15px; 
    font-size: 1.1rem; 
    color: #fff;
}

.metrics-panel ul { 
    list-style: none; 
    font-size: 0.9rem; 
    color: #cbd5e1; 
    line-height: 2; 
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.step-item { 
    background: rgba(255,255,255,0.03); 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 12px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    border: 1px solid transparent;
}

.step-item:hover { 
    background: rgba(0, 240, 255, 0.05); 
    border-color: rgba(0, 240, 255, 0.2); 
}

.step-item.active { 
    background: rgba(0, 240, 255, 0.1); 
    border-left: 4px solid var(--accent); 
    border-color: rgba(0, 240, 255, 0.3); 
}

.step-item h4 { 
    font-size: 1rem; 
    color: var(--accent); 
    margin-bottom: 5px; 
}

.step-item p { 
    font-size: 0.85rem; 
    color: #94a3b8; 
    line-height: 1.4;
}

/* CAD Workspace */
.cad-workspace { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    background: #1E232F; 
}

.cad-header { 
    padding: 15px 25px; 
    background: var(--bg-panel); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border-color); 
}

.cad-header h2 { 
    font-size: 1.2rem; 
    font-weight: 400; 
    color: #e2e8f0;
}

.cad-controls button { 
    background: var(--accent); 
    color: #000; 
    border: none; 
    padding: 8px 20px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: background 0.3s;
}

.cad-controls button:hover {
    background: var(--accent-hover);
}

.canvas-container { 
    flex: 1; 
    padding: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}

/* El SVG simula la interfaz CAD */
svg { 
    background: var(--cad-bg); 
    border-radius: 8px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
    width: 100%; 
    height: 100%; 
    max-width: 1200px; 
    max-height: 900px; 
    transition: all 0.3s ease;
}

.cad-path {
    transition: stroke 0.3s, stroke-width 0.3s, opacity 0.3s;
}
