/* AWS SAA-C03 Practice Quiz Styles - Bootstrap Enhanced */

body { 
  background: linear-gradient(135deg, #4682b4 0%, #4682b4 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom card styling */
.card {
  border: none;
  border-radius: 15px;
}

.card-header {
  border-radius: 15px 15px 0 0 !important;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

/* Card header styling */
.card-header {
  border-radius: 15px 15px 0 0 !important;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

/* Question number and indicators styling */
.question-number {
  color: #007bff;
  font-weight: bold;
}

.multiple-choice-indicator {
  background: #fff3cd;
  color: #856404;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85em;
  margin-left: 10px;
}

.option-letter {
  background: #007bff;
  color: white;
  padding: 5px 10px;
  border-radius: 50%;
  margin-right: 10px;
  font-weight: bold;
  font-size: 0.9em;
}

.option:hover { 
  background: #e3f2fd;
  border-color: #007bff;
  transform: translateX(5px);
}

.option input { 
  margin-right: 12px;
  transform: scale(1.2);
}

/* Timer styling */
#timer {
  font-size: 1rem !important;
  padding: 8px 15px;
}

/* Button styling */
.btn-custom {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-pause {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
}

.btn-resume {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
}

/* Score display */
.score { 
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  text-align: center;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.score.fail {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Review section */
.review-item { 
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-item.correct {
  border-left: 5px solid #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.review-item.incorrect {
  border-left: 5px solid #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.review-header {
  padding: 15px;
  background: rgba(255,255,255,0.8);
  font-weight: 500;
}

.review-options {
  padding: 15px;
}

.review-option {
  padding: 8px 0;
  border-radius: 5px;
  margin-bottom: 5px;
}

.review-option.user-correct {
  background: #d4edda;
  color: #155724;
  font-weight: bold;
}

.review-option.user-incorrect {
  background: #f8d7da;
  color: #721c24;
  font-weight: bold;
}

.review-option.missed-correct {
  background: #fff3cd;
  color: #856404;
  font-weight: bold;
}

.review-summary {
  background: rgba(255,255,255,0.9);
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Explanation box styling */
.explanation-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid #2196f3;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.explanation-header {
  color: #1565c0;
  font-weight: 600;
  margin-bottom: 8px;
}

.explanation-text {
  color: #333;
  line-height: 1.6;
  font-size: 0.95em;
}

/* Error message styling */
.error-message {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #f5c6cb;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* Progress indicator */
.progress-indicator {
  background: #e9ecef;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-bar-custom {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  height: 100%;
  transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    margin: 10px;
  }
  
  .question {
    font-size: 1rem;
    padding: 15px;
  }
  
  .option {
    padding: 12px;
  }
  
  .btn-custom {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Quiz Setup Screen */
#quizSetup {
  padding: 10px 20px 20px 20px;
}

#quizSetup .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

#quizSetup .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#quizSetup .form-label {
  color: #495057;
  margin-bottom: 8px;
}

#quizSetup .btn-lg {
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

#quizSetup .btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

#quizSetup .alert {
  border-radius: 10px;
  border: none;
}

#setDescription .alert {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  margin-bottom: 0;
}

#setDescription .badge {
  font-size: 0.75em;
}

#questionSet {
  margin-bottom: 10px;
}

/* Reduce spacing between banner and quiz content */
#quizContent {
  padding: 0px 15px 15px 15px;
  margin-top: -20px;
}

/* Add more padding to question and options area */
#quiz {
  padding: 10px 20px;
  margin-bottom: 20px;
}

/* Enhanced question styling with better spacing */
.question { 
  font-size: 1.1em; 
  margin-bottom: 25px; 
  line-height: 1.6;
  background: #f8f9fa;
  padding: 20px 25px;
  border-radius: 10px;
  border-left: 4px solid #007bff;
}

/* Enhanced options styling with better spacing */
.options { 
  margin-bottom: 25px;
  padding: 0 5px;
}

.option { 
  display: block !important;
  width: 100%;
  background: #fff;
  border: 2px solid #e9ecef;
  margin-bottom: 12px; 
  padding: 15px 20px; 
  border-radius: 8px; 
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: left;
}

/* AGGRESSIVE SPACING FIXES - Force override all spacing below buttons */
.card-body {
  padding-bottom: 0.2rem !important;
}

/* Force controls spacing */
#controls {
  padding: 0 20px !important;
  margin: 5px 0 0 0 !important;
}

/* Force zero spacing on everything after controls */
#controls + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#result, #review {
  margin: 0 !important;
  padding: 10px 25px !important;
}

/* Force minimal bottom margin on card */
.card {
  margin-bottom: 0.5rem !important;
}

/* Result and review sections spacing */
#result, #review {
  padding: 20px 25px;
  margin-top: 0px;
}
