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

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

.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: #0d47a1; border-bottom: 2px solid #1565c0; padding-bottom: 10px; margin-bottom: 15px; }
.concept-box.highlight-box { border: 2px solid #1565c0; background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
[data-bs-theme='dark'] .concept-box.highlight-box { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%); }

.interview-tip { background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%); border-radius: 8px; padding: 20px; border-left: 4px solid #ffa000; }
[data-bs-theme='dark'] .interview-tip { background: linear-gradient(135deg, #ff6f00 0%, #ffa000 100%); }
.interview-tip h5 { color: #ff6f00; }
[data-bs-theme='dark'] .interview-tip h5 { color: #ffe082; }

.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: 400px; }

.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: #e3f2fd; color: #0d47a1; }
[data-bs-theme='dark'] .accordion-button:not(.collapsed) { background-color: #0d47a1; color: #90caf9; }

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

/* System Diagram */
.system-node { cursor: pointer; }
.system-node rect { stroke-width: 2; }
.system-node text { font-size: 12px; font-weight: 500; }
.system-link { fill: none; stroke: #666; stroke-width: 2; marker-end: url(#arrowhead); }
