:root {
    --primary-color: #58CC02;
    --primary-hover: #46a302;
    --secondary-color: #1CB0F6;
    --accent-color: #FF6B6B;
    --text-dark: #3C3C3C;
    --text-light: #7A7A7A;
    --bg-light: #F7F7F7;
    --white: #FFFFFF;
    --error-color: #FF4B4B;
    --success-color: #28a745;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --font-main: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 18px;
    /* Larger base font for readability */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Clear, Large Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    min-width: 44px;
    /* Accessibility */
    min-height: 44px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 0 #46a302;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #3a8a02;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #3a8a02;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #f0f8ff;
}

/* Simplified Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

/* Accessibility: Focus stats */
a:focus,
button:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Layout Containers */
.container {
    max-width: 800px;
    /* Narrower for focus */
    margin: 2rem auto;
    padding: 1rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

/* Typography Improvements */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-md);
    background: #fff;
}

.form-input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Helper Text */
.helper-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Practice Animations */
@keyframes pulse-mic {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.mic-listening,
.listening-mic,
.listening {
    background-color: var(--error-color) !important;
    animation: pulse-mic 1.5s infinite;
}

/* Mobile Friendly */
@media (max-width: 600px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for mobile */
    h1 {
        font-size: 2rem;
    }

    .container {
        margin: 1rem auto;
    }
}