:root {
    --primary-color: #1976d2;
    --primary-hover: #1565c0;
    --primary-dark: #0d47a1;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f2f5;
    --border-color: #e5e7eb;
    --border-light: #f0f2f5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

* {
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-primary);
}

/* ============================================
   TYPOGRAPHY STANDARDIZATION - GLOBAL RULES
   ============================================
   All text elements use the global font-family and inherit font-size.
   Use CSS variables for consistency:
   - --font-size-base: 1rem (16px)
   - --font-size-sm: 0.875rem (14px)
   - --font-size-lg: 1.125rem (18px)
   - --font-size-xl: 1.5rem (24px)
   - --font-size-2xl: 1.875rem (30px)
   
   Heading hierarchy (use em units to scale relative to parent font-size):
   h1: 2em relative to parent
   h2: 1.75em relative to parent
   h3: 1.5em relative to parent
   h4: 1.25em relative to parent
   h5: 1.125em relative to parent
   h6: 1em (same as parent)
   
   IMPORTANT: Avoid inline font-family or font-size styles in HTML/JS.
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
}

h1 {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: 1.125em;
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.5;
}

p, li, span, a, button, input, textarea, select {
    font-family: var(--font-family);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;    
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal {
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 3.5rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: left;
    color: var(--text-primary);
    animation: fadeInScale 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal h2 {
    color: var(--primary-color);
    font-family: var(--font-family);
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.75rem 0;
}

.modal ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style: none;
    counter-reset: list-item;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.modal ol li {
    counter-increment: list-item;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal ol li::before {
    content: counter(list-item) '.';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.modal .primary-btn {
    margin-top: 2rem;
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-md);
}

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

.modal .primary-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   WELCOME CAROUSEL - Modern Apple/Stripe Design
   ============================================ */

.carousel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: overlayFadeIn 0.3s ease-out;
    padding: 2rem;
    overflow: hidden;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

.carousel-container {
    max-width: 720px;
    width: 100%;
    height: auto;
    max-height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 4px solid #FACC15;
}

.carousel-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.carousel-slide.active {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
    max-height: calc(85vh - 100px);
    flex-direction: column;
    opacity: 1;
    animation: slideInFade 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-body {
    line-height: 1.4;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-family);
    padding: 1.25rem;
    padding-right: 1rem;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* WebKit scrollbar styling (Chrome, Safari, Edge, Opera) */
.slide-body::-webkit-scrollbar {
    width: 10px;
}

.slide-body::-webkit-scrollbar-button {
    display: none;
}

.slide-body::-webkit-scrollbar-track {
    background: transparent;
}

.slide-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FACC15, #4f46e5);
    border-radius: 20px;
}

.slide-body h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    cursor: default;
}

.slide-body h1::before {
    content: '';
}

.bullet-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bullet-list li {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-size: 0.9rem;
    position: relative;
    cursor: default;
}

.bullet-list li::before {
    content: '•';
    position: absolute;
    left: -0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.slide-body > p {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.15rem 0;
    font-weight: 400;
    cursor: default;
}

.practice-note {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 1rem;
    margin-bottom: 0;
    font-weight: 400;
    cursor: default;
}

.practice-note strong {
    font-weight: 700;
    color: var(--text-primary);
}

.sub-bullet {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sub-bullet li {
    margin: 0;
    padding-left: 1rem;
    position: relative;
    color: var(--text-secondary);
    cursor: default;
}

.sub-bullet li::before {
    content: '◦';
    position: absolute;
    left: -0.5rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.numbered-list {
    margin: 0;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.numbered-list li {
    margin: 0;
    line-height: 1.4;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: default;
}

.numbered-list li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.numbered-list strong {
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== WARNING BOX ===== */
.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-primary);
    cursor: default;
}

.warning-box::before {
    content: '⚠️';
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.warning-text {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    word-spacing: normal;
    white-space: normal;
    flex: 1;
}

.warning-box strong {
    font-weight: 700;
    color: #d39e00;
}

/* ===== SLIDE 1 INTRO BOX ===== */
.slide1-intro-box {
    background: #dbeafe;
    border-left: 6px solid #1976d2;
    border-radius: 8px;
    padding: 1.75rem;
    margin: 1rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text-primary);
    font-weight: 500;
    cursor: default;
}

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    user-select: none;
}

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

.download-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Navigation */
.carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem 3rem;
    border-top: none;
    flex-shrink: 0;
    background: var(--bg-primary);
    min-height: 80px;
}

.nav-btn {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-family);
    user-select: none;
    outline: none;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
}

.nav-btn:active {
    transform: scale(0.97);
}

.nav-finish-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-finish-group .prev-btn {
    background: transparent;
    color: var(--primary-color);
}

.nav-finish-group .prev-btn:hover {
    background: rgba(25, 118, 210, 0.1);
}

/* ===== PRIMARY BUTTON STYLING ===== */
.finish-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.85rem 2rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 140px;
    border: none;
    border-radius: 50px;
}

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

.finish-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.finish-btn:disabled {
    opacity: 0.50;
    cursor: not-allowed;
    transform: none;
    pointer-events: auto;
    background: var(--primary-color);
}

.finish-btn:disabled:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: none;
}

/* ===== SECONDARY BUTTON STYLING ===== */
.skip-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.skip-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.skip-btn:active {
    background: rgba(0, 0, 0, 0.08);
}

.skip-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-arrows {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex: 1;
}

/* ===== PREV/NEXT BUTTON STYLING ===== */
.prev-btn, .next-btn {
    border-radius: 50px;
    font-weight: 600;
    flex: 0 1 auto;
    padding: 0.85rem 2rem;
    min-height: 44px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Previous button - secondary ghost style */
.prev-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.prev-btn:hover:not(:disabled) {
    background: rgba(25, 118, 210, 0.08);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.prev-btn:active:not(:disabled) {
    background: rgba(25, 118, 210, 0.12);
    transform: scale(0.97);
}

/* Next button - primary style */
.next-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

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

.next-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.prev-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border-color);
    background: transparent;
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 850px) {
    .carousel-overlay {
        padding: 1rem;
    }

    .carousel-container {
        max-width: 100%;
        max-height: 90vh;
    }

    .slide-body {
        padding: 2.5rem;
        gap: 2.5rem;
    }

    .slide-body h1 {
        font-size: 1.75rem;
        margin: 0 0 0.5rem 0;
    }

    .carousel-nav {
        padding: 1.5rem 2.5rem;
        gap: 0.75rem;
    }
}

@media (max-width: 720px) {
    html {
        font-size: 15px;
    }

    .carousel-overlay {
        padding: 0.75rem;
    }

    .carousel-container {
        max-height: 92vh;
        border-radius: 20px;
    }

    .slide-body {
        padding: 2rem;
        gap: 2rem;
    }

    .slide-body h1 {
        font-size: 1.5rem;
        margin: 0 0 0.25rem 0;
    }

    .slide-body h1::before {
        font-size: 1.5rem;
        margin-right: 0.4rem;
    }

    .bullet-list {
        gap: 1rem;
    }

    .bullet-list li {
        font-size: 0.9rem;
    }

    .numbered-list {
        gap: 1rem;
    }

    .numbered-list li {
        font-size: 0.9rem;
    }

    .carousel-nav {
        padding: 1.25rem 2rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .skip-btn {
        flex: 0 1 100%;
        order: 3;
    }

    .nav-arrows {
        order: 2;
        width: 100%;
        gap: 0.5rem;
    }

    .prev-btn, .next-btn {
        flex: 1;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .finish-btn {
        flex: 0 1 100%;
        order: 1;
        width: 100%;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    .carousel-overlay {
        padding: 0.5rem;
    }

    .slide-body {
        padding: 1.75rem;
        gap: 1.75rem;
    }

    .slide-body h1 {
        font-size: 1.375rem;
        margin: 0 0 0.25rem 0;
    }

    .bullet-list li, .numbered-list li {
        font-size: 0.9rem;
    }

    .bullet-list, .numbered-list {
        gap: 0.875rem;
    }

    .carousel-nav {
        padding: 1.25rem 1.75rem;
        gap: 0.625rem;
    }
}

/* Basic styles for the Source Monitoring App - CONSOLIDATED TYPOGRAPHY */
/* All font-family and base font-size are now globally defined in :root and body */
/* Remove any locally-defined font-family or font-size from individual rules to ensure consistency */

.header {
    background-color: #e2f0f2;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    gap: 2rem;
    min-height: 120px;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    flex: 1;
}

.header-logo-large {
    height: 100px !important;
    width: auto !important;
    max-width: 350px !important;
    object-fit: contain !important;
    opacity: 0.95 !important;
    transition: opacity 0.3s ease;
    display: block !important;
}

.header-logo-large:hover {
    opacity: 1 !important;
}

@media (max-width: 1024px) {
    .header {
        flex-wrap: wrap;
        min-height: auto;
        gap: 1.5rem;
    }
    
    .header-logos {
        flex: 1 1 100%;
        justify-content: center;
    }
    
    .header-logo-large {
        height: 80px !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        gap: 1rem;
    }
    
    .header-logos {
        gap: 1.5rem;
    }
    
    .header-logo-large {
        height: 70px !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem;
    }
    
    .header-logos {
        gap: 1rem;
        justify-content: space-between;
    }
    
    .header-logo-large {
        height: 60px !important;
        max-width: 45% !important;
    }
}

main {
    padding: 2.5rem 1rem 5rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    display: none !important;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-item {
    background: #e1e1e1;
    color: #1976d2;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.lang-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}


.card {
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

#introduction h2 {
    color: var(--primary-color);
    font-family: var(--font-family);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

#introduction > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

#introduction ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style: none;
    counter-reset: list-item;
    color: var(--text-primary);
}

#introduction ol li {
    counter-increment: list-item;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

#introduction ol li::before {
    content: counter(list-item) '.';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}


.primary-btn {
    background-color: #1976d2;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
    background-color: #1565c0;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.16);
}

#download-task1-pdf-btn {
    transition: all 0.3s ease;
}

#download-task1-pdf-btn:hover {
    opacity: 1 !important;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4) !important;
    transform: translateY(-2px);
}

#download-task2-pdf-btn {
    transition: all 0.3s ease;
}

#download-task2-pdf-btn:hover {
    opacity: 1 !important;
    box-shadow: 0 6px 20px rgba(81, 45, 168, 0.4) !important;
    transform: translateY(-2px);
}

.subtitle {
    color: #1976d2;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer {
    background: #e3f2fd;
    color: #1976d2;
    text-align: center;
    padding: 1.2rem;
    font-size: 1rem;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 8px rgba(25, 118, 210, 0.08);
    z-index: 100;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-logos {
        gap: 1rem;
    }
    
    .footer-logo {
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem;
    }
    
    .footer-content {
        gap: 0.75rem;
    }
    
    .footer-logos {
        gap: 0.75rem;
    }
    
    .footer-logo {
        height: 50px !important;
    }
    
    .footer-content span {
        font-size: 0.875rem;
    }
}

#audio-player {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    background: #f7fbff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
    padding: 1.5rem;
    border: 1px solid #e3f2fd;
    min-width: 320px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#task2-audio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    background: #f7fbff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
    padding: 1.5rem;
    border: 1px solid #e3f2fd;
    min-width: 320px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#audio-player button.primary-btn,
#task2-audio-player button.primary-btn {
    background-color: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
    transition: background 0.2s;
    padding: 0.4rem 1.2rem;
}

#audio-player button.primary-btn:hover,
#task2-audio-player button.primary-btn:hover {
    background-color: #1565c0;
}

#audio-player #audio-name,
#task2-audio-player #task2-audio-name {
    font-weight: 600;
    color: #1976d2;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

#audio-player #volume-slider {
    accent-color: #1976d2;
}

.audio-control-container {
    width: 48px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wave-bar {
    display: inline-block;
    width: 5px;
    height: 18px;
    margin: 0 1px;
    background: #1976d2;
    border-radius: 2px;
    animation: waveAnim 0.2s infinite ease-in-out;
}
.wave-bar:nth-child(2) {
    animation-delay: 0.2s;
}
.wave-bar:nth-child(3) {
    animation-delay: 0.4s;
}
.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}
@keyframes waveAnim {
    0%, 100% { height: 8px; }
    50% { height: 18px; }
}

.whatsapp-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
    margin-right: 0.5rem;
    width: 48px;
    justify-content: center;
}
.whatsapp-wave .wave-bar {
    display: inline-block;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #1976d2 0%, #1565c0 100%);
    margin: 0 1px;
    animation: whatsappWaveAnim 0.8s infinite ease-in-out;
    box-shadow: 0 1px 3px rgba(25, 118, 210, 0.3);
}
.whatsapp-wave .wave-bar:nth-child(1) { 
    height: 6px; 
    animation-delay: 0s; 
}
.whatsapp-wave .wave-bar:nth-child(2) { 
    height: 12px; 
    animation-delay: 0.05s; 
}
.whatsapp-wave .wave-bar:nth-child(3) { 
    height: 20px; 
    animation-delay: 0.1s; 
}
.whatsapp-wave .wave-bar:nth-child(4) { 
    height: 12px; 
    animation-delay: 0.15s; 
}
.whatsapp-wave .wave-bar:nth-child(5) { 
    height: 6px; 
    animation-delay: 0.2s; 
}
@keyframes whatsappWaveAnim {
    0%, 100% { 
        transform: scaleY(0.4);
        opacity: 0.6;
    }
    25% {
        transform: scaleY(0.8);
        opacity: 0.8;
    }
    50% { 
        transform: scaleY(1.4);
        opacity: 1;
    }
    75% {
        transform: scaleY(0.8);
        opacity: 0.8;
    }
}
.play-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1976d2;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
    transition: background 0.2s;
}
.play-icon-btn:hover {
    background: #1565c0;
}
.play-triangle {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transform: rotate(0deg);
    margin-left: 2px;
}

/* Enhanced spacing for better layout */
.primary-btn {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#continue-btn,
#complete-task1-btn,
#continue-task2-btn,
#complete-task2-btn {
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: auto;
}

#voice-instruction {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    clear: both;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1976d2 !important;
    background: white !important;
    border: 1px solid #b3d9ff !important;
    border-radius: 8px !important;
    text-align: center !important;
}

#task2-instruction {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    clear: both;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1976d2 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    text-align: center !important;
}

#task2-audio-name {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#example-indicator,
#task2-example-indicator {
    margin-bottom: 2rem;
    clear: both;
}

#voice-progress,
#task2-progress {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    clear: both;
}

#voice-filename {
    margin-bottom: 1.5rem;
    clear: both;
}

#response-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: transparent;
    border-radius: 8px;
    clear: both;
}

#response-label {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-shadow: none;
}

#response-input {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.6rem 0.3rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

#response-input::placeholder {
    color: #999;
    font-weight: 400;
}

#response-input:focus {
    outline: none;
    border-bottom-color: #999;
}

/* Ensure proper flex containers */
.audio-control-container {
    width: 48px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Recognition interface styling */
#recognition-interface {
    width: 100%;
    margin-top: 2rem;
}

#recognition-interface > p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

#recognition-progress {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #1976d2;
    font-weight: 500;
    text-align: center;
}

#current-word {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f7fbff;
    border-radius: 12px;
    color: #1976d2;
    border: 2px solid #e3f2fd;
    word-break: break-word;
}

#recognition-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
}

.recognition-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.recognition-btn:hover:not(:disabled) {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.recognition-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#complete-recognition-btn {
    margin-top: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Task RM Generation Checkpoint Styles */
#task1-checkpoint {
    text-align: center;
}

#task1-checkpoint h2 {
    color: #1976d2;
    margin-bottom: 1.5rem;
}

#checkpoint-message {
    background: #e3f2fd !important;
    border-left: 4px solid #1976d2 !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
}

#checkpoint-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1565c0;
    margin: 0;
}

#review-words-btn {
    background: #1976d2 !important;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#review-words-btn:hover {
    background: #1565c0 !important;
}

#skip-review-btn {
    background: #9c27b0 !important;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#skip-review-btn:hover {
    background: #7b1fa2 !important;
}

/* Task RM Review Words Page Styles */
#task1-review-words {
    text-align: left;
}

#task1-review-words h2 {
    color: #1976d2;
    margin-bottom: 0.5rem;
}

#task1-review-words > p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

#words-review-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    background: #f9f9f9;
}

.word-input {
    padding: 0.6rem !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    transition: border-color 0.2s;
}

.word-input:focus {
    outline: none;
    border-color: #1976d2 !important;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

#proceed-to-recognition-btn {
    background: #4caf50 !important;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

#proceed-to-recognition-btn:hover {
    background: #45a049 !important;
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Tablet and Small Devices (600px - 768px) */
@media (max-width: 768px) {
    main {
        padding: 1.5rem 0.75rem 5rem 0.75rem;
        max-width: 100%;
    }

    .card {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
    }

    .header {
        padding: 1rem 1rem;
    }

    .nav {
        font-size: 0.9rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-item {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }

    .language-selector {
        margin-left: 0.5rem;
        gap: 0.3rem;
    }

    .lang-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .primary-btn,
    .recognition-btn {
        width: 100%;
        padding: 0.65rem 1.2rem;
        font-size: 1rem;
        margin: 0.4rem 0;
    }

    #task-selection button,
    #gender-selection button {
        width: auto;
        margin: 0.5rem 0.5rem 0.5rem 0 !important;
    }

    #audio-player {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }

    #task2-audio-player {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }

    #audio-player #audio-name,
    #task2-audio-player #task2-audio-name {
        font-size: 1rem;
        margin-left: 0;
        text-align: center;
    }

    .audio-control-container {
        width: 48px;
        height: 38px;
    }

    #current-word {
        font-size: 1.8rem;
        margin: 1.5rem 0;
        padding: 1rem;
        border-radius: 10px;
    }

    #recognition-buttons {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1.5rem 0;
    }

    .recognition-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }

    #voice-instruction,
    #task2-instruction {
        font-size: 1.5rem !important;
        padding: 1rem;
        margin: 1rem 0;
    }

    #intro-instructions-panel,
    #task2-intro-instructions-panel {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    #intro-instructions-text,
    #task2-intro-instructions-text {
        font-size: 1rem !important;
        line-height: 1.5;
    }

    .modal {
        max-width: 100%;
        width: 95%;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    #voice-progress,
    #task2-progress {
        font-size: 0.95rem;
    }

    #words-review-container {
        max-height: 400px;
    }

    .word-input {
        font-size: 0.95rem !important;
        padding: 0.5rem !important;
    }
}

/* Mobile Phones (max-width: 600px) */
@media (max-width: 600px) {
    main {
        padding: 1rem 0.5rem 5rem 0.5rem;
        max-width: 100%;
    }

    .card {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
    }

    #introduction h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .header {
        padding: 0.8rem 0.5rem;
    }

    .app-title {
        font-size: 1.2rem;
    }

    .nav {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.4rem;
        width: 100%;
    }

    .nav-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        width: auto;
    }

    .language-selector {
        margin-left: 0 !important;
        gap: 0.25rem;
        margin-top: 0.4rem;
    }

    .lang-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    p {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .primary-btn,
    .recognition-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        margin: 0.35rem 0;
        border-radius: 20px;
    }

    #task-selection,
    #gender-selection {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #task-selection button,
    #gender-selection button {
        width: 100%;
        margin: 0.4rem 0 !important;
    }

    #task-selected-indicator,
    #gender-selected-indicator {
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }

    #participant-code-section {
        margin-top: 1rem !important;
    }

    #participant-code {
        width: 100%;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.95rem;
        max-width: 100%;
    }

    #audio-player,
    #task2-audio-player {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 1.2rem;
        padding: 0.8rem;
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    #audio-player #audio-name,
    #task2-audio-player #task2-audio-name {
        font-size: 0.95rem;
        margin-left: 0;
        text-align: center;
    }

    #audio-player button.primary-btn,
    #task2-audio-player button.primary-btn {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }

    .audio-control-container {
        width: 40px;
        height: 32px;
        margin: 0 auto;
    }

    .wave-bar {
        width: 4px;
        height: 14px;
    }

    #voice-instruction,
    #task2-instruction {
        font-size: 1.3rem !important;
        padding: 0.8rem;
        margin: 0.8rem 0;
        border-radius: 8px;
    }

    #current-word {
        font-size: 1.5rem;
        margin: 1rem 0;
        padding: 0.8rem;
        border-radius: 8px;
    }

    #recognition-buttons {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin: 1.2rem 0;
    }

    .recognition-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    #recognition-progress {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    #intro-instructions-panel,
    #task2-intro-instructions-panel {
        padding: 1rem;
        margin-bottom: 1.2rem;
        border-radius: 8px;
    }

    #intro-instructions-text,
    #task2-intro-instructions-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    #intro-continue-btn,
    #task2-intro-continue-btn {
        width: 100%;
        padding: 0.6rem;
    }

    .modal {
        max-width: 100%;
        width: 95%;
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        color: var(--primary-color);
    }

    .modal p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .modal ol {
        font-size: 0.9rem;
        padding-left: 1.2rem;
        line-height: 1.6;
    }

    .modal li {
        margin-bottom: 0.8rem;
    }

    .modal .primary-btn {
        width: 100%;
    }

    #voice-progress,
    #task2-progress {
        font-size: 0.9rem;
        margin: 1rem 0;
    }

    #voice-filename {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    #response-section {
        padding: 0.8rem;
        margin: 1rem 0;
    }

    #response-label {
        font-size: 0.95rem !important;
    }

    #response-input {
        font-size: 0.95rem;
        padding: 0.5rem 0.2rem;
        margin: 0.4rem 0;
    }

    #words-review-container {
        max-height: 300px;
        padding: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .word-input {
        font-size: 0.9rem !important;
        padding: 0.45rem !important;
    }

    #example-indicator,
    #task2-example-indicator {
        padding: 0.6rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }

    #example-indicator strong,
    #task2-example-indicator strong {
        font-size: 0.95rem;
    }

    #example-indicator p,
    #task2-example-indicator p {
        font-size: 0.85rem;
        margin: 0.4rem 0 0 0;
    }

    #checkpoint-message {
        padding: 1rem !important;
    }

    #checkpoint-text {
        font-size: 0.95rem;
    }

    #review-words-btn,
    #skip-review-btn,
    #proceed-to-recognition-btn,
    #complete-recognition-btn {
        width: 100%;
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        margin: 0.5rem 0 !important;
    }

    /* Dev buttons positioning for mobile */
    .dev-buttons {
        bottom: 5px !important;
        left: 5px !important;
    }

    /* Hide dev buttons on mobile if needed */
    #dev-skip-btn,
    #dev-skip-btn2,
    #dev-test-replacements,
    #dev-vestito-btn,
    #complete-task1-btn,
    #complete-task2-btn {
        padding: 3px 6px !important;
        font-size: 9px !important;
        opacity: 0.4;
    }

    .footer {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }

    /* Dev buttons horizontal on mobile */
    .dev-buttons {
        flex-direction: row !important;
        gap: 3px !important;
        bottom: 5px !important;
        left: 5px !important;
        right: auto !important;
        flex-wrap: wrap;
    }

    /* Ensure touch targets are large enough (minimum 44x44px) */
    button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Horizontal stacking for side-by-side buttons if needed */
    .button-row {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .button-row button {
        flex: 1;
        min-width: 100px;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    main {
        padding: 0.8rem 0.4rem 4.5rem 0.4rem;
        max-width: 100%;
    }

    .card {
        margin-bottom: 1.2rem;
        padding: 1rem 0.7rem;
    }

    .header {
        padding: 0.6rem 0.4rem;
        flex-direction: column;
        gap: 0.4rem;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
    }

    h2 {
        font-size: 1.1rem !important;
    }

    p {
        font-size: 0.9rem !important;
    }

    .primary-btn,
    .recognition-btn {
        padding: 0.55rem 0.8rem;
        font-size: 0.9rem;
    }

    #audio-player,
    #task2-audio-player {
        padding: 0.6rem;
        gap: 0.5rem;
    }

    #voice-instruction,
    #task2-instruction {
        font-size: 1.2rem !important;
        padding: 0.6rem;
    }

    #current-word {
        font-size: 1.3rem;
        padding: 0.6rem;
        margin: 0.8rem 0;
    }

    .modal {
        padding: 1.2rem 0.8rem;
        width: 96%;
    }

    #intro-instructions-text,
    #task2-intro-instructions-text {
        font-size: 0.85rem !important;
    }

    .recognition-btn {
        font-size: 0.85rem;
        padding: 0.7rem;
    }

    #words-review-container {
        max-height: 250px;
        padding: 0.6rem;
    }

    #participant-code {
        padding: 0.45rem 0.6rem !important;
    }

    /* Even smaller and more subtle dev buttons on extra small screens */
    .dev-buttons {
        flex-direction: row !important;
        gap: 2px !important;
        flex-wrap: wrap;
    }

    #dev-skip-btn,
    #dev-skip-btn2,
    #dev-test-replacements,
    #dev-vestito-btn,
    #complete-task1-btn,
    #complete-task2-btn {
        padding: 2px 4px !important;
        font-size: 7px !important;
        opacity: 0.3 !important;
    }
}

/* ============================================
   UTILITY CSS CLASSES - STANDARDIZED STYLES
   ============================================
   Use these classes to maintain consistency across HTML, CSS, and JS.
   Remove inline styles and use classes instead.
   ============================================ */

/* Dev Button Styles */
.dev-btn {
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.dev-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dev-btn-primary { background: #ff5722; }
.dev-btn-purple { background: #9c27b0; }
.dev-btn-cyan { background: #00bcd4; }
.dev-btn-orange { background: #ff9800; }
.dev-btn-blue { background: #2196f3; }
.dev-btn-indigo { background: #6a1b9a; }
.dev-btn-teal { background: #00796b; }

/* Form Input Styles */
.form-input {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.form-input-small {
    font-size: var(--font-size-sm);
}

/* Text Size Utility Classes */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-base {
    font-size: var(--font-size-base);
}

.text-lg {
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: var(--font-size-xl);
}

.text-2xl {
    font-size: var(--font-size-2xl);
}

/* Text Style Utilities */
.text-bold {
    font-weight: 700;
}

.text-semibold {
    font-weight: 600;
}

.text-medium {
    font-weight: 500;
}

.text-normal {
    font-weight: 400;
}

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

.text-left {
    text-align: left;
}

/* Component-Specific Classes */
.example-indicator {
    color: #2e7d32;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.response-label {
    display: block;
    margin-bottom: 1rem;
    color: #999;
    font-size: var(--font-size-sm);
    font-style: italic;
}

.small-text {
    color: #888;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.small-text:hover {
    opacity: 1;
}

.large-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.instruction-text {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.status-text {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
}

/* Emphasis highlight for "te stesso" */
.highlight-emphasis {
    background-color: #FFFF00;
    color: #1976d2;
    border: 3px solid #1976d2;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}
