/* ============================================ */
/* PAGES CSS
/* Page-specific styles from all CSS files
/* ============================================ */

/* ============================================ */
/* GRAMMAR LESSON PAGES
/* ============================================ */

.content-header {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.exercise-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.options {
    list-style: none;
    padding: 0;
}

.options li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.options li:hover {
    background-color: #f0f8ff;
}

.irregular-verb {
    color: #e74c3c;
    font-weight: 600;
}

.regular-verb {
    color: #27ae60;
    font-weight: 600;
}

/* ============================================ */
/* PRONUNCIATION PRACTICE (LUYEN PHAT AM)
/* ============================================ */

.main-content {
    padding: 2rem 3rem;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
    max-width: 1200px;
    margin: 0 auto;
}

.simple-exercise {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.paragraph-content {
    margin-bottom: 3rem;
}

.french-input {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    font-family: 'Georgia', serif;
    text-align: left;
    width: 100%;
    min-height: 300px;
    resize: none;
    outline: none;
    transition: border-color var(--transition-normal);
}

.french-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.french-input[readonly] {
    cursor: default;
    background-color: var(--gray-50);
}

.french-input.editable {
    cursor: text;
    background-color: white;
    border-color: var(--primary-color);
}

.french-input.editable:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.record-section {
    margin-top: 2rem;
}

.recording-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.record-btn, .play-btn {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    font-weight: var(--font-semibold);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.record-btn {
    background: var(--primary-color);
    color: white;
}

.record-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.record-btn.recording {
    background: #dc3545;
    animation: pulse 2s infinite;
}

.record-btn.recording:hover {
    background: #c82333;
}

.play-btn {
    background: #28a745;
    color: white;
}

.play-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.play-btn.playing {
    background: #ffc107;
    color: #212529;
}

.audio-level-container {
    margin: 2rem auto;
    max-width: 400px;
}

.audio-level-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.audio-level-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 10px;
}

.recording-timer {
    font-size: 1.2rem;
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

.success-message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #28a745;
    font-size: 1.2rem;
    font-weight: var(--font-semibold);
    margin: 2rem 0;
}

.success-message i {
    font-size: 1.5rem;
}

.assessment-results {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.assessment-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.audio-player-container {
    margin-bottom: 2rem;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.play-pause-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.play-pause-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.audio-progress {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.download-btn {
    background: var(--gray-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.download-btn:hover {
    background: var(--gray-700);
}

.assessment-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.transcript-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    position: relative;
}

.transcript-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-800);
    min-height: 200px;
    background-color: var(--gray-50);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    transition: all var(--transition-normal);
    font-family: 'Georgia', serif;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.transcript-text:not(:empty) {
    color: var(--gray-800);
}

.transcript-text:empty {
    color: var(--gray-500);
    font-style: italic;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transcript-text:not(:empty) {
    animation: transcriptPopulated 0.5s ease-in-out;
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

@keyframes transcriptPopulated {
    0% { 
        background-color: var(--primary-alpha-10);
        border-color: var(--primary-color);
        transform: scale(1.02);
    }
    100% { 
        background-color: white;
        border-color: var(--primary-color);
        transform: scale(1);
    }
}

.error-analysis {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.error-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error-category {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.error-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.error-count {
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: var(--font-bold);
}

.error-category:nth-child(1) .error-count {
    background: #dc3545;
}

.error-category:nth-child(2) .error-count {
    background: #fd7e14;
}

.error-category:nth-child(3) .error-count {
    background: #ffc107;
}

.error-category:nth-child(4) .error-count {
    background: #20c997;
}

.error-category:nth-child(5) .error-count {
    background: #6f42c1;
}

.error-category:nth-child(6) .error-count {
    background: #e83e8c;
}

.error-insertion {
    text-decoration: line-through;
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    padding: 2px 4px;
    border-radius: 3px;
    color: #856404;
}

.error-omission {
    background-color: rgba(253, 126, 20, 0.2);
    border: 1px solid rgba(253, 126, 20, 0.4);
    padding: 2px 4px;
    border-radius: 3px;
    color: #a0522d;
}

.error-mispronunciation {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    padding: 2px 4px;
    border-radius: 3px;
    color: #721c24;
}

.error-unexpected-break {
    background-color: rgba(32, 201, 151, 0.2);
    border: 1px solid rgba(32, 201, 151, 0.4);
    padding: 2px 4px;
    border-radius: 3px;
    color: #0f5132;
}

.error-missing-break {
    background-color: rgba(111, 66, 193, 0.2);
    border: 1px solid rgba(111, 66, 193, 0.4);
    border-radius: 3px;
    padding: 2px 4px;
    color: #4a1d96;
}

.error-monotone {
    background-color: rgba(232, 62, 140, 0.2);
    border: 1px solid rgba(232, 62, 140, 0.4);
    border-radius: 3px;
    padding: 2px 4px;
    color: #8b1a4b;
}

.error-type {
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-400);
    transition: 0.3s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.pronunciation-score {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-score {
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg 291.6deg, var(--gray-200) 291.6deg 360deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.score-number {
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    z-index: 1;
}

.score-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    z-index: 1;
}

.score-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-name {
    width: 120px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.score-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.score-value {
    width: 60px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: var(--font-semibold);
}

/* ============================================ */
/* PROFILE PAGE
/* ============================================ */

.profile-container {
    min-height: 100vh;
    background: var(--primary-color);
    padding: 2rem 0;
}

.profile-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    margin: 0 2rem 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px var(--primary-alpha-30);
    position: relative;
    overflow: hidden;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.profile-email {
    font-size: 1.2rem;
    color: #718096;
    margin: 0 0 1.5rem 0;
}

.level-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.level-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.level-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.level-badge-large {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--primary-alpha-30);
    position: relative;
    overflow: hidden;
}

.level-badge-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.level-text-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.level-description h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
}

.level-description p {
    margin: 0;
    color: #718096;
    font-size: 1rem;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.account-icon {
    width: 50px;
    height: 50px;
    background: #db4437;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(219, 68, 55, 0.3);
}

.account-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

.account-text p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.current-level-display, .current-level-edit {
    transition: all 0.3s ease;
}

.current-level-edit {
    animation: slideIn 0.3s ease;
}

/* ============================================ */
/* MOCK TEST DETAIL & RESULT PAGES
/* ============================================ */

.exam-header,
.result-header {
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.exam-header::before,
.result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.exam-header h1,
.result-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.exam-header h4,
.result-header h4 {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.submit-section {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-top: 0.5rem;
}

.button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.score-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.score-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.score-card .score-display {
    justify-content: center;
    text-align: center;
}

.total-score-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 1s ease;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#result-summary-section {
    animation: fadeInUp 0.8s ease-out;
}

#view-detail-result-btn[data-result-url="#"] {
    pointer-events: none;
    opacity: 0.6;
}

/* AI Evaluation Cards */
.ai-evaluation-card {
    background: var(--primary-color);
    border-radius: 15px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.ai-evaluation-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.ai-evaluation-card .card-body {
    background: white;
    color: #333;
    padding: 1.5rem;
}

.score-breakdown {
    background: var(--primary-alpha-10);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.score-breakdown ul {
    margin-bottom: 0;
}

.score-breakdown li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--primary-alpha-20);
}

.score-breakdown li:last-child {
    border-bottom: none;
}

.improved-paragraph-card {
    border: 2px solid #28a745;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 1rem;
}

.improved-paragraph-card .card-body {
    padding: 1.5rem;
}

.improved-paragraph-card .card-header {
    background: #28a745;
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.grammar-mistakes-card {
    border: 2px solid #dc3545;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 1rem;
    background: white;
}

.grammar-mistakes-card .card-header {
    background: #dc3545;
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.grammar-mistakes-card .card-body {
    padding: 1.5rem;
}

.grammar-mistakes-card .table {
    margin-bottom: 0;
}

.grammar-mistakes-card .table th {
    background: rgba(220, 53, 69, 0.1);
    border-bottom: 2px solid #dc3545;
    font-weight: 600;
    color: #495057;
}

.grammar-mistakes-card .table td {
    vertical-align: middle;
    padding: 0.75rem;
}

.grammar-mistakes-card .table tbody tr:hover {
    background: rgba(220, 53, 69, 0.05);
}

.grammar-mistakes-card .text-danger {
    font-family: 'Courier New', monospace;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.grammar-mistakes-card .text-success {
    font-family: 'Courier New', monospace;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.answer-options {
    margin-top: 1rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.answer-option:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-label {
    font-weight: bold;
    color: #495057;
    margin-right: 0.75rem;
    min-width: 25px;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    color: #2c3e50;
}

.user-selection {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-left: 0.5rem;
}

.answer-option.correct-answer {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.answer-option.correct-answer .option-label {
    color: #28a745;
}

.answer-option.correct-answer .option-text {
    color: #155724;
    font-weight: 600;
}

.answer-option.user-correct {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.2);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.answer-option.user-correct .option-label {
    color: #28a745;
}

.answer-option.user-correct .option-text {
    color: #155724;
    font-weight: 700;
}

.answer-option.user-wrong {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.answer-option.user-wrong .option-label {
    color: #dc3545;
}

.answer-option.user-wrong .option-text {
    color: #721c24;
}

.answer-option.user-wrong .user-selection {
    color: #dc3545;
    font-weight: 600;
}

.answer-option.user-wrong.correct-answer {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.15);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.answer-option.user-wrong.correct-answer .option-label {
    color: #28a745;
}

.answer-option.user-wrong.correct-answer .option-text {
    color: #155724;
    font-weight: 600;
}

/* ============================================ */
/* RESPONSIVE DESIGN FOR PAGES
/* ============================================ */

@media (max-width: 991.98px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .simple-exercise {
        padding: 2rem;
    }
    
    .french-input {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .recording-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .record-btn, .play-btn {
        width: 100%;
        justify-content: center;
    }
    
    .assessment-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .score-display {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .audio-player {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .audio-progress {
        width: 100%;
    }
    
    .error-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .error-category {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 1rem 0;
    }
    
    .profile-header {
        margin: 0 1rem 2rem 1rem;
        padding: 2rem;
    }
    
    .profile-avatar {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .level-display {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .level-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .exam-header h1,
    .result-header h1 {
        font-size: 2rem;
    }
    
    .answer-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .answer-option .option-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .profile-header {
        margin: 0 0.5rem 1.5rem 0.5rem;
        padding: 1.5rem;
    }
    
    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .level-badge-large {
        width: 80px;
        height: 80px;
    }
    
    .level-text-large {
        font-size: 2rem;
    }
}

