/* Card transitions */
.card {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.card.slide-out-left {
  opacity: 0;
  transform: translateX(-40px);
}
.card.slide-out-right {
  opacity: 0;
  transform: translateX(40px);
}
.card.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
}
.card.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
}

/* Option buttons */
.option-btn {
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.option-btn:active {
  transform: scale(0.97);
}
.option-btn.selected {
  background-color: #2C2C2C;
  color: #FAF7F2;
  border-color: #2C2C2C;
}

/* Matrix pill toggles */
.pill-toggle {
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-size: 0.7rem;
}
.pill-toggle:active {
  transform: scale(0.95);
}
.pill-toggle.selected {
  background-color: #C8A456;
  color: white;
  border-color: #C8A456;
}

/* Multi-select disabled state */
.option-btn.disabled-option {
  opacity: 0.35;
  pointer-events: none;
}

/* Shake animation for validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake {
  animation: shake 0.4s ease-in-out;
}

/* Input styling */
.survey-input {
  background: transparent;
  border-bottom: 1.5px solid #D1C7B7;
  transition: border-color 0.2s ease;
}
.survey-input:focus {
  outline: none;
  border-bottom-color: #C8A456;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar styling for matrix */
.matrix-scroll::-webkit-scrollbar {
  width: 4px;
}
.matrix-scroll::-webkit-scrollbar-thumb {
  background: #D1C7B7;
  border-radius: 2px;
}
