/* Basic Reset and Layout (No change) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #CFA3FF;
}

.container {
    margin: 20px;
    width: 90%;
    max-width: 1300px;
    padding: 30px;
    background-color: #ecebec;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 12px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px; /* Increased margin */
}

/* ------------------------------------------- */
/* NEW: Mode Options Styling (Increased Spacing) */
/* ------------------------------------------- */
#mode-options {
    margin-bottom: 20px; /* Added more vertical space below the mode buttons */
}

.mode-btn {
    padding: 8px 15px;
    margin: 0 5px;
    font-size: 1em;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #650465;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}

.mode-btn:hover {
    background-color: #e2e6ea;
}

/* NEW COLOR: Dark Purple for Active Mode */
.mode-btn.active-mode {
    background-color: #8009b3; /* Dark Purple */
    color: white;
    border-color: #8009b3;
    font-weight: bold;
}

/* ------------------------------------------- */
/* Time Options Styling (Increased Spacing) */
/* ------------------------------------------- */
#time-options {
    margin-bottom: 15px; /* Added more vertical space below the time buttons */
}

.time-btn {
    padding: 4px 8px;
    margin: 0 5px;
    font-size: 1em;
    cursor: pointer;
    background-color: #e9ecef;
    color: #600086;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}

.time-btn:hover {
    background-color: #dee2e6;
}

/* NEW COLOR: Dark Purple for Active Time */
.time-btn.active-time {
    background-color: #540277; /* Dark Purple */
    color: white;
    border-color: #5d3f6a;
    font-weight: bold;
}

/* ------------------------------------------- */
/* Stats Section (No major change) */
/* ------------------------------------------- */
#stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
}

/* ------------------------------------------- */
/* Quote Display Styling (No change) */
/* ------------------------------------------- */
#quote-display {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.4em;
    line-height: 1.8;
    text-align: left;
    background-color: #fcfcfc;
    min-height: 100px; 
    max-height: 200px; 
    overflow-y: auto; 
}

/* Real-Time Feedback Classes (No change) */
.correct {
    color: #1abc9c; 
}

.incorrect {
    color: #e74c3c; 
    background-color: #f9e3e3;
    border-radius: 2px;
}

.active {
    background-color: #ffeaa7; 
    border-radius: 2px;
    text-decoration: underline;
}

/* ------------------------------------------- */
/* User Input and Button */
/* ------------------------------------------- */
#user-input {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    box-sizing: border-box;
    margin-bottom: 25px;
    font-size: 1.2em;
    resize: none;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s;
}

#user-input:focus:not([disabled]) {
    /* Updated focus color to match the purple aesthetic */
    border-color: #9b59b6; 
    outline: none;
}

#start-reset-btn {
    padding: 12px 25px;
    font-size: 1.2em;
    cursor: pointer;
    /* NEW COLOR: Primary button uses Dark Purple */
    background-color: #5d3f6a; 
    color: white;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

#start-reset-btn:hover {
    background-color: #d69cf8; /* Slightly lighter purple for hover effect */
}

/* Result Display (No major change) */
#result {
    margin-top: 20px;
    padding: 20px;
    /* Updated result border color to match the purple aesthetic */
    border: 2px solid #9b59b6; 
    background-color: #f2e7f8; /* Very light purple background */
}

#result p {
    font-size: 1.3em;