/* assessment/styles.css */

/* Only affect elements inside our assessment container */
.dra-container,
.dra-container * {
  box-sizing: border-box;
}

/* Container card centering and default sizing */
.dra-container {
  width: 100%;       /* full width up to max */
  max-width: 500px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header title (section/category) */
.dra-container header h1#section-title {
  font-family: sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Progress bar */
.dra-container #progress-container {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.dra-container #progress-bar {
  width: 0%;
  height: 100%;
  background: #4caf50;
  transition: width 0.3s ease;
}

/* Question text and spacing */
.dra-container #question-area {
  font-size: 1.25rem;
  font-family: sans-serif;
  min-height: 60px;
  margin: 2rem 0;
}

/* Slider styling */
.dra-container .slider-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.dra-container #response-slider {
  flex: 1;
  -webkit-appearance: none;
     appearance: none;
  width: 100%;
  height: 8px;
  background: transparent;
  accent-color: #4caf50;
  margin: 0;
}
.dra-container #response-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
}
.dra-container #response-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4caf50;
  cursor: pointer;
  border: none;
  margin-top: -6px; /* center thumb */
}
.dra-container #response-slider::-moz-range-track {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
}
.dra-container #response-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4caf50;
  cursor: pointer;
  border: none;
}

.dra-container #slider-value {
  width: 2rem;
  text-align: center;
  font-weight: bold;
}

/* Button group */
.dra-container .button-group {
  display: flex;
  justify-content: space-between;
}
.dra-container .button-group button {
  padding: 0.5rem 1rem;
  border: none;
  background: #2196f3;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.dra-container .button-group button:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
}
.dra-container .button-group button:not(:disabled):hover {
  background: #1976d2;
}

/* Results area */
.dra-container #results-area h2,
.dra-container #results-list {
  font-family: sans-serif;
  margin-bottom: 0.5rem;
}

/* PDF links */
.dra-container .assessment-pdfs {
  margin-top: 1.5rem;
}
.dra-container .assessment-pdfs h3 {
  margin-bottom: 0.5rem;
}
.dra-container .assessment-pdfs ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.dra-container .assessment-pdfs a {
  color: #2196f3;
  text-decoration: none;
}
.dra-container .assessment-pdfs a:hover {
  text-decoration: underline;
}

/* Mobile override: full viewport width, centered, slightly smaller */
@media (max-width: 600px) {
  .dra-container {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 4px;
  }
}
