/* Basic body styling */
body {
  font-family: sans-serif;
  background-color: #f7fafc;
  /* Light gray background like Tailwind's gray-100 */
  color: #2d3748;
  /* Default text color like Tailwind's gray-800 */
}

/* Container adjustments */
.container {
  background-color: #ffffff;
  /* White background for the main content area */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  /* Tailwind's shadow-md */
  border-radius: 0.5rem;
  /* Tailwind's rounded-lg */
  margin-top: 2rem;
  /* Add some space at the top */
  margin-bottom: 2rem;
  /* Add some space at the bottom */
}

/* Question styling */
.question {
  margin-bottom: 1.5rem;
  /* Keep existing margin */
  padding-bottom: 1.5rem;
  /* Add padding at the bottom */
  border-bottom: 1px solid #e2e8f0;
  /* Add a separator line like Tailwind's gray-300 */
}

.question:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  /* No border for the last question */
}

/* Options container */
.options {
  margin-top: 0.75rem;
  /* Add some space above options */
}

/* NPS Option Styling */
.nps-option {
  display: inline-flex;
  /* Use flex for centering */
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  /* Slightly larger */
  height: 2.25rem;
  text-align: center;
  border: 1px solid #cbd5e0;
  /* Tailwind gray-400 */
  background-color: #ffffff;
  color: #4a5568;
  /* Tailwind gray-700 */
  cursor: pointer;
  border-radius: 0.375rem;
  /* Tailwind rounded-md */
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
  /* Medium weight */
}

.nps-option:hover:not(.selected) {
  background-color: #f7fafc;
  /* Tailwind gray-100 */
  border-color: #a0aec0;
  /* Tailwind gray-500 */
}

.nps-option.selected {
  /* Dynamic background/border/color applied via :style in HTML based on survey.primaryColor */
  /* Add a subtle shadow to selected */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
  /* Example focus ring, adjust color as needed */
}

/* Thumbs Option Styling */
.thumbs-option {
  font-size: 1.75rem;
  /* Larger thumbs */
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  /* Circular background */
  transition: background-color 0.2s ease, transform 0.1s ease;
  line-height: 1;
  /* Ensure icon is centered */
  display: inline-block;
}

.thumbs-option:hover:not(.selected-up):not(.selected-down) {
  background-color: #edf2f7;
  /* Tailwind gray-200 */
}

.thumbs-option:active {
  transform: scale(0.95);
  /* Slight shrink on click */
}

.thumbs-option.selected-up {
  background-color: #c6f6d5;
  /* Tailwind green-200 */
  color: #2f855a;
  /* Tailwind green-700 */
}

.thumbs-option.selected-down {
  background-color: #fed7d7;
  /* Tailwind red-200 */
  color: #c53030;
  /* Tailwind red-700 */
}

/* CSAT Option Styling (Emojis) */
.csat-option {
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}

.csat-option:hover {
  transform: scale(1.1);
  /* Slightly enlarge on hover */
}

/* Selected and hover styles are primarily handled by Tailwind classes in the HTML */


/* Loading Indicator Styles */
.loading-indicator {
  border: 4px solid rgba(255, 255, 255, 0.3);
  /* Default for light background */
  border-top-color: #ffffff;
  /* Default for light background */
  border-radius: 50%;
  width: 18px;
  /* Slightly smaller */
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Style for loader on dark/colored backgrounds (like the submit button) */
button .loading-indicator {
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
}

/* Style for loader on light backgrounds (like the initial page load) */
.loading-indicator.light-bg {
  border: 3px solid #e2e8f0;
  /* Tailwind gray-300 */
  border-top-color: #4a5568;
  /* Tailwind gray-700 */
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Alpine Cloak */
[x-cloak] {
  display: none !important;
}

/* Tailwind Base/Components/Utilities should be included via CDN or build process */
/* This file primarily contains custom component styles or overrides */

/* Add missing Tailwind color utilities if not present in CDN build */
.text-orange-500 {
  color: #f97316;
  /* Tailwind's orange-500 */
}

.text-lime-500 {
  color: #84cc16;
  /* Tailwind's lime-500 */
}