[v-cloak] {
  display: none;
}

body {
  background: darkgray;
  margin: 0;
  padding: 0;
  height: 100vh;
}

.container {
  background: white;
}

.lesson-card {
  cursor: pointer;
}

.lesson-card:hover {
  filter: drop-shadow(2px 2px 5px #000);
}

.sentence {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid lightgray;
}

.word {
  margin-right: 5px;
  color: green;
  display: inline-block;
}

.phone {
  font-size: 24px;
  margin-right: 5px;
  display: inline-block;
}

.wordRed {
  color: red;
}

.wordOrange {
  color: orange;
}

.wordGreen {
  color: green;
}

.phoneRed {
  color: red;
}

.phoneOrange {
  color: orange;
}

.phoneGreen {
  color: green;
}

#radial-scores-container {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

.gapfill-word {
  display: inline-block;
  font-size: 20px;
}

#gapfill-container {
  line-height: 2.5;
  font-family: 'Roboto Mono', monospace;
}

.gapfill-input {
  height: 35px;
  border: 1px solid black;
  padding: 2px;
}

.ngsl-item {
  cursor: pointer;
  border-bottom: 1px solid green;
}

.nawl-item {
  cursor: pointer;
  border-bottom: 1px solid blue;
}

.unknown-item {
  cursor: pointer;
  border-bottom: 1px solid red;
}

.propn-item {
  cursor: pointer;
  border-bottom: 1px solid purple;
}

.number-item {
  cursor: pointer;
  border-bottom: 1px solid yellow;
}

.other-item {
  cursor: pointer;
  border-bottom: 1px solid black;
}

.was-checked {
  background-color: yellow;
}

#loading-modal {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 999999;
  position: fixed;
}

#loading-modal-inner {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-color: white;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: url('/images/loading.gif');
  background-position: center;
  border: 1px solid black;
  background-repeat: no-repeat;
  box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.75);
}

.tracker-sort {
  cursor: pointer
}

#user-table th {
  background-color: #f5f5f5 !important;
}

#user-table tr {
  cursor: pointer;
}

#user-table tr:hover {
  background-color: darkgray;
}

.user-table-chevron {
  border-radius: 5px;
  padding: 2px;
  margin: 2px;
}

.user-table-chevron:hover {
  background-color: darkgray;
}

.centered-spinner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 75px;
  height: 75px;
}

#user-table td,
#user-table th {
  vertical-align: middle;
}

.activity-sort-div {
  border: 1px solid black;
  padding: 10px;
  cursor: pointer;
  background: white;
  margin-top: 5px;
  border-radius: 5px;
  cursor: move;
}

#lesson-table td,
#lesson-table td {
  vertical-align: middle;
}

.draggable-word {
  background-color: #f5f5f5;
  margin: 5px;
  padding: 10px;
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
}

:root {
  --send-bg: #0B93F6;
  --send-color: white;
  --receive-bg: #E5E5EA;
  --receive-text: black;
  --page-background: white;
}

#chat-container {
  height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid black;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 20px;
  font-weight: normal;
  display: flex;
  flex-direction: column;
  background-color: var(--page-background);
  padding: 10px;
}

.chat-msg {
  display: flex;
  align-items: center;
  word-wrap: break-word;
  margin-bottom: 12px;
  line-height: 24px;
  position: relative;
  padding: 10px 20px;
  border-radius: 25px;
  &:before,
  &:after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 25px;
  }
}

.chat-msg-chatbot {
  cursor: default;
  color: var(--send-color);
  background: var(--send-bg);
  align-self: flex-end;
  &:before {
    right: -7px;
    width: 20px;
    background-color: var(--send-bg);
    border-bottom-left-radius: 16px 14px;
  }
  &:after {
    right: -26px;
    width: 26px;
    background-color: var(--page-background);
    border-bottom-left-radius: 10px;
  }
}

.chat-msg-chatbot.chat-msg-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}

.chat-msg-typing {
  min-width: 72px;
  min-height: 44px;
  justify-content: center;
}

.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
}

.chat-typing-dots span {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  animation: chatTypingPulse 1.1s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.audio-recording-field {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8f8;
  border-color: #dc3545;
  color: #842029;
}

.discuss-recording-field {
  justify-content: center;
}

.recording-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #dc3545;
  box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.55);
  animation: recordingDotPulse 1.25s ease-out infinite;
}

.recording-vu {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.recording-vu span {
  width: 4px;
  height: 8px;
  display: block;
  border-radius: 999px;
  background: #dc3545;
  opacity: 0.72;
  transition: height 70ms linear, opacity 70ms linear;
}

.speak-sentence-text {
  font-size: 1.08rem;
  line-height: 1.45;
}

.speak-action-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  font-size: 1.08rem;
  line-height: 1;
}

.speak-recording-status {
  min-width: 132px;
  min-height: 38px;
  margin-left: 4px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f1aeb5;
  border-radius: 8px;
  background: #fff8f8;
  color: #842029;
}

.speak-recording-countdown {
  min-width: 24px;
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.speak-recording-time {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border: 1px solid #6c757d;
  border-radius: 0.375rem;
  background: #fff;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.speak-recording-vu {
  justify-content: flex-start;
}

@keyframes chatTypingPulse {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes recordingDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.chat-msg-user {
  background: var(--receive-bg);
  color: black;
  align-self: flex-start;
  &:before {
    left: -7px;
    width: 20px;
    background-color: var(--receive-bg);
    border-bottom-right-radius: 16px 14px;
  }
  &:after {
    left: -26px;
    width: 26px;
    background-color: var(--page-background);
    border-bottom-right-radius: 10px;
  }
}

.chat-msg-system,
.chat-msg-system-notice {
  align-self: center;
  max-width: 90%;
  border-radius: 8px;
  background: #eef4ff;
  color: #344054;
  font-size: 0.92rem;
  line-height: 1.4;
}

.chat-msg-system:before,
.chat-msg-system:after,
.chat-msg-system-notice:before,
.chat-msg-system-notice:after {
  display: none;
}

.chat-msg-system-notice {
  margin-left: auto;
  margin-right: auto;
}

.chat-msg-system-notice button i,
.chat-msg-system-notice .spinner-border {
  color: #344054 !important;
}

.discussion-end-note {
  max-width: 90%;
  margin: 0.75rem auto 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #eef4ff;
  color: #344054;
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

.chat-msg-pending {
  opacity: 0.6;
}

.speech-alert-message {
  text-align: left;
  color: #344054;
}

.speech-alert-lead {
  margin: 0 0 12px;
  color: #101828;
  font-weight: 600;
  line-height: 1.45;
}

.speech-alert-tips {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #f9fafb;
  padding: 12px 14px;
}

.speech-alert-tips p {
  margin: 0 0 8px;
  color: #475467;
  font-size: 0.95rem;
}

.speech-alert-tips ol {
  margin: 0;
  padding-left: 1.25rem;
}

.speech-alert-tips li {
  margin: 6px 0;
  line-height: 1.4;
}

.eigoai-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.eigoai-modal-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  width: 90%;
  max-width: 1000px;
  height: 90%;
  background-color: white;
  z-index: 11;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
}

.eigoai-modal-header {
  sposition: sticky;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.user-table-row:hover {
  background-color: darkgray !important;
}

.institution-row:hover {
  background-color: lightgray;
  cursor: pointer;
}

#header-flex-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

#header-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid black;
  height: 120px;
}

#site-container {
  min-height: 100vh;
  position: relative;
  padding-top: 120px;
  padding-bottom: 150px;
}

.student-view-notice {
  margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
  margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

.blurred {
  filter: blur(4px);
}

#header-badge-holder {
  flex-direction: row;
}

#header-badge-holder .badge {
  margin-right: 5px;
}

.progress-table-cell-div {
  cursor: pointer;
  border-radius: 5px;
  min-width: 100px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-table-cell-div:hover {
  border: 1px solid black;
}

.chart-label-with-asterisk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chart-label-with-asterisk .chart-asterisk {
  margin-left: 4px;
}

.chart-asterisk {
  color: #dc3545;
  font-weight: 600;
}

/* General table styles */

.sortable-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Container to make the table body scrollable */

.sortable-table-container {
  height: 600px;
  /* Adjust as needed */
  overflow-y: scroll;
  overflow-x: scroll;
  border: 1px solid black;
}

/* Sticky table header */

.sortable-table-header {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Table header cells */

.sortable-table th {
  background-color: #f0f0f0;
  /* Light gray */
  border-right: 1px solid #a0a0a0;
  /* Darker gray */
  padding: 5px;
  text-align: center;
  user-select: none;
}

/* Cursor pointer for sortable headers */

.sortable-th {
  cursor: pointer;
}

/* Hover effect on sortable headers, except when active */

.sortable-th:hover:not(.active-sort) {
  background-color: #d0d0d0;
  /* Slightly darker gray */
}

/* Active sort column */

.active-sort {
  font-weight: bold;
  background-color: #c0c0c0 !important;
  /* Slightly darker than hover */
}

/* Ensure active sort background color persists on hover */

.sortable-th.active-sort:hover {
  background-color: #c0c0c0;
}

/* Table data cells */

.sortable-table td {
  border-bottom: 1px solid #a0a0a0;
  border-right: 1px solid #a0a0a0;
  padding: 5px;
}

.sortable-table tr:hover {
  background-color: lightgray;
  cursor: pointer;
}

/* Text alignment classes */

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.vertical-th {
  writing-mode: vertical-rl;
  min-width: 50px;
}

.status-completed {
  background-color: rgba(0, 255, 0, 0.3) !important;
}

.status-attempted {
  background-color: rgba(0, 0, 255, 0.3) !important;
}

.status-not-attempted {
  background-color: rgba(255, 0, 0, 0.3) !important;
}

.timer-modal {
  height:300px;
  background-color:#f5f5f5;
  position:relative;
}

.timer-modal-btn {
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom:0;
  width:200px;
  height:100px;
  font-size:16px;
}

.activity-timer-div {
  font-family: monospace;
  font-size: 16px;
  color: white;
  background-color: #111;
  width: 120px;
  height: 38px;
  line-height: 38px;
  padding: 0;
  border-radius: 6px;
  text-align: center;
  letter-spacing: 3px;
}

.submitted-cell {
  background-color: rgba(0, 255, 0, 0.3) !important;
}

.unsubmitted-cell {
  background-color: rgba(255, 0, 0, 0.3) !important;
}

.clickable-topic-cell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* On hover, slightly shade the background */
.clickable-topic-cell:hover {
  color: blue;
}
