/* Custom Styling for CSC204 Mastery Hub */

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Nav Tab States */
.nav-tab {
  color: #94a3b8;
}
.nav-tab:hover {
  color: #f8fafc;
  background-color: #1e293b;
}
.nav-tab.active {
  color: #ffffff;
  background-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Draggable Parsons Lines */
.parsons-line {
  background: #1e293b;
  border: 1px solid #334155;
  transition: all 0.15s ease-in-out;
  cursor: grab;
  user-select: none;
}
.parsons-line:active {
  cursor: grabbing;
}
.parsons-line:hover {
  border-color: #6366f1;
  background: #1e293b;
  transform: translateX(2px);
}
.sortable-ghost {
  opacity: 0.4;
  background-color: #312e81 !important;
  border-color: #6366f1 !important;
}
.sortable-chosen {
  background-color: #1e1b4b !important;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

/* MCQ Option hover and selected states */
.mcq-option {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mcq-option:hover:not(.disabled) {
  border-color: #6366f1;
  background-color: #1e293b;
}
.mcq-option.correct {
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #6ee7b7 !important;
}
.mcq-option.incorrect {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

/* Code block highlight */
pre code {
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

/* Smooth fade in */
.tab-view {
  animation: fadeIn 0.2s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
