/* ==========================================
   TEMA CLARO ESPECÍFICO PARA O GRÁFICO (CÁLCULO)
========================================== */
body.light-theme .graph-container svg { background-color: #ffffff !important; }
body.light-theme .graph-container .domain, 
body.light-theme .graph-container .tick line { stroke: #94a3b8 !important; }
body.light-theme .graph-container .tick text { fill: #0f172a !important; font-weight: 700; }
body.light-theme .graph-container .origin { stroke: #334155 !important; stroke-width: 2px; }

/* ==========================================
   GRÁFICOS E PALCO CENTRAL (CÁLCULO)
========================================== */
.graph-container { flex: 1; width: 100%; height: 100%; min-height: 100%;}
.graph-container svg { background-color: var(--bg-dark) !important; width: 100%; height: 100%;}
.graph-container .domain, .graph-container .tick line { stroke: var(--panel-bg) !important; }
.graph-container .tick text { fill: var(--text-muted) !important; font-family: 'Inter', sans-serif;}
.graph-container .origin { stroke: var(--border-color) !important; stroke-width: 1.5px; }

/* ==========================================
   ANÁLISE DE CÁLCULO (LIMITES, DERIVADAS, INTEGRAIS)
========================================== */
.derivative-def { 
    margin-top: 10px; 
    padding-top: 10px; 
    border-top: 1px dashed var(--border-color); 
    font-family: monospace; 
    font-size: 13px; 
    color: var(--layer-color, var(--accent-color)); 
    display: none; 
}

.integral-controls { 
    margin-top: 15px; 
    display: none; 
}

.range-inputs { 
    display: flex; 
    gap: 10px; 
}

.input-field { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    flex: 1; 
}

.input-field label { 
    font-size: 10px; 
    text-transform: uppercase; 
    color: var(--text-muted); 
}

.input-field input { 
    padding: 8px; 
    font-size: 12px; 
}

.integral-result { 
    margin-top: 15px; 
    padding: 12px; 
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    font-family: monospace; 
    font-size: 15px; 
    font-weight: bold; 
    color: var(--layer-color, var(--accent-color)); 
    text-align: center; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); 
}

.limit-result { 
    margin-top: 15px; 
    padding: 10px; 
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    font-family: monospace; 
    font-size: 12px; 
    color: var(--text-main); 
    line-height: 1.6; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); 
}

.limit-row { 
    display: flex; 
    justify-content: space-between; 
}

.limit-val { 
    color: var(--layer-color, var(--accent-color)); 
    font-weight: bold; 
}

.limit-final { 
    margin-top: 8px; 
    padding-top: 8px; 
    border-top: 1px dashed var(--border-color); 
    font-weight: bold; 
    text-align: center; 
    font-size: 13px;
}