/* Base Styles */
:root {
  --primary-color: #4a6fa5;
  --primary-light: #6b8cba;
  --primary-dark: #3a5a80;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --border-color: #ddd;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #666;
  font-style: italic;
}

/* Disclaimer */
.disclaimer {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Warning */
.warning {
  background-color: #ff000011;
  border-left: 4px solid #ff0000;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.warning h3 {
  color: var(--warning-color);
  margin-bottom: 0.5rem;
}

/* Progress Bar */
#progress-container {
  margin-bottom: 2rem;
}

#progress-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

#progress-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

#progress-text {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
}

/* Question */
#question-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 500;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
}

/* Slider */
.slider-container {
  margin: 2rem 0;
  padding: 0 1rem;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
  outline: none;
  margin: 1.5rem 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.9rem;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.slider-ticks span {
  width: 20px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Buttons */
.button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #e9ecef;
  color: #333;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

/* Results */
#result-container {
  text-align: center;
  padding: 2rem 0;
}

#result-container h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.score-container {
  margin: 2rem 0;
}

.score-bar {
  height: 30px;
  background-color: #e9ecef;
  border-radius: 15px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.score-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4a6fa5, #6b8cba);
  border-radius: 15px;
  transition: width 1s ease-in-out;
}

.score-text {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.interpretation {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  text-align: left;
}

.score-info {
  margin-top: 3rem;
  text-align: left;
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.score-info h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.score-info ul {
  list-style-type: none;
}

.score-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.score-info li:last-child {
  border-bottom: none;
}

/* Footer */
.footer {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding: 1rem;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  #question-text {
    font-size: 1.1rem;
  }

  .button-container {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }
}
