.typing-test-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.display-box {
    border: 2px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 120px;
    font-size: 1.2em;
    line-height: 1.6;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#typing-input {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: 2px solid #5c67f2; /* Example Primary Color */
    resize: none;
    border-radius: 8px;
    box-sizing: border-box; /* Padding included in width */
}

.controls-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.metrics {
    display: flex;
    gap: 30px;
    font-size: 1.1em;
}

.metrics span {
    font-weight: bold;
    color: #5c67f2;
}

/* Button Styling */
#start-btn, #restart-btn {
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #28a745; /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
#start-btn:hover, #restart-btn:hover {
    background-color: #218838;
}

/* Feedback Colors */
.correct { color: #28a745; } /* Green */
.incorrect { background-color: #dc3545; color: white; padding: 1px 0; border-radius: 2px; } /* Red highlight */
.current { background-color: #ffc107; color: black; border-radius: 2px; } /* Yellow highlight for cursor */

/* Final Result Modal */
#final-result {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #5c67f2;
    border-radius: 8px;
    background-color: #e6e8ff;
    text-align: center;
}