/**
 * Tabuada Master - Styles
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 * 
 * Design Styles: Education & Gamified + Clean & Minimal + Health & Wellness
 * Color Palette: Soft & Serene
 */

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Chosen palette colors - Soft & Serene */
    --primary-color: #E8F4FD;
    --secondary-color: #D4E7F7;
    --accent-color: #B8D4F0;
    --surface-color: #9CC3E9;
    --text-color: #2C5282;
    
    /* Automatic variations */
    --primary-hover: #D4E7F7;
    --primary-light: #F5FAFF;
    --primary-dark: #7BB3E2;
    --bg-color: #ffffff;
    --bg-secondary: #F8FBFE;
    --text-muted: #5A7A9A;
    --text-light: #8BA4BC;
    
    /* Semantic colors */
    --success-color: #48BB78;
    --success-light: #C6F6D5;
    --error-color: #F56565;
    --error-light: #FED7D7;
    --warning-color: #ECC94B;
    --warning-light: #FEFCBF;
    --info-color: #4299E1;
    --info-light: #BEE3F8;
    
    /* Gamification colors */
    --gold-color: #FFD700;
    --silver-color: #C0C0C0;
    --bronze-color: #CD7F32;
    --streak-color: #FF6B35;
    
    /* Layout */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    --spacing-unit: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 500;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-toast: 1100;
    --z-celebration: 1200;
}

/* Dark Mode */

/* ===== BASE STYLES ===== */
html {
    font-size: clamp(14px, 2.5vw, 16px);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: 60px;
    padding-bottom: 70px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Safe areas for iPhone X+ */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: max(60px, env(safe-area-inset-top));
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* ===== APP HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow);
    z-index: var(--z-fixed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.app-logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo i {
    font-size: 24px;
    color: var(--primary-dark);
}

.header-logo h1 {
    font-size: var(--font-size-lg);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 4px;
    }
    
    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: var(--border-radius);
        color: var(--text-muted);
        font-weight: 600;
        font-size: var(--font-size-sm);
        transition: var(--transition);
    }
    
    .desktop-nav .nav-link:hover {
        background: var(--primary-light);
        color: var(--primary-dark);
    }
    
    
    .desktop-nav .nav-link {
        position: relative;
    }
    
    .desktop-nav .nav-link.active {
        background: var(--primary-light, #E8F4FD);
        color: var(--primary-dark);
        font-weight: 800;
    }
    
    .desktop-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
        height: 4px;
        background: var(--primary-dark);
        border-radius: 4px;
    }

    
    .desktop-nav .nav-link i {
        font-size: 16px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    min-width: 48px;
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    color: white;
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary-color);
    border-color: var(--accent-color);
}

.btn-accent {
    background: linear-gradient(135deg, var(--streak-color), #FF8C5A);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #E53E3E;
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    min-height: 36px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius-full);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.btn-icon:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
    min-width: 64px;
    min-height: 48px;
}

.nav-item i {
    font-size: 20px;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary-dark);
}

.nav-item.active i {
    transform: scale(1.15);
}

.nav-item-fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    border-radius: var(--border-radius-full);
    margin-top: -28px;
    color: white !important;
    box-shadow: var(--shadow-lg);
    padding: 0;
}

.nav-item-fab i {
    font-size: 24px;
}

.nav-item-fab span {
    display: none;
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* ===== SECTIONS ===== */
.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-header h2 i {
    color: var(--primary-dark);
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-title i {
    color: var(--primary-dark);
}

.subsection-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

/* ===== WELCOME CARD ===== */
.welcome-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.welcome-avatar {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.welcome-avatar i {
    font-size: 28px;
    color: var(--primary-dark);
}

.welcome-content {
    flex: 1;
}

.welcome-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: 4px;
}

.welcome-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 0;
}

.welcome-streak {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.welcome-streak i {
    font-size: 20px;
    color: var(--streak-color);
    margin-bottom: 4px;
}

.welcome-streak span {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--streak-color);
}

.welcome-streak small {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 20px;
    color: var(--primary-dark);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-color);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.progress-ring-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

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

.progress-ring-bg {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-dark);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary-dark);
}

.progress-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.tables-progress {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

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

.table-progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.table-progress-item.completed {
    background: var(--success-light);
}

.table-progress-item.in-progress {
    background: var(--warning-light);
}

.table-progress-number {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-color);
}

.table-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.table-progress-fill {
    height: 100%;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    margin-bottom: 24px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.action-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon i {
    font-size: 20px;
    color: var(--primary-dark);
}

.action-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

/* ===== ACHIEVEMENTS ===== */
.achievements-section {
    margin-bottom: 24px;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.achievement-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.achievement-icon i {
    font-size: 20px;
    color: white;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 0;
}

/* ===== DIFFICULTY SELECTOR ===== */
.difficulty-selector {
    margin-bottom: 24px;
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.difficulty-btn:hover {
    border-color: var(--accent-color);
}

.difficulty-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-dark);
}

.difficulty-btn i {
    font-size: 24px;
    color: var(--primary-dark);
}

.difficulty-btn span {
    font-weight: 700;
    color: var(--text-color);
}

.difficulty-btn small {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ===== TABLE SELECTOR ===== */
.table-selector {
    margin-bottom: 24px;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

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

.table-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.table-btn:hover {
    border-color: var(--accent-color);
}

.table-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

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

/* ===== QUESTION COUNT ===== */
.question-count-selector {
    margin-bottom: 24px;
}

.count-options {
    display: flex;
    gap: 8px;
}

.count-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.count-btn:hover {
    border-color: var(--accent-color);
}

.count-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-dark);
}

/* ===== CHALLENGE CARDS ===== */
.challenge-modes {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

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

.challenge-card {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.challenge-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.challenge-icon i {
    font-size: 28px;
    color: var(--primary-dark);
}

.challenge-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 8px;
}

.challenge-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
}

.challenge-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.challenge-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.challenge-meta i {
    color: var(--primary-dark);
}

/* ===== DAILY CHALLENGE ===== */
.daily-challenge-card {
    position: relative;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.daily-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--streak-color);
    border-radius: var(--border-radius-full);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.daily-challenge-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 8px;
}

.daily-challenge-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.daily-reward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.daily-reward i {
    color: var(--gold-color);
}

.daily-status {
    margin-top: 12px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.daily-status.completed {
    color: var(--success-color);
}

/* ===== LEADERBOARD ===== */
.leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--secondary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--primary-dark);
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 24px;
    padding: 20px 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.podium-crown {
    margin-bottom: 8px;
    color: var(--gold-color);
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.podium-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.podium-avatar i {
    font-size: 20px;
    color: var(--text-muted);
}

.podium-name {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-score {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.podium-stand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.podium-place.first .podium-stand {
    height: 80px;
    background: var(--gold-color);
}

.podium-place.second .podium-stand {
    height: 60px;
    background: var(--silver-color);
}

.podium-place.third .podium-stand {
    height: 40px;
    background: var(--bronze-color);
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.leaderboard-entry:hover {
    background: var(--secondary-color);
}

.entry-rank {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-dark);
}

.entry-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-avatar i {
    font-size: 18px;
    color: var(--text-muted);
}

.entry-info {
    flex: 1;
}

.entry-name {
    font-weight: 700;
    color: var(--text-color);
}

.entry-level {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.entry-score {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Your Position */
.your-position {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-dark);
}

.position-rank {
    width: 40px;
    height: 40px;
    background: var(--primary-dark);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.position-info {
    flex: 1;
}

.position-name {
    font-weight: 700;
    color: var(--text-color);
}

.position-score {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ===== PROFILE ===== */
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.profile-avatar-large i {
    font-size: 32px;
    color: var(--primary-dark);
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 4px;
}

.profile-level {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 0;
}

.profile-level i {
    color: var(--gold-color);
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    text-align: center;
}

.profile-stat i {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.profile-stat .stat-number {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-color);
}

.profile-stat .stat-text {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Achievements Gallery */
.achievements-gallery {
    margin-bottom: 24px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

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

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.badge-item:hover {
    transform: scale(1.05);
}

.badge-item.locked {
    opacity: 0.4;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.badge-item.locked .badge-icon {
    background: var(--text-light);
}

.badge-icon i {
    font-size: 20px;
    color: white;
}

.badge-name {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-color);
}

/* Settings */
.settings-section {
    margin-bottom: 24px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-info i {
    font-size: 20px;
    color: var(--primary-dark);
}

.setting-info span {
    font-weight: 600;
    color: var(--text-color);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-light);
    transition: var(--transition);
    border-radius: 28px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

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

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Data Section */
.data-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-bottom: 24px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px 16px;
    color: var(--text-muted);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    margin-bottom: 0;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-small {
    max-width: 360px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--secondary-color);
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-lg);
}

.modal-header h2 i {
    color: var(--primary-dark);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 12px;
}

.warning-text {
    color: var(--error-color);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--secondary-color);
}

.modal-actions .btn {
    flex: 1;
}

/* ===== QUIZ MODAL ===== */
.quiz-modal-content {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .quiz-modal-content {
        max-width: 500px;
        max-height: 90vh;
        height: auto;
        border-radius: var(--border-radius-lg);
    }
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--primary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.quiz-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-mode {
    padding: 4px 12px;
    background: var(--primary-dark);
    border-radius: var(--border-radius-full);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.quiz-progress {
    font-weight: 700;
    color: var(--text-color);
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--streak-color);
    border-radius: var(--border-radius-full);
    color: white;
    font-weight: 700;
}

.quiz-timer.warning {
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.quiz-lives {
    display: flex;
    gap: 4px;
}

.quiz-lives i {
    font-size: 20px;
    color: var(--error-color);
}

.quiz-lives i.lost {
    color: var(--text-light);
}

.quiz-close {
    background: transparent;
    font-size: 24px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 20px;
}

.quiz-score {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--gold-color);
    border-radius: var(--border-radius-full);
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.quiz-streak {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--streak-color);
    border-radius: var(--border-radius-full);
    color: white;
    font-weight: 700;
}

.quiz-streak[hidden] {
    display: none;
}

.quiz-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

.question-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--primary-dark);
}

.question-operator,
.question-equals {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-muted);
}

.question-answer {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--accent-color);
}

.quiz-input-container {
    display: flex;
    width: 100%;
    max-width: 320px;
    background: var(--bg-color);
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.quiz-input-container:focus-within {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.quiz-input {
    flex: 1;
    padding: 16px;
    font-family: var(--font-family);
    font-size: var(--font-size-3xl);
    font-weight: 800;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-color);
    width: 100%;
}

.quiz-input:focus {
    outline: none;
}

/* Hide HTML5 number spin arrows */
.quiz-input::-webkit-outer-spin-button,
.quiz-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quiz-input[type=number] {
    -moz-appearance: textfield;
}

.quiz-input-container .btn-primary {
    border-radius: 0;
    margin: 0;
    width: 80px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-input.correct {
    border-color: var(--success-color);
    background: var(--success-light);
}

.quiz-input.incorrect {
    border-color: var(--error-color);
    background: var(--error-light);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.quiz-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 700;
    animation: fadeIn 0.3s ease;
}

.quiz-feedback.correct {
    background: var(--success-light);
    color: var(--success-color);
}

.quiz-feedback.incorrect {
    background: var(--error-light);
    color: var(--error-color);
}

.quiz-feedback .feedback-icon i {
    font-size: 20px;
}

/* Numpad */
.quiz-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.numpad-btn {
    padding: 12px;
    font-family: var(--font-family);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    background: var(--bg-color);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 64px;
    box-shadow: 0 4px 0 var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.numpad-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 transparent;
}

.numpad-clear {
    background: var(--error-light);
    color: var(--error-color);
    border-color: #ffb3b3;
    box-shadow: 0 4px 0 #ffb3b3;
}

.numpad-submit {
    background: var(--success-light);
    color: var(--success-color);
    border-color: #b3e6c2;
    box-shadow: 0 4px 0 #b3e6c2;
}

/* ===== RESULTS MODAL ===== */
.results-modal-content {
    text-align: center;
    padding: 32px 24px;
}

.results-header {
    margin-bottom: 24px;
}

.results-icon {
    width: 80px;
    height: 80px;
    background: var(--gold-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-lg);
    animation: bounce 1s ease;
}

.results-icon i {
    font-size: 36px;
    color: white;
}

.results-icon.good {
    background: var(--success-color);
}

.results-icon.bad {
    background: var(--error-color);
}

.results-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 8px;
}

.results-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.result-stat i {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.result-value {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-color);
}

.result-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.results-achievements {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gold-color);
    border-radius: var(--border-radius);
}

.results-achievements h3 {
    color: white;
    margin-bottom: 12px;
}

.new-achievements {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.new-achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

.new-achievement i {
    font-size: 24px;
    color: white;
    margin-bottom: 4px;
}

.new-achievement span {
    font-size: var(--font-size-xs);
    color: white;
    font-weight: 600;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== FORM STYLES ===== */
.modal-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input.error {
    border-color: var(--error-color);
}

.form-error {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--error-color);
    margin-top: 4px;
}

.avatar-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.avatar-option {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-option:hover {
    border-color: var(--accent-color);
}

.avatar-option.active {
    border-color: var(--primary-dark);
    background: var(--primary-color);
}

.avatar-option i {
    font-size: 24px;
    color: var(--primary-dark);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 400px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .toast-container {
        bottom: 24px;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--text-color);
    color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
}

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

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

.toast.warning {
    background: var(--warning-color);
    color: var(--text-color);
}

.toast.info {
    background: var(--info-color);
}

.toast i {
    font-size: 20px;
}

.toast-message {
    flex: 1;
    font-weight: 600;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

/* ===== CELEBRATION OVERLAY ===== */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-celebration);
    pointer-events: none;
}

.celebration-overlay[hidden] {
    display: none;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== FOOTER ===== */
.app-footer {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--secondary-color);
    margin-bottom: 70px;
}

@media (min-width: 768px) {
    .app-footer {
        margin-bottom: 0;
    }
}

.app-footer p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.app-footer p:last-child {
    margin-bottom: 0;
}

.b20-link {
    color: var(--primary-dark);
    font-weight: 600;
    transition: var(--transition);
}

.b20-link:hover {
    text-decoration: underline;
    transform: scale(1.02);
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--secondary-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

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

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

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .app-header,
    .bottom-nav,
    .app-footer {
        display: none;
    }
    
    body {
        padding: 0;
    }
}
/* ===== TABUADAS DISPLAY STYLES ===== */
.table-display-card {
    background: var(--bg-color);
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-top: 32px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
}

.table-display-card[hidden] {
    display: none;
}

.table-display-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--secondary-color);
}

.table-display-header h3 {
    color: var(--primary-dark);
    font-size: var(--font-size-3xl);
    font-weight: 800;
}

.table-display-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-color);
}

.table-display-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    transition: var(--transition-fast);
}

.table-display-row:nth-child(even) {
    background: transparent;
}

.table-display-row:hover {
    transform: scale(1.02);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.table-display-equals {
    color: var(--text-muted);
}

.table-display-result {
    color: var(--accent-color);
    font-weight: 800;
}

/* ===== PAGE INFO BOX ===== */
.page-info-box {
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-top: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}
.page-info-box h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}
.page-info-box p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: var(--font-size-md);
}
.page-info-box p:last-child {
    margin-bottom: 0;
}
