/* Scilab Page Specific Styles */
.scilab-page {
  padding: 120px 0 80px 0;
  min-height: 100vh;
}

.scilab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

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

.code-explanation {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.code-explanation h2 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.code-step {
  margin-bottom: 32px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.step-num {
  background: linear-gradient(135deg, var(--lpf-color), var(--hpf-color));
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.step-header h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
}

.code-step pre {
  background: var(--code-bg);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--code-text);
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.code-step pre code {
  color: inherit;
}

.code-step pre .comment { color: #6a737d; }
.code-step pre .keyword { color: var(--accent-blue); }
.code-step pre .function { color: var(--accent-cyan); }
.code-step pre .string { color: var(--accent-green); }


.code-step p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.demo-card {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.demo-header {
  margin-bottom: 24px;
}

.control-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.chart-box {
  margin-bottom: 24px;
}

.chart-box canvas {
  width: 100%;
  max-width: 100%;
  height: 180px;
}
