/* Euclid — A Math Teacher's Best Friend Custom Styling */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-dark: #020617;
  --panel-dark: #0f172a;
  --border-dark: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

/* Custom Minimalist Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Chat Message Bubbles */
.chat-bubble-user {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
}

.chat-bubble-assistant {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  color: #f1f5f9;
  border-radius: 18px 18px 18px 4px;
}

/* Exit Ticket Card */
.quiz-card {
  background: #090d16;
  border: 1px solid #312e81;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.1), 0 8px 10px -6px rgba(79, 70, 229, 0.1);
}

.badge-verified {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Pulsing Loader */
.dot-flashing {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 5px;
  background-color: #94a3b8;
  color: #94a3b8;
  animation: dot-flashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}

.dot-flashing::before, .dot-flashing::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-flashing::before {
  left: -12px;
  width: 6px;
  height: 6px;
  border-radius: 5px;
  background-color: #94a3b8;
  color: #94a3b8;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 0s;
}

.dot-flashing::after {
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 5px;
  background-color: #94a3b8;
  color: #94a3b8;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dot-flashing {
  0% {
    background-color: #94a3b8;
  }
  50%, 100% {
    background-color: rgba(148, 163, 184, 0.2);
  }
}

/* Print Stylesheet for Student Worksheet */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-student-worksheet, #printable-student-worksheet * {
    visibility: visible;
  }
  #printable-student-worksheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
  }
}
