.typing-test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.typing-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.typing-test-header h3 {
    margin: 0;
    color: #333;
}

.test-info {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}

.typing-text-display {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #007cba;
}

#typing-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.typing-input-area textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
}

.typing-input-area textarea:focus {
    border-color: #007cba;
    outline: none;
}

.typing-input-area textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.typing-controls {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.typing-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.typing-btn-primary {
    background: #007cba;
    color: white;
}

.typing-btn-primary:hover:not(:disabled) {
    background: #005a87;
}

.typing-btn-secondary {
    background: #6c757d;
    color: white;
}

.typing-btn-secondary:hover:not(:disabled) {
    background: #545b62;
}

.typing-btn-success {
    background: #28a745;
    color: white;
}

.typing-btn-success:hover {
    background: #1e7e34;
}

.typing-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.typing-results {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.typing-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007cba;
    transition: width 0.3s;
}

/* Character highlighting */
.correct {
    color: #28a745;
    background-color: #d4edda;
}

.incorrect {
    color: #dc3545;
    background-color: #f8d7da;
    text-decoration: underline;
}

.current {
    background-color: #fff3cd;
}
