/* ===================================================================
 * IELTS AI WRITER - FRONTEND VIEWS STYLESHEET
 * Version: 9.3.0
 * =================================================================== */

/* -------------------------------------------------------------------
 * 1. LOGIN OVERLAY & BLUR EFEKTLERİ (Tüm Görünümler İçin Ortak)
 * ------------------------------------------------------------------- */
.iaw-blur-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    isolation: isolate;
    /* Yeni z-index context oluşturur */
}

.iaw-content-blur {
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    margin-top: -20px;
    z-index: 1;
    position: relative;
}

.iaw-login-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.iaw-lock-icon {
    width: 64px;
    height: 64px;
    background-color: #e0e7ff;
    color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.iaw-lock-icon svg {
    width: 32px;
    height: 32px;
}

.iaw-login-title {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.iaw-login-desc {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.iaw-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4f46e5;
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.iaw-login-btn:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

.iaw-login-btn svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}


/* -------------------------------------------------------------------
 * 2. RAPOR GÖRÜNÜMLERİ (Writing & Speaking Reports)
 * ------------------------------------------------------------------- */
.iaw-report-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.iaw-report-header {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.iaw-overall-score-display {
    line-height: 1.2;
}

.iaw-overall-score-display .score {
    font-size: 3.5em;
    font-weight: 800;
    color: #1d2327;
}

.iaw-overall-score-display .score span {
    font-weight: 300;
    color: #6b7280;
}

.iaw-overall-score-display .label {
    font-size: 1em;
    color: #6b7280;
    margin-top: 4px;
}

.iaw-criteria-breakdown h4 {
    font-size: 1.5em;
    color: #111827;
    margin-bottom: 20px;
    border-bottom: none;
}

.iaw-criterion-row {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: default;
}

.iaw-criterion-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.iaw-criterion-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iaw-criterion-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Kriter İkon Renkleri */
.iaw-criterion-icon.task_achievement {
    background-color: #0ea5e9;
}

.iaw-criterion-icon.coherence_cohesion,
.iaw-criterion-icon.coherence {
    background-color: #3b82f6;
}

.iaw-criterion-icon.lexical_resource {
    background-color: #f97316;
}

.iaw-criterion-icon.grammatical_range {
    background-color: #ef4444;
}

.iaw-criterion-info {
    flex-grow: 1;
}

.iaw-criterion-info .title {
    font-weight: 600;
    color: #111827;
}

.iaw-criterion-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.iaw-criterion-progress .score {
    font-weight: 700;
    font-size: 1.1em;
    color: #1d2327;
}

.iaw-progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.iaw-progress-bar-inner {
    height: 100%;
    border-radius: 4px;
    transition: width .5s ease-in-out;
}

.iaw-criterion-details {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    color: #4b5563;
    line-height: 1.6;
}

/* Feedback Kartları */
.iaw-feedback-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.iaw-feedback-card h4 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    font-size: 1.2em;
    color: #111827;
    margin-bottom: 15px;
}

.iaw-feedback-card h5 {
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.iaw-feedback-card ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.iaw-feedback-card ul li {
    margin-bottom: 8px;
    color: #4b5563;
}

.iaw-feedback-card .strength li::marker {
    color: #16a34a;
}

.iaw-feedback-card .weakness li::marker {
    color: #dc2626;
}

.iaw-feedback-card ul.weakness li {
    margin-bottom: 15px;
    list-style-type: none;
    padding-left: 5px;
}

.weakness-point {
    display: block;
    font-weight: 500;
    color: #4b5563;
    padding-bottom: 5px;
}

.example-fix {
    display: block;
    font-size: .9em;
    color: #166534;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 3px solid #22c55e;
    padding: 8px 12px;
    margin-top: 5px;
    border-radius: 4px;
}

.example-fix strong {
    color: #15803d;
}

.written-text {
    border: 1px solid #e5e7eb;
    padding: 15px;
    background: #f9fafb;
    white-space: pre-wrap;
    line-height: 1.6;
    border-radius: 6px;
}

.overall-feedback-summary p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.original-text-quote {
    display: block;
    padding: 10px 15px;
    background-color: #f9fafb;
    border-left: 3px solid #d1d5db;
    color: #6b7280;
    font-style: italic;
    border-radius: 4px;
    margin-bottom: 8px;
}


/* -------------------------------------------------------------------
 * 3. DASHBOARD & KARTLAR (User Dashboard)
 * ------------------------------------------------------------------- */
.iaw-dash-wrapper {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header & Badges */
.iaw-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.iaw-welcome-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.iaw-role-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin {
    background-color: #1f2937;
    color: #fff;
}

.badge-premium {
    background-color: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.badge-standard {
    background-color: #e5e7eb;
    color: #374151;
}

/* Status Barları */
.iaw-status-container {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.iaw-status-row {
    display: flex;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #dbeafe;
    background: #fff;
}

.iaw-status-row:nth-child(odd) {
    background: #f8fafc;
}

.iaw-status-row:last-child {
    border-bottom: none;
}

.iaw-row-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: #fff;
}

.iaw-row-icon.blue {
    background-color: #2563eb;
}

.iaw-row-icon.purple {
    background-color: #7c3aed;
}

.iaw-row-info {
    flex-grow: 0;
    min-width: 200px;
    margin-right: 20px;
}

.iaw-row-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 5px 0;
}

.iaw-row-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.iaw-row-progress {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.iaw-progress-track {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.iaw-progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.fill-blue {
    background-color: #2563eb;
}

.fill-purple {
    background-color: #7c3aed;
}

.fill-warning {
    background-color: #f59e0b;
}

.fill-danger {
    background-color: #ef4444;
}

.iaw-premium-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
}

.iaw-premium-btn:hover {
    filter: brightness(1.1);
    color: #fff;
}

.iaw-premium-btn svg {
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 2px;
}

/* Action Cards Grid */
.iaw-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.iaw-action-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.iaw-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.iaw-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.iaw-card-icon.writing {
    background: #eff6ff;
    color: #2563eb;
}

.iaw-card-icon.speaking {
    background: #f5f3ff;
    color: #7c3aed;
}

.iaw-card-icon.reading {
    background: #ecfdf5;
    color: #10b981;
}

.iaw-card-icon.task {
    background: #fff7ed;
    color: #ea580c;
}

.iaw-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.iaw-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.iaw-start-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    background: #1e293b;
    color: #fff;
    transition: background 0.2s;
}

.iaw-start-btn:hover {
    background: #0f172a;
    color: #fff;
}


/* -------------------------------------------------------------------
 * 4. TABLO VE RESPONSIVE DÜZENLEMELERİ (GÜNCELLENDİ)
 * ------------------------------------------------------------------- */

/* Tabloyu saran kapsayıcı: Taşma olursa kaydırma çubuğu çıkarır */
.iaw-table-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
    /* Yatay kaydırma */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.iaw-activity-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Tablonun aşırı büzüşmesini engeller */
}

.iaw-activity-table th {
    text-align: left;
    padding: 15px 20px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.iaw-activity-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
    vertical-align: middle;
}

/* Tarih Sütunu: Kırılmasın */
.iaw-activity-table td:first-child {
    white-space: nowrap;
    width: 1%;
}

/* Açıklama Sütunu: Çok uzunsa '...' koysun */
.iaw-activity-table td:nth-child(3) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Puan Sütunu: Ortala */
.iaw-activity-table td:nth-child(5),
.iaw-activity-table th:nth-child(5) {
    text-align: center;
}

/* Buton Sütunu (Son Sütun): Asla kırılmasın ve sağa yaslansın */
.iaw-activity-table td:last-child {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.iaw-view-btn {
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.iaw-task-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.iaw-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.iaw-score-badge {
    background: #f1f5f9;
    color: #334155;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
}

/* --- MOBİL MEDYA SORGULARI --- */
@media (max-width: 768px) {
    .iaw-status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .iaw-row-info {
        width: 100%;
        margin-right: 0;
    }

    .iaw-row-progress {
        width: 100%;
    }

    /* Mobilde Açıklama Sütununu Gizle */
    .iaw-activity-table th:nth-child(3),
    .iaw-activity-table td:nth-child(3) {
        display: none;
    }

    .iaw-activity-table td,
    .iaw-activity-table th {
        padding: 10px;
        /* Paddingi azalt */
    }
}

/* -------------------------------------------------------------------
 * 5. KONU SEÇİM TOOLBAR DÜZENLEMELERİ (Responsive)
 * ------------------------------------------------------------------- */
.iaw-topic-toolbar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iaw-main-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    /* İzin ver, ancak mobilde media query ile kontrol edeceğiz */
    gap: 10px;
}

.iaw-task-toggles {
    display: flex;
    gap: 5px;
}

.iaw-toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.iaw-search-wrapper {
    position: relative;
    margin: 0;
}

.iaw-search-wrapper input {
    padding: 8px 30px 8px 10px;
    font-size: 13px;
    width: 180px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s;
}

.iaw-search-wrapper input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.iaw-search-wrapper .search-icon {
    position: absolute;
    right: 10px;
    left: auto;
    /* Ensure it doesn't stick to the left if theme overrides */
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
}

.iaw-toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

.iaw-filter-btn.toggle-attempted {
    color: #ef4444;
    border: 1px solid #fee2e2;
    background: #fff;
    white-space: nowrap;
}

.iaw-subfilters-row {
    display: flex;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    width: 100%;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.iaw-subfilters-row .iaw-form-select {
    flex: 1;
    min-width: 0;
}

/* MEDIA QUERIES FOR TOOLBAR */
@media (max-width: 640px) {
    .iaw-main-filters-row {
        flex-direction: column;
        align-items: stretch;
        /* Full width items */
        gap: 12px;
    }

    .iaw-task-toggles {
        width: 100%;
        justify-content: center;
    }

    .iaw-task-toggles .iaw-filter-btn {
        flex: 1;
        /* Equal width buttons */
        justify-content: center;
    }

    .iaw-toolbar-actions {
        width: 100%;
        flex-direction: column;
        /* Stack search and toggle button */
        gap: 10px;
    }

    .iaw-search-wrapper {
        width: 100%;
    }

    .iaw-search-wrapper input {
        width: 100%;
        /* Full width search */
    }

    .iaw-toolbar-divider {
        display: none;
        /* Hide divider on mobile */
    }

    .iaw-filter-btn.toggle-attempted {
        width: 100%;
        justify-content: center;
    }

    .iaw-subfilters-row {
        flex-direction: column;
    }

    .iaw-subfilters-row .iaw-form-select {
        width: 100%;
    }

    #iaw-add-custom-topic-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
    }
}

/* -------------------------------------------------------------------
 * 6. SUBMISSION DETAIL VIEW LAYOUT FIX
 * ------------------------------------------------------------------- */

/* Sidebar Overlap Fix (Desktop) - Matches .iaw-dashboard logic */
@media (min-width: 769px) {

    .iaw-submission-detail,
    .iaw-dashboard {
        margin-left: 310px;
        margin-right: 60px;
        width: auto;
    }
}

/* Mobile Responsive Reset */
@media (max-width: 768px) {

    .iaw-submission-detail,
    .iaw-dashboard {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
}

/* -------------------------------------------------------------------
 * RECORDING BUTTON & VISUALIZER
 * ------------------------------------------------------------------- */
.iaw-record-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
}

.iaw-mic-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.iaw-record-button {
    position: relative;
    z-index: 10;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #3b82f6;
    /* Blue-500 */
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    outline: none;
}

.iaw-record-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #9ca3af;
    /* Gray-400 */
    box-shadow: none;
}

.iaw-record-button svg {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.iaw-record-button span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Active State (Recording) */
.iaw-record-button.recording {
    background-color: #ef4444;
    /* Red */
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Shared Animated Gradient Header */
.gradient-text-animate {
    background: linear-gradient(to right, #007bff 0%, #00d4ff 25%, #9b59b6 50%, #00d4ff 75%, #007bff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    display: inline-block;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- FULLSCREEN TOGGLE (REFINED) --- */
.iaw-modern-dashboard {
    position: relative;
    /* Ensure relative context for absolute children */
}

.iaw-fs-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    width: 44px;
    /* Slightly larger touch target */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.iaw-fs-toggle:hover {
    background: #ffffff;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #fff;
}

.iaw-fs-toggle:active {
    transform: translateY(0);
}

.iaw-fs-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
}

/* Fullscreen Mode Styles */
#iaw-speaking-app:fullscreen {
    background-color: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Changed from center to allow scrolling from top */
}

/* Vendor Prefixes */
#iaw-speaking-app:-webkit-full-screen {
    background-color: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#iaw-speaking-app:-moz-full-screen {
    background-color: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#iaw-speaking-app:-ms-fullscreen {
    background-color: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Adjust child containers in FS */
#iaw-speaking-app:fullscreen .iaw-modern-dashboard,
#iaw-speaking-app:fullscreen #iaw-speaking-intro-screen,
#iaw-speaking-app:fullscreen #iaw-speaking-pre-test-screen,
#iaw-speaking-app:fullscreen #iaw-speaking-test-screen,
#iaw-speaking-app:-webkit-full-screen .iaw-modern-dashboard,
#iaw-speaking-app:-webkit-full-screen #iaw-speaking-intro-screen,
#iaw-speaking-app:-webkit-full-screen #iaw-speaking-pre-test-screen,
#iaw-speaking-app:-webkit-full-screen #iaw-speaking-test-screen {
    max-width: 1000px;
    width: 100%;
    margin: 40px auto;
    position: relative;
    padding-bottom: 40px;
}