/* ...existing code from quiz4.css... */

/* Additional styles for SLII scenarios */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.intro {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 5px solid #667eea;
}

.intro p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #2d3748;
}

.style-guide {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.style-item {
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.style-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.style-item:nth-child(1) { border-left-color: #e53e3e; }
.style-item:nth-child(2) { border-left-color: #dd6b20; }
.style-item:nth-child(3) { border-left-color: #38a169; }
.style-item:nth-child(4) { border-left-color: #3182ce; }

.scenario {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7e2 100%);
  border: 2px solid #f56565;
  border-radius: 15px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.8;
  position: relative;
}

.scenario::before {
  content: 'Scenario';
  position: absolute;
  top: -12px;
  left: 20px;
  background: #f56565;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.answer-options {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.answer-option {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(1.05rem, 2.3vw, 1.2rem);
  line-height: 1.6;
  position: relative;
}

.answer-option:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  transform: translateX(5px);
}

.answer-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.answer-option.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  transform: translateX(10px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.option-label {
  font-weight: 600;
  color: #667eea;
  margin-right: 0.5rem;
}

.answer-option.selected .option-label {
  color: #fed7e2;
}

.style-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.style-summary h4 {
  color: #2d3748;
  margin-bottom: 1rem;
}

.dominant-style {
  font-size: 1.4rem;
  font-weight: 700;
  color: #667eea;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 10px;
  margin: 1rem 0;
}

.correct-answer-item {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border-left: 5px solid #48bb78;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.correct-answer-item.incorrect {
  border-left-color: #f56565;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7e2 20%);
}

.correct-answer-item.correct {
  border-left-color: #48bb78;
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 20%);
}

.answer-status {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.answer-status.correct {
  color: #48bb78;
}

.answer-status.incorrect {
  color: #f56565;
}

.matrix-explanation {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 10px;
  font-size: clamp(1.05rem, 2.3vw, 1.15rem);
  line-height: 1.6;
  text-align: center;
  color: #4a5568;
}

/* Chart styles for SLII scenarios */
.chart-views {
  position: relative;
}

.chart-view {
  display: none;
  padding: 1rem; /* Adjusted padding */
}

.chart-view.active {
  display: block;
}

.chart-container {
  width: 100%;
  max-width: 450px; /* Slightly reduced max-width */
  margin: 1rem auto; /* Adjusted margin */
  background: white;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
  padding: 1rem; /* Adjusted padding */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* aspect-ratio: 4/3; */ /* Removing fixed aspect ratio for more flexibility */
  position: relative;
  height: auto; /* Allow height to adjust */
  min-height: 300px; /* Minimum height for smaller charts */
  max-height: 400px; /* Maximum height to prevent overflow */
}

.chart-container canvas {
  max-width: 100%;
  max-height: 100%;
}

.chart-tabs {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.chart-tab {
    flex: 1;
    min-width: 150px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-tab[data-chart="correct"] {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-color: #38a169;
}

.chart-tab[data-chart="correct"]:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.chart-tab[data-chart="correct"].active {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.5);
    border-color: #dd6b20;
}

/* Result styles */
.result {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interpretation section styles */
#interpretation {
    margin-top: 2.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#interpretation h3 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

#interpretation h3:first-child {
    margin-top: 0;
}

#interpretation p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.9;
    color: #4a5568;
    margin-bottom: 1.25rem;
}

#interpretation ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

#interpretation li {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.9;
    color: #4a5568;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

#interpretation strong {
    color: #2d3748;
    font-weight: 600;
}

#interpretation .development-level {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #667eea;
}

#scores {
    margin-bottom: 2rem;
}

/* Button styles */
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Responsive adjustments for scenarios */
@media screen and (max-width: 600px) {
  .scenario {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .answer-options {
    gap: 0.75rem;
  }
  
  .answer-option {
    padding: 0.75rem;
  }
  
  .style-guide {
    padding: 1rem;
  }
  
  .style-item {
    padding: 0.75rem;
    margin: 0.75rem 0;
  }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .intro {
        padding: 1.5rem;
    }
    
    #interpretation {
        padding: 1.5rem;
    }
}
