/* CS Technical Interview Roadmap Styles */

:root {
  --primary-red: #ef4444;
  --primary-dark: #090a0f;
  --card-bg: #0f111a;
  --border-color: #202334;
}

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #090a0f;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #252838;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #ef4444;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Nav Tabs */
.nav-tab.active-tab {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.mobile-nav-btn.active {
  color: #ef4444;
  font-weight: 700;
  background: #171a27;
}

/* Checkbox styling */
.custom-checkbox {
  appearance: none;
  background-color: #131520;
  border: 1.5px solid #2e3247;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.custom-checkbox:hover {
  border-color: #ef4444;
}
.custom-checkbox:checked {
  background-color: #ef4444;
  border-color: #ef4444;
}
.custom-checkbox:checked::before {
  content: "✔";
  color: white;
  font-size: 11px;
  font-weight: bold;
}

/* Markdown styling in AI chat */
.markdown-body {
  line-height: 1.6;
  color: #e2e8f0;
}
.markdown-body p {
  margin-bottom: 0.6rem;
}
.markdown-body p:last-child {
  margin-bottom: 0;
}
.markdown-body pre {
  position: relative;
  background: #08090e !important;
  border: 1px solid #232638;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0.6rem 0;
  overflow-x: auto;
}
.markdown-body pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  background: transparent !important;
}
.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  background: #151826;
  border: 1px solid #2e3247;
  color: #cbd5e1;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-code-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Quiz Option Hover & Selection */
.quiz-opt {
  transition: all 0.2s ease;
}
.quiz-opt:hover:not(.disabled) {
  border-color: #ef4444;
  background-color: #171a27;
}
.quiz-opt.correct {
  background-color: #064e3b !important;
  border-color: #10b981 !important;
  color: #ecfdf5 !important;
}
.quiz-opt.incorrect {
  background-color: #7f1d1d !important;
  border-color: #ef4444 !important;
  color: #fef2f2 !important;
}
