/* Causal Inference Tutorial Styles */
.toc-container { background: var(--bs-tertiary-bg, #f8f9fa); border-radius: 8px; padding: 20px 30px; border-left: 4px solid #795548; }
.toc-container h5 { color: #795548; }
.toc-container a { text-decoration: none; color: inherit; }
.toc-container a:hover { color: #795548; }

.key-concept { background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 100%); border-radius: 8px; padding: 20px; margin: 20px 0; border-left: 4px solid #795548; }
[data-bs-theme='dark'] .key-concept { background: linear-gradient(135deg, #3e2723 0%, #4e342e 100%); }
.key-concept h5 { color: #5d4037; }
[data-bs-theme='dark'] .key-concept h5 { color: #bcaaa4; }

.formula-box, .concept-box { background: var(--bs-tertiary-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 20px; height: 100%; }
.formula-box h5, .concept-box h5 { color: #5d4037; border-bottom: 2px solid #795548; padding-bottom: 10px; margin-bottom: 15px; }
.concept-box.highlight-box { border: 2px solid #ff5722; background: linear-gradient(135deg, #fbe9e7 0%, #ffccbc 100%); }
[data-bs-theme='dark'] .concept-box.highlight-box { background: linear-gradient(135deg, #bf360c 0%, #e64a19 100%); }

.interview-tip { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); border-radius: 8px; padding: 20px; border-left: 4px solid #2196f3; }
[data-bs-theme='dark'] .interview-tip { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%); }
.interview-tip h5 { color: #1565c0; }
[data-bs-theme='dark'] .interview-tip h5 { color: #90caf9; }

.visualization-container { background: var(--bs-tertiary-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 25px; }
.plot-wrapper { display: flex; justify-content: center; align-items: center; min-height: 350px; }

.tip-box { border-radius: 8px; padding: 20px; height: 100%; }
.tip-do { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); border-left: 4px solid #4caf50; }
.tip-do h5 { color: #2e7d32; }
.tip-dont { background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); border-left: 4px solid #f44336; }
.tip-dont h5 { color: #c62828; }

.accordion-button:not(.collapsed) { background-color: #efebe9; color: #5d4037; }
[data-bs-theme='dark'] .accordion-button:not(.collapsed) { background-color: #3e2723; color: #bcaaa4; }

pre { background: #282c34; border-radius: 8px; padding: 15px; overflow-x: auto; }
pre code { color: #abb2bf; font-size: 0.9em; }

/* Visualization */
.treated-point { fill: #4caf50; }
.control-point { fill: #2196f3; }
.regression-line { stroke-width: 2; fill: none; }
