/*
 * Basic CSS styles for the Learning Diagnostic App.
 * The design is clean and minimal, inspired by modern UI systems like Tailwind.
 */
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #f5f7fb;
  color: #1f2937;
  height: 100%;
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #2d3748;
  margin-top: 0;
}

.card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: #7c3aed;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: none;
}

.button:hover {
  background-color: #6d28d9;
}

.button:disabled {
  background-color: #c4b5fd;
  cursor: not-allowed;
}

.slider {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Range input styling for modern browsers */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: #e5e7eb;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  background: #7c3aed;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #7c3aed;
}

input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: #7c3aed;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #7c3aed;
}

.radio-group {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.radio-option {
  flex: 1;
  text-align: center;
}

.radio-option input {
  margin-right: 0.25rem;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: #e5e7eb;
  border-radius: 0.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background-color: #7c3aed;
  transition: width 0.3s ease;
}

/* Styles for charts */
.chart-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.chart-container canvas {
  max-width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.export-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.info-list {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.info-list li {
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #4b5563;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}