/* Enhanced Quiz Question Component Styles */

/* Question Container Enhancements */
.question-container {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Choice Card Hover Effects */
.choice-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #dee2e6 !important;
}

.choice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: #0d6efd !important;
}

.choice-card.selected {
    border-color: #0d6efd !important;
    border-width: 2px !important;
    background-color: #f8f9ff !important;
}

/* Enhanced Form Controls */
.form-check-input {
    border-width: 2px;
    transition: all 0.15s ease-in-out;
}

.form-check-input:checked {
    border-color: #0d6efd;
    background-color: #0d6efd;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Keyword Highlighting */
mark {
    background-color: #fff3cd !important;
    color: #664d03 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
}

/* Question Text Enhancements */
.question-text {
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Answer Choice Typography */
.form-check-label {
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

.form-check-label:hover {
    color: #0d6efd !important;
}

/* Badge Enhancements */
.badge {
    font-size: 0.85em;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .question-text {
        font-size: 1rem;
        padding: 1rem !important;
    }
    
    .choice-card {
        padding: 1rem !important;
    }
    
    .form-check-label {
        font-size: 1rem !important;
    }
}

/* Shadow Utilities */
.hover-shadow {
    transition: box-shadow 0.15s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Animation for transitions */
.transition {
    transition: all 0.2s ease-in-out;
}

/* Enhanced Progress Indicators */
.progress-bar {
    transition: width 0.6s ease;
}

/* Clinical Judgment Enhancements */
.clinical-step {
    transition: all 0.3s ease;
}

.clinical-step:hover {
    transform: translateY(-1px);
}

/* Strategy Selection Enhancements */
.strategy-card {
    transition: all 0.2s ease;
}

.strategy-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Clinical Judgment Header - Force visibility */
.clinical-judgment-header {
    color: #ffffff !important;
    font-weight: bold !important;
}

.clinical-judgment-subtitle {
    color: #e6e6e6 !important;
    opacity: 0.9 !important;
}

/* Ensure Clinical Judgment text is always visible */
.clinical-judgment-header span {
    color: #ffffff !important;
}

.clinical-judgment-header .small {
    color: #e6e6e6 !important;
}

/* Stepper Component Styles */
.stepper-container {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stepper-content {
  min-height: 300px;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stepper-content .card {
  border: none;
  box-shadow: none;
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-dot {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.step-dot:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.step-dot.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.step-dot:hover:not(:disabled) {
  transform: scale(1.05);
}

.stepper-controls {
  padding: 1rem 0;
  border-top: 1px solid #dee2e6;
  margin-top: 1rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .stepper-container {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .step-dots {
    gap: 0.5rem;
  }
  
  .step-dot {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.7rem !important;
  }
  
  .stepper-controls {
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
  }
  
  .stepper-controls .text-center {
    order: -1;
    width: 100%;
  }
}

/* Key Strategies Card Scrollable Content */
.key-strategies-content {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.key-strategies-content::-webkit-scrollbar {
  width: 6px;
}

.key-strategies-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.key-strategies-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
  transition: background 0.2s ease-in-out;
}

.key-strategies-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Strategy Item Enhancements */
.strategy-item {
  transition: background-color 0.15s ease-in-out;
}

.strategy-item:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
  margin: 0 -4px;
  padding: 0 4px;
}

/* Strategy Names Preview */
.strategy-names-preview {
  line-height: 1.2;
  word-spacing: 0.1em;
}

/* Clinical Judgment Fixed Bottom Navigation */
.clinical-judgment-bottom-nav {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
}

.clinical-judgment-bottom-nav:hover {
  background-color: rgba(255, 255, 255, 1) !important;
}

/* Step Indicator Menu */
.clinical-judgment-steps-menu .step-indicator {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.clinical-judgment-steps-menu .step-indicator:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.clinical-judgment-steps-menu .step-indicator:active {
  transform: scale(0.95);
}

.clinical-judgment-steps-menu .step-indicator.btn-primary {
  animation: pulse-primary 2s infinite;
}

@keyframes pulse-primary {
  0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(13, 110, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.clinical-judgment-steps-menu .step-indicator.btn-outline-success {
  border-color: #198754;
  color: #198754;
}

.clinical-judgment-steps-menu .step-indicator.btn-outline-success:hover:not(:disabled) {
  background-color: #198754;
  color: white;
}

/* Mobile optimizations for Clinical Judgment navigation */
@media (max-width: 768px) {
  .clinical-judgment-bottom-nav {
    padding: 8px 0 !important;
  }
  
  .clinical-judgment-steps-menu .step-indicator {
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 0.7rem !important;
  }
  
  .clinical-judgment-steps-menu {
    margin-bottom: 1rem !important;
  }
  
  .clinical-judgment-steps-menu .d-flex {
    gap: 0.5rem !important;
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  .clinical-judgment-steps-menu .step-indicator {
    min-width: 48px;
    min-height: 48px;
  }
  
  .clinical-judgment-bottom-nav .btn {
    min-height: 48px;
    font-size: 1rem;
  }
}
