/* styles.css */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #2ecc71;
    --error: #e74c3c;
    --background: #f8f9fa;
    --text: #2c3e50;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric {
    background: var(--background);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.time-options {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.time-btn {
    background: #e0e0e0;
    color: var(--text);
}

.time-btn.active {
    background: var(--secondary);
    color: white;
}

.reset-btn {
    background: var(--primary);
    color: white;
}

.typing-area {
    margin-bottom: 2rem;
}

.quote {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
    min-height: 150px;
}

.input-field {
    width: 100%;
    height: 150px;
    padding: 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-field.error {
    border-color: var(--error);
}

.results {
    display: grid;
    gap: 1.5rem;
}

.result-card {
    padding: 1.5rem;
    background: var(--success);
    color: white;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.stat {
    background: var(--background);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}