/* ── IDE Code Window Wrapper ── */
.code-window {
  background: #1e1e1e; /* VS Code Default Dark */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 28px 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.code-header {
  background: #252526;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.code-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.code-dots .dot-red {
  background: #ff5f56;
}
.code-dots .dot-yellow {
  background: #ffbd2e;
}
.code-dots .dot-green {
  background: #27c93f;
}

.code-filename {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 13px;
  color: #cccccc;
}

.code-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cccccc;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.code-copy-btn.copied {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

/* Custom Scrollbar for IDE pre elements */
.code-window pre {
  margin: 0 !important;
  padding: 16px 20px !important;
  overflow-x: auto;
  background: #1e1e1e !important;
}

.code-window pre::-webkit-scrollbar {
  height: 10px;
}

.code-window pre::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.code-window pre::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 5px;
}

.code-window pre::-webkit-scrollbar-thumb:hover {
  background: #444444;
}

.code-window code {
  font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace !important;
  text-shadow: none !important;
  background: transparent !important;
}

/* ── Interactive Quiz CSS ── */
.quiz-container {
  background: #0f1423;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.quiz-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-question {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 18px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  width: 100%;
}

.quiz-option:hover {
  background: rgba(79, 142, 247, 0.08);
  border-color: rgba(79, 142, 247, 0.4);
}

.quiz-option.correct {
  background: rgba(39, 201, 63, 0.12) !important;
  border-color: #27c93f !important;
  color: #27c93f !important;
}

.quiz-option.incorrect {
  background: rgba(255, 95, 86, 0.12) !important;
  border-color: #ff5f56 !important;
  color: #ff5f56 !important;
}

.quiz-feedback {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.quiz-feedback.success {
  display: block;
  background: rgba(39, 201, 63, 0.08);
  border: 1px solid rgba(39, 201, 63, 0.25);
  color: #58d66e;
}

.quiz-feedback.error {
  display: block;
  background: rgba(255, 95, 86, 0.08);
  border: 1px solid rgba(255, 95, 86, 0.25);
  color: #ff756e;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
