/* Code Challenge Component Styles */
.code-challenge-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.code-challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #1e1e1e;
  border-bottom: 1px solid #333;
}

.code-challenge-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.sign-in-btn {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.sign-in-btn:hover {
  background-color: #444;
}

.code-challenge-problem-nav {
  padding: 10px 20px;
  border-bottom: 1px solid #333;
}

.problem-number {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.code-challenge-main {
  display: flex;
  flex-direction: row;
  height: calc(70vh - 120px);
  overflow: hidden;
}

.left-panel {
  display: flex;
  flex-direction: column;
  width: 50%;
  border-right: 1px solid #333;
}

.problem-tabs {
  display: flex;
  width: 100%;
  height: 40px;
  border-bottom: 1px solid #333;
}

.problem-tabs button {
  min-width: 120px;
  padding: 0 20px;
  background-color: #252526;
  color: #d4d4d4;
  border: none;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid #333;
  font-size: 14px;
}

.problem-tabs button.tab-active {
  background-color: #1e1e1e;
  border-left: 2px solid #0078d4;
  color: #ffffff;
}

.problem-tabs button:hover:not(.tab-active) {
  background-color: #252526;
}

.problem-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid #333;
}

.problem-container h1 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 24px;
}

.problem-description {
  margin-bottom: 20px;
  line-height: 1.5;
}

.problem-description code {
  background-color: #2d2d2d;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Consolas', 'Courier New', monospace;
}

/* Removed problem examples styles */

.editor-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #333;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #252526;
  border-bottom: 1px solid #333;
}

.editor-controls {
  display: flex;
  align-items: center;
}

.language-selector {
  background-color: #2d2d2d;
  color: #d4d4d4;
  border: 1px solid #3c3c3c;
  padding: 5px 10px;
  border-radius: 3px;
  margin-right: 10px;
}

.auto-btn {
  background-color: #252526;
  color: #d4d4d4;
  border: 1px solid #3c3c3c;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.auto-selected {
  background-color: #0e639c;
  border-color: #0e639c;
  color: white;
}

.editor-actions {
  display: flex;
  align-items: center;
}

.run-btn {
  display: flex;
  align-items: center;
  background-color: #252526;
  color: #d4d4d4;
  border: 1px solid #3c3c3c;
  padding: 5px 10px;
  border-radius: 3px;
  margin-right: 10px;
  cursor: pointer;
}

.submit-btn {
  display: flex;
  align-items: center;
  background-color: #0e8a16;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.run-btn svg, .submit-btn svg {
  margin-right: 5px;
}

.run-btn:hover {
  background-color: #2d2d2d;
}

.submit-btn:hover {
  background-color: #0ca01c;
}

.editor-container {
  flex: 1;
  overflow: hidden;
}

.terminal-section {
  height: 30vh;
  background-color: #1e1e1e;
  border-top: 1px solid #333;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background-color: #252526;
  border-bottom: 1px solid #333;
}

.terminal-controls {
  display: flex;
  align-items: center;
}

.terminal-btn {
  background: none;
  border: none;
  color: #d4d4d4;
  font-size: 12px;
  cursor: pointer;
  margin-left: 5px;
}

.terminal-content {
  padding: 10px;
  font-family: 'Consolas', 'Courier New', monospace;
  height: calc(30vh - 40px);
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 5px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.terminal-line.system {
  color: #569cd6;
}

.terminal-line.output {
  color: #d4d4d4;
}

.terminal-line.error {
  color: #f48771;
}

.terminal-prompt {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.prompt-symbol {
  margin-right: 5px;
  color: #569cd6;
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  color: #d4d4d4;
  font-family: 'Consolas', 'Courier New', monospace;
  outline: none;
}
