body {
    margin: 0;
    background: linear-gradient(135deg, #0f172a, #020617);
    font-family: Arial, sans-serif;
    color: #e5e7eb;
}

/* HEADER */
.app-header {
    text-align: center;
    padding: 20px;
    background: #020617;
    border-bottom: 1px solid #1e293b;
}

.app-header p {
    font-size: 14px;
    color: #9ca3af;
}

/* DASHBOARD */
.dashboard {
    width: 800px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* STATS */
.stats-card {
    display: flex;
    justify-content: space-around;
    background: #020617;
    padding: 15px;
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat .label {
    font-size: 12px;
    color: #9ca3af;
}

.stat .value {
    font-size: 22px;
    font-weight: bold;
}

/* SETTINGS */
.settings-card {
    background: #020617;
    padding: 15px;
    border-radius: 8px;
}

select {
    margin-top: 5px;
    padding: 6px;
    width: 100%;
}

/* TYPING AREA */
.typing-card {
    background: #020617;
    padding: 20px;
    border-radius: 8px;
}

#progress-bar {
    height: 6px;
    background: #1e293b;
    border-radius: 4px;
    margin-bottom: 10px;
}

#progress {
    height: 100%;
    width: 0%;
    background: #22c55e;
    transition: width 0.2s;
}

#text-display {
    background: #020617;
    padding: 15px;
    min-height: 120px;
    line-height: 1.8;
    margin-bottom: 10px;
    border: 1px solid #1e293b;
}

#text-display span.correct {
    color: #22c55e;
}

#text-display span.wrong {
    color: #ef4444;
}

#text-display.placeholder {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
}


textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    background: #020617;
    color: white;
    border: 1px solid #1e293b;
    resize: none;
}

/* CONTROLS */
.controls {
    text-align: center;
}

button {
    padding: 10px 20px;
    margin: 5px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

/* FOOTER */
.app-footer {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #9ca3af;
}
