/* Typing Interface Styles */
#typing-container {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
}

#text-display {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 5px;
  max-height: 300px;
  overflow-y: auto;
}

.char {
  position: relative;
}

.char.correct {
  color: #48c774;
}

.char.incorrect {
  color: #f14668;
  text-decoration: underline;
}

#input-field {
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  margin-bottom: 1rem;
}

#input-field:focus {
  border-color: #4361ee;
  outline: none;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.stat-box {
  text-align: center;
  padding: 1rem;
  border-radius: 5px;
  background: #f8f9fa;
  flex: 1;
  margin: 0 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #4361ee;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

#progress-container {
  margin: 1rem 0;
}

#progress-bar {
  height: 10px;
  background: #4361ee;
  border-radius: 5px;
  transition: width 1s linear;
}

/* Results Modal */
.modal-card {
  max-width: 600px;
}

.chart-container {
  margin: 2rem 0;
  height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
  }
  
  .stat-box {
    margin: 0.5rem 0;
  }
}