/* Test Section Styles */
.solution-section {
    padding: 60px 0;
    background-color: #f8f9fa;
  }
  
  .solution-section hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 30px auto;
    width: 80%;
  }
  
  .solution-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
  }
  
  .keystroke-test, .voice-test {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  .prompt-text {
    font-size: 1.2rem;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
  }
  
  .input-container {
    margin: 20px 0;
  }
  
  #keyInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 1.1rem;
    min-height: 100px;
    transition: all 0.3s ease;
  }
  
  #keyInput:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
  }
  
  /* Virtual Keyboard */
  .virtual-keyboard {
    margin: 20px auto;
    max-width: 800px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
  
  .virtual-keyboard.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .keyboard-key {
    width: 40px;
    height: 50px;
    margin: 0 3px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.1s;
  }
  
  .keyboard-key.space {
    width: 300px;
  }
  
  .keyboard-key.enter {
    width: 100px;
    background-color: #e7f0fe;
  }
  
  .keyboard-key.active {
    background: var(--primary-color);
    color: white;
    transform: scale(0.95);
  }
  
  /* Analysis Dashboard */
  .analysis-dashboard, .analysis-result {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
  }
  
  .speed-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .metric {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
  }
  
  .metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
  }
  
  .metric-label {
    font-size: 0.9rem;
    color: #666;
  }
  
  /* Recording Section */
  #recordingStatus {
    margin: 15px 0;
    font-weight: 600;
    color: #dc3545;
  }
  
  #audioPlayback {
    width: 100%;
    margin-top: 15px;
  }
  
  /* Reset Button */
  .reset-test {
    margin-top: 20px;
    width: 100%;
  }
  
  /* Completion Messages */
  .completion-message {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .completion-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
  }
  
  .completion-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .solution-section hr {
      width: 90%;
      margin: 20px auto;
    }
    
    .keystroke-test, .voice-test {
      padding: 20px;
    }
    
    .keyboard-key {
      width: 30px;
      height: 45px;
      font-size: 0.9rem;
    }
    
    .keyboard-key.space {
      width: 200px;
    }
    
    .keyboard-key.enter {
      width: 80px;
    }
  }
