/* Google Fonts Montserrat import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body,
.chat-container,
.chat-header,
.chat-header-content,
.chat-header-actions,
.chat-header-title,
.chat-header-subtitle,
.chat-messages,
.message,
.user,
.bot,
.chat-input-area,
.chat-input,
.send-btn,
.journal-container,
.journal-header,
.journal-title,
.journal-body,
.journal-editor,
.journal-footer,
.journal-controls,
.journal-actions,
.btn-rounded,
.btn-primary,
.btn-secondary,
.complete-session-btn,
.save-button,
.option-btn {
    font-family: 'Montserrat', 'Inter', 'Segoe UI', Arial, sans-serif !important;
}

/* Record button gradient styling */
#record-button,
.journal-mic-btn {
  background: linear-gradient(90deg, #4AB7EF 0%, #9B74C7 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#record-button:hover,
.journal-mic-btn:hover {
  background: linear-gradient(90deg, #9B74C7 0%, #4AB7EF 100%);
}
/* Add this to your existing CSS */

.save-button {
  background-color: #40baea;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 14px;
  margin: 10px 0;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s;
}

.save-button:hover {
  background-color: #2a9fd8;
}

/* Add styling for the options container and buttons for long-answer MCQs */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.option-btn {
    background-color: #f0f4f8; /* Light distinct background */
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: normal; /* Allow text wrapping for long answers */
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.option-btn:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.option-btn:active {
    transform: translateY(0);
    box-shadow: none;
    background-color: #cbd5e0;
}

.typing {
  font-style: italic;
  opacity: 0.7;
}


.input-mode-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-panel {
  width: 100%;
}

.text-panel.hidden {
  display: none;
}

.text-panel {
  width: 100%;
  display: flex;
}

.text-panel .chat-input {
  flex: 1;
  width: 100%;
  min-height: 48px;
}

.add-note-link {
  border: none;
  background: none;
  padding: 6px 0 0;
  color: #1c5d78;
  font-weight: 700;
  font-size: 0.92em;
  text-align: left;
  width: 100%;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}

.add-note-link:hover,
.add-note-link:focus {
  color: #0d3c4f;
}

.add-note-link.notes-active {
  color: #0d3c4f;
}

.add-note-link::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transition: transform 0.2s ease;
  margin-left: 4px;
}

.add-note-link.notes-active::after {
  transform: rotate(90deg);
}

.rating-slider {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  padding-bottom: 22px;
}

.rating-slider-scale {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.rating-slider-track {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.slider-thumb-value {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(calc(-50% + 2px), -50%);
  color: #6055a5;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

.rating-scale-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.rating-scale-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.rating-scale-icon.minus {
  background: #4AB7EF;
}

.rating-scale-icon.plus {
  background: #9B74C7;
}

.neutral-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  white-space: nowrap;
}

.rating-slider input[type="range"] {
  width: 100%;
  flex: 1;
  appearance: none;
  height: 24px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.rating-slider input[type="range"]:focus {
  outline: none;
}

.rating-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  background: linear-gradient(90deg, #4AB7EF 0%, #9B74C7 100%);
  border-radius: 999px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.rating-slider input[type="range"]::-moz-range-track {
  height: 12px;
  background: linear-gradient(90deg, #4AB7EF 0%, #9B74C7 100%);
  border-radius: 999px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.rating-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #c0c4c7 55%, #7f858a);
  border: 1px solid #a0a5aa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  margin-top: -8px;
}

.rating-slider input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #c0c4c7 55%, #7f858a);
  border: 1px solid #a0a5aa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.rating-submit-btn {
  background: #40baea;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 6px 16px rgba(64, 186, 234, 0.25);
  white-space: nowrap;
}

.rating-submit-btn:hover {
  background: #2a9fd8;
}

.rating-submit-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.paper-plane-icon,
.paper-plane-icon-right,
.mic-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  fill: currentColor;
}

.paper-plane-icon {
  transform: translate(-2px) rotate(45deg);
}

.paper-plane-icon-right {
  transform: translateX(-2px) rotate(45deg);
}

#send-button.send-btn {
  background: linear-gradient(90deg, #4AB7EF 0%, #9B74C7 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#send-button.send-btn:hover {
  background: linear-gradient(90deg, #9B74C7 0%, #4AB7EF 100%);
}
/* Mike button gradient styling */
.mike-btn,
.mic-btn {
  background: linear-gradient(90deg, #4AB7EF 0%, #9B74C7 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mike-btn:hover,
.mic-btn:hover {
  background: linear-gradient(90deg, #9B74C7 0%, #4AB7EF 100%);
}

.hidden {
  display: none !important;
}
.rating-scale-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(72px, 18vw, 112px);
  min-width: 72px;
  max-width: 112px;
  min-height: 24px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.rating-scale-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #555;
  font-weight: 600;
  text-align: center;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.2;
  pointer-events: none;
}

/* Ensure speech-toggle uses Montserrat */
.speech-toggle {
    font-family: 'Montserrat', 'Inter', 'Segoe UI', Arial, sans-serif !important;
}
.speech-toggle .speech-toggle-text {
    font-family: 'Montserrat', 'Inter', 'Segoe UI', Arial, sans-serif !important;
}

/* Ensure dropdowns use Montserrat font */
.questionnaire-select-group select,
.language-select-group select {
    font-family: 'Montserrat', 'Inter', 'Segoe UI', Arial, sans-serif !important;
}
.questionnaire-select-group label,
.language-select-group label {
    font-family: 'Montserrat', 'Inter', 'Segoe UI', Arial, sans-serif !important;
}
