/* Custom styles for the test portal */

/* Smooth transitions for interactive elements */
.section-btn {
  transition: all 0.2s ease;
}

.section-btn.active {
  background-color: rgb(219, 234, 254);
  color: rgb(29, 78, 216);
}

/* Question card hover effect */
.question-card {
  transition: box-shadow 0.2s ease;
}

.question-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Custom checkbox and radio styling */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: rgb(37, 99, 235);
}

/* Focus states for accessibility */
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid rgb(59, 130, 246);
  outline-offset: 2px;
}

/* Textarea resize */
textarea {
  resize: vertical;
  min-height: 80px;
}

/* Progress bar animation */
#progress-bar {
  transition: width 0.3s ease;
}

/* Section content transitions */
.section-content {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar nav hover states */
.section-btn:not(.active):hover {
  background-color: rgb(243, 244, 246);
}

/* Conditional text area appearance */
.conditional-textarea {
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

/* Login page specific */
.login-card {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Saved indicator */
.save-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgb(34, 197, 94);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.save-indicator.show {
  opacity: 1;
  transform: translateY(0);
}
