.simulation-center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .simulation-center-wrapper {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-items: stretch;
  }
}
.feedback-correct {
  color: #218838;
  font-weight: 500;
}
.feedback-incorrect {
  color: #c82333;
  font-weight: 500;
}
.feedback-expected {
  color: #004085;
  font-size: 0.98em;
  margin-left: 0.5em;
}
.feedback-all-correct {
  color: #155724;
  font-weight: bold;
  margin-top: 0.5em;
}

body {
  background: #f8f9fa;
}

.simulation-container {
  max-width: 1200px;
  align-items: center;
}

.problem-statement {
  font-size: 1.1rem;
  background: #fff;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
}

.code-area {
  background: #23272f;
  color: #f8f8f2;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  font-family: "Fira Mono", "Consolas", monospace;
  font-size: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.template-line {
  white-space: pre;
  margin-bottom: 0.1rem;
}

.blank-input,
.code-blank {
  width: 120px;
  margin: 0 4px;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 1rem;
  display: inline-block;
}

.blank-input.is-invalid,
.code-blank.is-invalid {
  border-color: #dc3545;
  background: #fff0f0;
}

.hints-area {
  background: #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  min-height: 120px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.hint-box,
.hint-text {
  margin-top: 0.5rem;
  color: #0c5460;
  background: #d1ecf1;
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 0.98rem;
}

.output-area {
  min-height: 40px;
  font-size: 1.05rem;
}

@media (max-width: 991px) {
  .simulation-container {
    padding: 0 0.5rem;
  }
}

@media (max-width: 768px) {
  .simulation-container {
    padding: 0 0.2rem;
  }
  .problem-statement,
  .code-area,
  .hints-area {
    padding: 0.7rem;
    font-size: 1rem;
  }
  .blank-input,
  .code-blank {
    width: 90px;
    font-size: 0.95rem;
  }
}
