/* ==========================================================================
   Pronunciation Checker CSS - Modern Premium Glassmorphism Design System
   ========================================================================== */

/* Import Outfit and Inter Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Tokens - Elegant Indigo/Violet Theme with Harmonious Accents */
    --bg-dark: #090b11;
    --bg-card: rgba(20, 24, 38, 0.65);
    --bg-card-hover: rgba(26, 32, 51, 0.85);
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    
    --success: #10b981; /* Emerald */
    --success-glow: rgba(16, 185, 129, 0.3);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --danger: #ef4444; /* Coral/Crimson */
    --danger-glow: rgba(239, 68, 68, 0.3);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --accent: #38bdf8; /* Sky Blue */
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Animated Neon Background Orbs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
body::before {
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation: floatOrb 12s infinite alternate ease-in-out;
}
body::after {
    background: var(--accent);
    bottom: -10%;
    right: -10%;
    animation: floatOrb 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   Header and Container
   ========================================================================== */
.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px var(--primary-glow));
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* ==========================================================================
   Glassmorphic Utility Elements
   ========================================================================== */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.1);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.glass-panel:hover::before {
    left: 150%;
}

/* ==========================================================================
   App Screens / Views Control
   ========================================================================== */
.app-screen {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.app-screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Buttons and Form Controls
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: white;
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-glow);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-gradient);
    box-shadow: 0 4px 14px 0 var(--success-glow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--success-glow);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.25rem;
}

.btn-action-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* CVC Preset Badges */
.presets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.preset-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.preset-badge:hover, .preset-badge.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--text-main);
}

/* ==========================================================================
   Screen 1: Setup Layout
   ========================================================================== */
.setup-box {
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   Screen 2: Practice Dashboard Layout
   ========================================================================== */
.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.student-info-bar h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.student-info-bar span {
    color: var(--primary);
}

/* Practice Grid */
.practice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.word-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.word-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.word-card.completed {
    border-color: rgba(16, 185, 129, 0.2);
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.word-spelling {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
}

.syllable-guide {
    display: flex;
    gap: 0.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.1rem;
}

.syllable-part {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.syllable-part.onset { border-bottom: 2px solid var(--accent); }
.syllable-part.nucleus { border-bottom: 2px solid var(--primary); }
.syllable-part.coda { border-bottom: 2px solid #f43f5e; }

/* Control Dashboard inside Word Card */
.word-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
}

.word-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.word-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.word-btn.play-btn {
    color: var(--accent);
}
.word-btn.play-btn:hover {
    background: rgba(56, 189, 248, 0.1);
}

.word-btn.record-btn {
    color: var(--primary);
    position: relative;
}
.word-btn.record-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.word-btn.record-btn.recording {
    background: var(--danger-gradient);
    color: white !important;
    animation: recordPulse 1.5s infinite alternate ease-in-out;
}

.word-btn.listen-btn {
    color: var(--success);
}
.word-btn.listen-btn:hover {
    background: rgba(16, 185, 129, 0.1);
}
.word-btn.listen-btn:disabled {
    color: rgba(255, 255, 255, 0.15);
    background: transparent;
    cursor: not-allowed;
}

@keyframes recordPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    100% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* Micro Audio Wave Animation in Card */
.wave-visualizer {
    display: none;
    align-items: center;
    gap: 3px;
    height: 20px;
    margin-left: 0.5rem;
    padding-right: 0.5rem;
}

.wave-visualizer.active {
    display: inline-flex;
}

.wave-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 3px;
    animation: waveBounce 0.8s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { height: 12px; animation-delay: -0.2s; }
.wave-bar:nth-child(3) { height: 18px; animation-delay: -0.4s; }
.wave-bar:nth-child(4) { height: 8px; animation-delay: -0.1s; }
.wave-bar:nth-child(5) { height: 14px; animation-delay: -0.3s; }

@keyframes waveBounce {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1.1); }
}

/* Dynamic scoring section */
.word-feedback-section {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.25rem;
    animation: fadeIn 0.4s ease;
}

.word-feedback-section.active {
    display: block;
}

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

.card-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.score-badge {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.score-badge span {
    color: var(--primary);
}

.status-label {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-label.pass {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.status-label.fail {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

/* Diagnostic Breakdown of Syllable Errors */
.phoneme-diagnostics {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.phoneme-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.phoneme-row.onset { border-left-color: var(--accent); }
.phoneme-row.nucleus { border-left-color: var(--primary); }
.phoneme-row.coda { border-left-color: #f43f5e; }

.phoneme-name {
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.phoneme-comparison {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ph-text {
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.ph-text.expected {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.ph-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.ph-text.heard {
    font-weight: 700;
}

.ph-text.heard.match {
    color: var(--success);
}

.ph-text.heard.mismatch {
    color: var(--danger);
}

.phoneme-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    font-style: italic;
    line-height: 1.3;
}

/* User Spoken Overlay */
.spoken-word-log {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spoken-word-log span {
    font-weight: 700;
    color: white;
}

/* ==========================================================================
   Screen 3: Report & Summary Dashboard
   ========================================================================== */
.summary-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Detailed Score Card (Target of capture) */
.report-card {
    background: linear-gradient(145deg, #121624 0%, #1a1f33 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Sparkles decorations in Report Card background */
.report-card::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    z-index: 1;
    position: relative;
}

.report-title-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.report-student-meta {
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.report-student-meta strong {
    color: white;
}

.report-student-meta span {
    color: var(--text-muted);
}

.report-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Circular Dashboard Gauge */
.report-gauge-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.gauge-circle {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.gauge-circle circle {
    fill: transparent;
    stroke-width: 8;
}

.gauge-circle .circle-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.gauge-circle .circle-progress {
    stroke: url(#gaugeGradient);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease-in-out;
}

.gauge-value {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.gauge-value span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.gauge-stats-info {
    flex: 1;
    min-width: 200px;
}

.gauge-status-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.gauge-status-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Custom Table Layout */
.report-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.report-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-table td {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
}

.report-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.report-table .word-td {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
}

.report-table .score-td {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.report-table .score-td.pass { color: var(--success); }
.report-table .score-td.fail { color: var(--danger); }

.report-table .feedback-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.feedback-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.feedback-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.feedback-bullet.onset { background: var(--accent); }
.feedback-bullet.nucleus { background: var(--primary); }
.feedback-bullet.coda { background: #f43f5e; }

.feedback-txt {
    color: var(--text-muted);
}

.feedback-txt strong {
    color: white;
}

/* Actions Section */
.summary-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255,255,255, 0.02);
    border: 1px solid rgba(255,255,255, 0.04);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.summary-actions h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-actions p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 500px;
    line-height: 1.45;
}

.action-buttons-flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Toast Notification Overlay */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(20, 24, 38, 0.9);
    border: 1px solid var(--primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-msg.success { border-color: var(--success); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3); }
.toast-msg.error { border-color: var(--danger); box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3); }

/* Playback button in Results Table */
.report-table .word-btn {
    margin: 0 auto;
    display: flex;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.report-table .word-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

/* Status Label for Pending/Not Attempted */
.status-label.pending {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Pending Row Styling */
.report-table tr.pending-row td {
    color: rgba(255, 255, 255, 0.35);
}
.report-table tr.pending-row .word-td {
    color: rgba(255, 255, 255, 0.5);
}

/* Overall Summary Footer Row */
.report-table tr.summary-row {
    background: rgba(99, 102, 241, 0.08) !important;
    border-top: 2px solid rgba(99, 102, 241, 0.3) !important;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3) !important;
}

.report-table tr.summary-row td {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    padding: 1.25rem 1rem;
}

.report-table tr.summary-row .overall-score-cell {
    font-size: 1.2rem;
    font-weight: 800;
}

.report-table tr.summary-row .overall-score-cell.pass {
    color: var(--success);
}

.report-table tr.summary-row .overall-score-cell.fail {
    color: var(--danger);
}

.report-table tr.summary-row .status-label {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 768px) {
    .glass-panel {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .report-card {
        padding: 1.5rem;
    }
    
    .report-gauge-section {
        justify-content: center;
        text-align: center;
    }
    
    .report-table th, .report-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .report-table .word-td {
        font-size: 1rem;
    }
}

/* Capture optimization styling class */
.html2canvas-container {
    background: #090b11 !important;
    width: 900px !important;
    box-sizing: border-box !important;
}

/* Custom Toggle Switch for Demo Mode */
.switch-container input:checked + .slider {
    background-color: var(--primary) !important;
}

.switch-container input:checked + .slider .slider-dot {
    transform: translateX(20px);
}
