/* Enhanced Typing Area Styles */
.text-to-type {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    min-height: 100px;
    cursor: text;
    position: relative;
    border: 2px solid var(--highlight-bg);
    transition: border-color 0.3s ease;
    outline: none;
    letter-spacing: 1.5px; /* Increased letter spacing */
}

.text-to-type:focus {
    border-color: var(--accent-color);
}

.text-to-type.ready:after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.text-to-type .correct {
    color: var(--success-color);
}

.text-to-type .error {
    color: var(--error-color);
    background-color: rgba(255, 0, 0, 0.2);
    animation: shake 0.2s ease-in-out;
}

.text-to-type .current {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.text-to-type .current::before {
    content: '';
    position: absolute;
    left: -2px; /* Position cursor to the left of character */
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--text-primary);
    animation: blink 1s step-end infinite;
}

.fake-input-cursor {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-bg);
    border: 2px solid var(--highlight-bg);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: text;
    position: relative;
    height: 55px;
    display: flex;
    align-items: center;
    transition: border-color 0.3s ease;
}

.fake-input-cursor.active {
    border-color: var(--accent-color);
}

.fake-input-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 4px;
    color: var(--accent-color);
    font-weight: bold;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
