/* Enhanced Base Styles with Bluish-Purple Theme */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
    transition: all 0.2s ease-in-out;
}

:root {
    --primary-gradient: linear-gradient(135deg, #4a6bdf, #7e57c2);
    --secondary-gradient: linear-gradient(135deg, #3a4bd6, #9c56cc);
    --hover-gradient: linear-gradient(135deg, #3755c2, #8344b5);
    --primary-color: #4a6bdf;
    --secondary-color: #7e57c2;
    --accent-color: #ff7eb3;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #f8f9ff;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 10px rgba(122, 122, 231, 0.1);
    --shadow-md: 0 4px 20px rgba(122, 122, 231, 0.15);
    --shadow-lg: 0 8px 30px rgba(122, 122, 231, 0.2);
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --border-radius-sm: 5px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    color: var(--text-color);
    margin-bottom: 18px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
}

a:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary-gradient);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(-1px);
}

.primary-btn {
    background: var(--primary-gradient);
    color: white;
}

.primary-btn:hover {
    background: var(--hover-gradient);
}

.send-btn {
    background: linear-gradient(135deg, #2ecc71, #3498db);
    color: white;
}

.send-btn:hover {
    background: linear-gradient(135deg, #27ae60, #2980b9);
}

/* Effect for buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.5s;
    border-radius: 50%;
}

.btn:hover::before {
    transform: scale(2);
}

/* Enhanced Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: none;
    margin-bottom: 30px;
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links a {
    margin-left: 20px;
    padding: 5px 0;
    font-weight: 500;
}

/* Enhanced Home Page */
.home-container {
    text-align: center;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 60px 0;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    z-index: -1;
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.languages {
    margin: 60px 0;
}

.language-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.language-option {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 15px;
    width: 45%;
    min-width: 280px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.language-option::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.language-option:hover {
    transform: translateY(-5px);
    color: white;
}

.language-option:hover::after {
    opacity: 1;
}

.language-option:hover h3, 
.language-option:hover p {
    color: white;
    position: relative;
    z-index: 1;
}

.cta-section {
    margin: 70px 0;
    padding: 50px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="100%" fill="white"/><path d="M0 50 Q 25 0, 50 50 T 100 50 T 150 50" stroke="%234a6bdf" stroke-width="0.5" fill="none" opacity="0.3" /></svg>');
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transform: translateY(-100%);
    transition: transform 0.4s ease-out;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover::before {
    transform: translateY(0);
}

footer {
    margin-top: 70px;
    padding: 30px 0;
    border-top: none;
    color: var(--text-light);
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(122, 122, 231, 0.05));
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

/* Tutor Page Enhancements */
.session-setup {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border-left: 5px solid transparent;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.setup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.form-group {
    flex: 1;
    min-width: 220px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

select, input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0ff;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s, box-shadow 0.3s;
}

select:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 122, 231, 0.2);
}

/* Conversation Interface */
.conversation-wrapper {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-top: 30px;
}

/* Microphone Interface */
.microphone-interface {
    text-align: center;
    margin: 30px 0 50px;
}

.mic-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.mic-button {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.mic-button.recording {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: scale(1.05);
}

.mic-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.mic-icon {
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5-3c0 3-2.07 5.64-4.75 6.36v1.14h2.25a.75.75 0 010 1.5h-5a.75.75 0 010-1.5h2.25v-1.14C8.07 16.64 6 14 6 11H7.5c0 2.48 2.02 4.5 4.5 4.5s4.5-2.02 4.5-4.5H18z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.mic-wave {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(74, 107, 223, 0.6);
    opacity: 0;
    z-index: 0;
}

.recording .mic-wave {
    animation-play-state: running !important;
    border-color: rgba(231, 76, 60, 0.6);
}

.wave1 {
    width: 100%;
    height: 100%;
    animation: wave 2s infinite linear;
    animation-play-state: paused;
}

.wave2 {
    width: 100%;
    height: 100%;
    animation: wave 2s infinite linear 0.6s;
    animation-play-state: paused;
}

.wave3 {
    width: 100%;
    height: 100%;
    animation: wave 2s infinite linear 1.2s;
    animation-play-state: paused;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.recognition-result {
    margin-top: 20px;
    font-style: italic;
    color: var(--text-light);
    height: 24px;
    background: rgba(122, 122, 231, 0.1);
    padding: 10px;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Text Input */
.text-input-container {
    display: flex;
    margin: 25px 0;
}

#text-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0ff;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#text-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 122, 231, 0.2);
}

#send-text-btn {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    padding: 0 25px;
}

/* Response Area */
.response-area {
    background-color: rgba(122, 122, 231, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.text-response {
    min-height: 100px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid #e0e0ff;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Chat History */
.chat-history {
    border-top: none;
    position: relative;
    padding-top: 30px;
    margin-top: 40px;
}

.chat-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.chat-history-content {
    max-height: 350px;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid #e0e0ff;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0ff;
}

.chat-history-content::-webkit-scrollbar {
    width: 8px;
}

.chat-history-content::-webkit-scrollbar-track {
    background: #f0f0ff;
    border-radius: 10px;
}

.chat-history-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.chat-history-content p {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    position: relative;
}

.chat-history-content p:nth-child(odd) {
    background-color: rgba(122, 122, 231, 0.1);
    margin-right: 40px;
    border-top-left-radius: 0;
}

.chat-history-content p:nth-child(even) {
    background-color: rgba(126, 87, 194, 0.1);
    margin-left: 40px;
    border-top-right-radius: 0;
}

/* Authentication Pages */
.auth-container {
    max-width: 600px;
    margin: 40px auto;
}

.auth-form-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.auth-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.auth-form {
    margin-top: 30px;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.remember-me input {
    width: auto;
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.remember-me label {
    margin-bottom: 0;
}

.form-actions {
    margin-top: 30px;
}

.auth-alt-action {
    margin-top: 25px;
    text-align: center;
    color: var(--text-light);
}

/* Profile Page */
.profile-container {
    background-color: var(--bg-color);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.profile-actions {
    display: flex;
    gap: 15px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.profile-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(122, 122, 231, 0.05);
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
    background-color: rgba(122, 122, 231, 0.1);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.skills-list, .problem-areas-list {
    margin-top: 20px;
}

.skill-item, .problem-area-item {
    margin-bottom: 20px;
}

.skill-name, .area-name {
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar-container, .area-bar-container {
    height: 12px;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-bar, .area-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.skill-bar::after, .area-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 2s infinite linear;
    transform: translateX(-100%);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skill-score, .area-score {
    position: absolute;
    right: 10px;
    top: -5px;
    font-size: 0.85rem;
    color: var(--text-light);
    background-color: white;
    padding: 0 5px;
    border-radius: 10px;
}

.recommendations-list {
    list-style: none;
    margin-top: 20px;
}

.recommendations-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(122, 122, 231, 0.05);
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.recommendations-list li:hover {
    transform: translateY(-3px);
    background-color: rgba(122, 122, 231, 0.1);
}

.recommendation-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.recommendation-text {
    flex: 1;
}

.no-data-message {
    color: var(--text-light);
    font-style: italic;
    margin: 25px 0;
    text-align: center;
    padding: 20px;
    background-color: rgba(122, 122, 231, 0.05);
    border-radius: var(--border-radius);
}

/* Enhanced Assessment Styles */
.assessment-container h1 {
    margin-bottom: 30px;
}

.user-info {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
}

.assessment-intro {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    background-image: radial-gradient(
        circle at top right,
        rgba(122, 122, 231, 0.1),
        transparent 70%
    );
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-description {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

.problem-areas {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.problem-areas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(122, 122, 231, 0.05));
    z-index: 0;
}

.problem-areas > * {
    position: relative;
    z-index: 1;
}

.focus-areas-list {
    list-style: none;
    margin-top: 20px;
}

.focus-areas-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(122, 122, 231, 0.05);
    border-radius: var(--border-radius);
    transition: transform 0.3s, background-color 0.3s;
}

.focus-areas-list li:hover {
    transform: translateY(-3px);
    background-color: rgba(122, 122, 231, 0.1);
}

.area-name {
    flex: 1;
    font-weight: 500;
}

.area-score {
    width: 220px;
    height: 12px;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-left: 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.score-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.score-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 2s infinite linear;
    transform: translateX(-100%);
}

.score-text {
    position: absolute;
    right: 10px;
    top: -5px;
    font-size: 0.85rem;
    color: var(--text-light);
    background-color: white;
    padding: 0 5px;
    border-radius: 10px;
}

.recent-assessments {
    margin-top: 40px;
}

.assessment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.assessment-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.assessment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
}

.assessment-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.assessment-details {
    margin-bottom: 20px;
}

.view-all-link {
    display: block;
    text-align: right;
    margin-top: 20px;
    font-weight: 500;
}

/* Individual Assessment Page */
.assessment-header {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: radial-gradient(
        circle at top right,
        rgba(122, 122, 231, 0.1),
        transparent 70%
    );
}

.assessment-section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.assessment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.progress-bar-container {
    height: 12px;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 2s infinite linear;
    transform: translateX(-100%);
}

#progress-text {
    text-align: center;
    margin-top: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.question {
    margin-bottom: 40px;
    background-color: rgba(122, 122, 231, 0.03);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.question-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.option:hover {
    background-color: rgba(122, 122, 231, 0.1);
    transform: translateX(5px);
}

.option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.assessment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(122, 122, 231, 0.1);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    margin: 30px auto;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Display */
.results-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 30px;
}

.score-display {
    text-align: center;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: -1;
}

.score-circle::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.level-change {
    text-align: center;
    padding: 20px;
    background-color: rgba(122, 122, 231, 0.1);
    border-radius: var(--border-radius);
    margin-top: 15px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

.feedback-container {
    background-color: rgba(122, 122, 231, 0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    border-left: 5px solid var(--primary-color);
}

.feedback-content {
    white-space: pre-line;
    line-height: 1.7;
    font-size: 1.05rem;
}

.results-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Question review styles */
.question-review {
    background-color: rgba(122, 122, 231, 0.03);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid var(--text-light);
    transition: transform 0.3s;
}

.question-review:hover {
    transform: translateY(-3px);
}

.question-review.correct {
    border-left-color: #2ecc71;
}

.question-review.incorrect {
    border-left-color: #e74c3c;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.result-badge.correct {
    background-color: rgba(46, 204, 113, 0.2);
    color: #155724;
}

.result-badge.incorrect {
    background-color: rgba(231, 76, 60, 0.2);
    color: #721c24;
}

.question-content {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.option.selected {
    border: 2px solid var(--primary-color);
    background-color: rgba(122, 122, 231, 0.05);
}

.option.correct {
    background-color: rgba(46, 204, 113, 0.1);
    color: #155724;
    border-color: #2ecc71;
}

.option.incorrect {
    background-color: rgba(231, 76, 60, 0.1);
    color: #721c24;
    border-color: #e74c3c;
}

.icon {
    margin-left: auto;
    font-weight: bold;
    font-size: 1.2rem;
}

.icon.correct {
    color: #2ecc71;
}

.icon.incorrect {
    color: #e74c3c;
}

.explanation {
    background-color: rgba(122, 122, 231, 0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    border-left: 3px solid var(--primary-color);
}

.explanation h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Question types */
.question-passage {
    background-color: rgba(122, 122, 231, 0.03);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    white-space: pre-line;
    border-left: 3px solid var(--primary-color);
    line-height: 1.7;
}

.audio-text {
    background-color: rgba(122, 122, 231, 0.03);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 3px solid var(--primary-color);
}

.tts-btn {
    background: var(--primary-gradient);
    color: white;
    margin-top: 15px;
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tts-btn::before {
    content: '🔊';
    font-size: 1.2rem;
}

.speaking-prompt {
    background-color: rgba(122, 122, 231, 0.03);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
}

.evaluation-criteria {
    margin: 15px 0;
}

.evaluation-criteria ul {
    padding-left: 25px;
}

.evaluation-criteria li {
    margin-bottom: 8px;
}

.speaking-tips {
    background-color: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    border-left: 3px solid #ffc107;
}

.self-evaluation {
    margin-top: 25px;
}

.question-text-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0ff;
    border-radius: var(--border-radius);
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s, box-shadow 0.3s;
    line-height: 1.5;
}

.question-text-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 122, 231, 0.2);
}

/* New Assessment Styles for Simplified HTML */
.q-wrap {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border-left: 5px solid transparent;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.q-text {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(122, 122, 231, 0.02);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.option:hover {
    background-color: rgba(122, 122, 231, 0.08);
    transform: translateX(5px);
}

.option.selected {
    border-color: var(--primary-color);
    background-color: rgba(122, 122, 231, 0.05);
}

.option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.option label {
    flex: 1;
    cursor: pointer;
}

.option.correct {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.option.incorrect {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.feedback-content {
    white-space: pre-line;
    line-height: 1.7;
}

@keyframes typing {
    from { border-right-color: var(--primary-color); }
    to { border-right-color: transparent; }
}

.feedback-content {
    border-right: 3px solid var(--primary-color);
    animation: typing 0.7s infinite alternate;
    padding-right: 8px;
    font-size: 1.05rem;
}

.progress-container {
    margin-bottom: 25px;
    text-align: center;
}

.progress-text {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.assessment-navigation {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.results-summary {
    text-align: center;
    padding: 30px;
    background-color: rgba(122, 122, 231, 0.05);
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.level-change {
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 500;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Markdown styling for assessment feedback */
.markdown-content {
    line-height: 1.7;
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    padding: 20px;
    background-color: rgba(122, 122, 231, 0.02);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.markdown-content:not(.complete) {
    border-right: 3px solid var(--primary-color);
    animation: typing 0.7s infinite alternate;
    padding-right: 8px;
}

.markdown-content h1 {
    font-size: 1.9rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
    border-bottom: 2px solid rgba(122, 122, 231, 0.2);
    padding-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.markdown-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.3rem 0 0.9rem;
    color: var(--text-color);
    position: relative;
    padding-left: 12px;
}

.markdown-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

.markdown-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.1rem 0 0.7rem;
    color: var(--text-color);
}

.markdown-content p {
    margin: 1rem 0;
    line-height: 1.7;
}

.markdown-content ul, 
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2.2rem;
}

.markdown-content li {
    margin: 0.5rem 0;
}

.markdown-content ul li {
    list-style-type: disc;
}

.markdown-content ol li {
    list-style-type: decimal;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 1.2rem 0;
    color: var(--text-light);
    font-style: italic;
    background-color: rgba(122, 122, 231, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.markdown-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background-color: rgba(122, 122, 231, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--primary-color);
}

.markdown-content pre {
    background-color: rgba(122, 122, 231, 0.05);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    overflow-x: auto;
    margin: 1.2rem 0;
    border-left: 3px solid var(--primary-color);
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.9em;
    white-space: pre;
    color: var(--text-color);
}

.markdown-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

.markdown-content em {
    font-style: italic;
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

.markdown-content a:hover {
    text-decoration: none;
}

.markdown-content a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary-gradient);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.markdown-content a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.markdown-content hr {
    height: 3px;
    border: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 2rem 0;
    border-radius: 3px;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.markdown-content table th,
.markdown-content table td {
    border: 1px solid rgba(122, 122, 231, 0.2);
    padding: 0.8rem 1.2rem;
}

.markdown-content table th {
    background: linear-gradient(to bottom, rgba(122, 122, 231, 0.1), rgba(122, 122, 231, 0.05));
    font-weight: 600;
    color: var(--text-color);
}

.markdown-content table tr:nth-child(2n) {
    background-color: rgba(122, 122, 231, 0.02);
}

.markdown-content table tr:hover {
    background-color: rgba(122, 122, 231, 0.05);
}

.markdown-content .correct-answer {
    color: #2ecc71;
    font-weight: 600;
    background-color: rgba(46, 204, 113, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.markdown-content .incorrect-answer {
    color: #e74c3c;
    text-decoration: line-through;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.markdown-content .emoji {
    font-size: 1.3em;
    vertical-align: middle;
}

/* Ultra-Simplified Assessment Styles */
.q {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.q::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
}

.q h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.o {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.o label {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(122, 122, 231, 0.02);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.o label:hover {
    background-color: rgba(122, 122, 231, 0.08);
    transform: translateX(5px);
}

.o label.selected {
    border-color: var(--primary-color);
    background-color: rgba(122, 122, 231, 0.05);
}

.o input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

#submit-assessment-btn {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#submit-assessment-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

#submit-assessment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.5s;
    border-radius: 50%;
}

#submit-assessment-btn:hover::before {
    transform: scale(2);
}

/* Audio playback styles */
#voice-style {
    background-color: var(--card-bg);
    border: 2px solid #e0e0ff;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
    cursor: pointer;
    color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--primary-color) 50%), 
                      linear-gradient(135deg, var(--primary-color) 50%, transparent 50%);
    background-position: calc(100% - 20px) center, calc(100% - 15px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

#voice-style:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 122, 231, 0.2);
}

.playback-active {
    animation: pulse 2s infinite;
    background: var(--primary-gradient) !important;
    color: white !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(122, 122, 231, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(122, 122, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(122, 122, 231, 0);
    }
}

.audio-speed-indicator {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary-gradient);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
    transition: all 0.3s;
}

.audio-speed-indicator.show {
    display: block;
    animation: fadeOut 2.5s forwards;
    animation-delay: 2s;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

.form-group:has(#voice-style) {
    position: relative;
}

.form-group:has(#voice-style) label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    position: relative;
    border-left: 5px solid;
    box-shadow: var(--shadow-sm);
    animation: alertFadeIn 0.5s ease-out;
}

@keyframes alertFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #155724;
    border-color: #2ecc71;
}

.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #721c24;
    border-color: #e74c3c;
}

.info {
    background-color: rgba(52, 152, 219, 0.1);
    color: #0c5460;
    border-color: #3498db;
}

/* Small button styles */
.small-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* Dynamic hover & focus effects */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 122, 231, 0.25);
}

/* Adding subtle animation for hover effects */
.feature-card, .language-option, .category-card, .assessment-item, .profile-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Custom scrollbar for all scrollable elements */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0ff;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f0f0ff;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Adding background patterns for visual interest */
.home-container {
    background-image: radial-gradient(circle at 10% 20%, rgba(122, 122, 231, 0.03) 0%, transparent 80%),
                     radial-gradient(circle at 90% 80%, rgba(126, 87, 194, 0.03) 0%, transparent 80%);
}

.assessment-container {
    background-image: linear-gradient(135deg, transparent 0%, rgba(122, 122, 231, 0.05) 50%, transparent 100%);
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .setup-form {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    .feature-card, .language-option {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        margin-top: 20px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .assessment-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-summary {
        flex-direction: column;
        gap: 30px;
    }
    
    .area-score {
        width: 120px;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-top: 15px;
    }
    
    .nav-links a {
        margin: 0;
    }
    
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .mic-container {
        width: 120px;
        height: 120px;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary-gradient: linear-gradient(135deg, #003EFF, #6600CC);
        --secondary-gradient: linear-gradient(135deg, #0030C0, #5500AA);
        --hover-gradient: linear-gradient(135deg, #0022A0, #440088);
        --primary-color: #003EFF;
        --secondary-color: #6600CC;
        --text-color: #000000;
        --text-light: #333333;
        --bg-color: #FFFFFF;
        --card-bg: #FFFFFF;
        --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    
    .btn, .cta-button, #submit-assessment-btn {
        border: 2px solid #000000;
    }
    
    .option, select, input, textarea {
        border: 2px solid #000000;
    }
    
    * {
        border-color: #000000;
    }
    
    .markdown-content a, a {
        text-decoration: underline;
        color: #0000EE;
    }
    
    .markdown-content a:visited, a:visited {
        color: #551A8B;
    }
}