/**
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 * Todos os direitos reservados
 */

/* CSS Variables - Palette "Dawn Refined" (Acessibilidade e Elegância) */
:root {
    /* Colors from the chosen palette */
    --primary-color: #BE185D;
    /* Rose 700 - Elegant strong pink, excellent contrast with white text */
    --primary-color-rgb: 190, 24, 93;
    --secondary-color: #F472B6;
    /* Pink 400 - Softer pink */
    --accent-color: #FCE7F3;
    /* Pink 100 - Very light blush for borders/hover */
    --surface-color: #FFFFFF;
    /* White cards */
    --text-color: #4A044E;
    /* Fuchsia 900 - Very dark purplish text */
    --btn-text: #FFFFFF;
    /* White text for buttons */

    /* Automatic variations */
    --primary-hover: color-mix(in srgb, var(--primary-color) 85%, black);
    --primary-light: color-mix(in srgb, var(--primary-color) 15%, white);
    --bg-color: #FDF2F8;
    /* Pink 50 - Extremely light pinkish background */
    --text-muted: color-mix(in srgb, var(--text-color) 60%, transparent);
    --text-secondary: #831843;
    /* Pink 900 - Secondary text */

    /* Layout */
    --border-radius: 12px;
    --spacing-unit: 8px;
    --transition: all 0.3s ease;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.16);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body:not(.light-theme) {
        --bg-color: #111827;
        /* Gray 900 */
        --surface-color: #1F2937;
        /* Gray 800 */
        --text-color: #FDF2F8;
        /* Pink 50 */
        --text-secondary: #FBCFE8;
        /* Pink 200 */
        --accent-color: #374151;
        /* Gray 700 */
        --primary-color: #F472B6;
        /* Pink 400 - Vibrant against dark BG for high accessibility */
        --primary-color-rgb: 244, 114, 182;
        --btn-text: #4A044E;
        /* Dark text for light primary button in Dark Mode */
        --text-muted: color-mix(in srgb, var(--text-color) 60%, transparent);
    }
}

body.dark-theme {
    --bg-color: #111827;
    --surface-color: #1F2937;
    --text-color: #FDF2F8;
    --text-secondary: #FBCFE8;
    --accent-color: #374151;
    --primary-color: #F472B6;
    --primary-color-rgb: 244, 114, 182;
    --btn-text: #4A044E;
    --text-muted: color-mix(in srgb, var(--text-color) 60%, transparent);
}

body.light-theme {
    --bg-color: #FDF2F8;
    --surface-color: #FFFFFF;
    --text-color: #4A044E;
    --text-secondary: #831843;
    --accent-color: #FCE7F3;
    --primary-color: #BE185D;
    --btn-text: #FFFFFF;
    --text-muted: color-mix(in srgb, var(--text-color) 60%, transparent);
}

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

html {
    font-size: clamp(14px, 2.5vw, 18px);
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    padding-top: 60px;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-color);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-color-rgb), 0.6);
}

@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-secondary);
}

/* Container */
.container {
    padding: calc(var(--spacing-unit) * 2);
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        padding: calc(var(--spacing-unit) * 3);
        max-width: 720px;
    }
}

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

/* Header Fixo */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: calc(var(--spacing-unit) * 2);
}

.header-logo h1 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}

.main-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    max-height: 100%;
}

.header-actions {
    flex-shrink: 0;
    margin-left: calc(var(--spacing-unit) * 2);
    display: flex;
    gap: calc(var(--spacing-unit));
}

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

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        gap: calc(var(--spacing-unit) * 2);
    }

    .desktop-nav .nav-link {
        padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
        border-radius: var(--border-radius);
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: calc(var(--spacing-unit));
        font-size: 0.95rem;
        font-weight: 500;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .desktop-nav .nav-link:hover,
    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: var(--btn-text);
        transform: translateY(-2px);
    }

    .bottom-nav {
        display: none !important;
    }
}



.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: var(--btn-text);
    transform: scale(1.1);
}

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

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    min-width: 64px;
    min-height: 48px;
}

.nav-item i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

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

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

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

/* Main Content */
.main-content {
    min-height: calc(100vh - 130px);
}

@media (min-width: 768px) {
    .main-content {
        min-height: calc(100vh - 60px);
    }
}

/* Views/Sections */
.view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 3) 0;
    background: linear-gradient(135deg, var(--surface-color), var(--accent-color));
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.page-header h2 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit));
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
    background: linear-gradient(135deg, var(--surface-color), var(--accent-color));
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
}

.welcome-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Cards */
.card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    margin-bottom: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--accent-color);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    justify-content: center;
}

.btn:active {
    transform: scale(0.96) !important;
}

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

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

.btn-secondary {
    background: var(--accent-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--btn-text);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--btn-text);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Navigation Grid */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin: calc(var(--spacing-unit) * 4) 0;
}

@media (max-width: 767px) {
    .nav-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }
}

.nav-card {
    background: var(--surface-color);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: calc(var(--spacing-unit) * 4);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.05);
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.nav-card:hover::before {
    transform: scaleX(1);
}



.nav-card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto calc(var(--spacing-unit) * 3);
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-card:hover .nav-card-icon {
    background: var(--primary-color);
    color: var(--btn-text);
    transform: scale(1.1);
}

.nav-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit));
}

.nav-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Progress Section */
.progress-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 4);
    text-align: center;
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 4);
    box-shadow: var(--shadow-medium);
}

.streak-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit));
}

.streak-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

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

.streak-icon {
    font-size: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.stat-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--accent-color);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit));
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Badges */
.badges-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.badge {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.badge.earned {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

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

.badge-icon {
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-unit));
}

.badge.earned .badge-icon {
    color: var(--primary-color);
}

.badge:not(.earned) .badge-icon {
    color: var(--text-muted);
}

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

/* Goals Section */
.goals-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.goal-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-light);
}

.goal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
}

@media (max-width: 767px) {
    .goal-info {
        flex-direction: column;
        align-items: stretch;
        gap: calc(var(--spacing-unit));
    }
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    min-width: 200px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--accent-color);
    border-radius: 4px;
    overflow: hidden;
}

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

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 40px;
}

/* Reflection Section */
.reflection-section textarea {
    width: 100%;
    min-height: 120px;
    padding: calc(var(--spacing-unit) * 2);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: var(--transition);
    background: var(--surface-color);
    color: var(--text-color);
}

.reflection-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

/* Prayer Section */
.prayer-themes {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.theme-card {
    background: var(--surface-color);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit));
    min-height: 120px;
}

.theme-card:hover {
    border-color: var(--primary-color);
    background: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.theme-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.theme-card span {
    font-weight: 600;
    color: var(--text-color);
}

.prayer-content {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.prayer-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
    font-style: italic;
}

.prayer-timer {
    margin: calc(var(--spacing-unit) * 4) 0;
    padding: calc(var(--spacing-unit) * 3);
    background: var(--accent-color);
    border-radius: var(--border-radius);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.timer-btn {
    padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.timer-btn:hover {
    background: var(--primary-color);
    color: var(--btn-text);
}

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

.timer-circle {
    width: 120px;
    height: 120px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto calc(var(--spacing-unit) * 3);
    background: white;
}

.timer-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.prayer-actions {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: var(--bg-color);
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
    z-index: 2000;
    font-weight: 500;
    box-shadow: var(--shadow-heavy);
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
.app-footer {
    background: var(--surface-color);
    padding: calc(var(--spacing-unit) * 3);
    text-align: center;
    border-top: 1px solid var(--accent-color);
    margin-top: calc(var(--spacing-unit) * 6);
}

.app-footer p {
    margin: calc(var(--spacing-unit)) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: calc(var(--spacing-unit) * 1.5);
    }

    .welcome-title {
        font-size: 2rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prayer-actions {
        flex-direction: column;
    }

    .goal-info {
        flex-direction: column;
        align-items: stretch;
    }

    .goal-progress {
        min-width: auto;
    }
}

/* Accessibility */
.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;
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Print Styles */
@media print {

    .app-header,
    .bottom-nav,
    .btn,
    .loading-overlay,
    .toast {
        display: none !important;
    }

    body {
        padding: 0;
    }

    .view {
        display: block !important;
    }
}

/* Home Page Specific Styles */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

@media (min-width: 768px) {
    .hero-section {
        flex-direction: row;
        align-items: center;
        gap: calc(var(--spacing-unit) * 4);
    }

    .hero-content {
        flex: 1;
    }

    .hero-verse-card {
        flex: 1;
        margin: 0 !important;
    }
}

.hero-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit));
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

.hero-verse-card {
    background: linear-gradient(135deg, var(--surface-color), var(--accent-color));
    border-radius: calc(var(--border-radius) * 1.5);
    padding: calc(var(--spacing-unit) * 4);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.hero-verse-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent, rgba(var(--primary-color-rgb), 0.1));
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.verse-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    opacity: 0.8;
}

.verse-content {
    position: relative;
    z-index: 1;
}

.verse-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.6;
    font-weight: 500;
}

.verse-reference {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin: calc(var(--spacing-unit) * 3) 0;
}

.stat-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.stat-item .stat-icon {
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit));
    color: var(--primary-color);
    opacity: 0.9;
}

.stat-item .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.encouragement-section {
    margin: calc(var(--spacing-unit) * 5) 0;
}

.encouragement-section h3 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
}

.encouragement-card {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--accent-color) 100%);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: var(--shadow-medium);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.encouragement-card::after {
    content: '✨';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 8rem;
    opacity: 0.05;
    pointer-events: none;
}

.encouragement-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.encouragement-signature {
    text-align: right;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.faq-section {
    margin: calc(var(--spacing-unit) * 4) 0;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
}

.faq-container {
    margin-top: calc(var(--spacing-unit) * 2);
}

.faq-item {
    border-bottom: 1px solid var(--accent-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: calc(var(--spacing-unit) * 2) 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding-bottom: calc(var(--spacing-unit) * 2);
    animation: fadeIn 0.3s ease-in-out;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 480px) {
    .daily-verse-card {
        flex-direction: column;
        text-align: center;
    }

    .quick-stats {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit));
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: calc(var(--spacing-unit) * 2);
        text-align: left;
        padding: calc(var(--spacing-unit) * 1.5);
    }

    .stat-item .stat-icon {
        margin-bottom: 0;
    }

    .stat-item .stat-content {
        flex: 1;
    }
}

/* Devotional Page Specific Styles */
.devotional-container {
    max-width: 800px;
    margin: 0 auto;
}

.devotional-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: var(--shadow-medium);
    margin-bottom: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--accent-color);
}

.devotional-verse-section {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 3);
    background: linear-gradient(135deg, var(--accent-color), var(--surface-color));
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
}

.verse-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: calc(var(--spacing-unit));
}

.devotional-reflection-section,
.devotional-application-section {
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 2) 0;
    border-bottom: 1px solid var(--accent-color);
}

.devotional-reflection-section:last-of-type,
.devotional-application-section:last-of-type {
    border-bottom: none;
}

.devotional-reflection-section h3,
.devotional-application-section h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
}

.reflection-content,
.application-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: justify;
}

.devotional-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: calc(var(--spacing-unit) * 3);
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid var(--accent-color);
}

.devotional-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-light);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.devotional-date {
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    flex: 1;
}

.devotional-progress {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.recent-devotionals {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
}

.recent-devotionals h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--accent-color);
    border-radius: calc(var(--border-radius) / 2);
    transition: var(--transition);
    cursor: pointer;
}

.recent-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.recent-item-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.recent-item-verse {
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
    text-align: center;
}

.recent-item-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--btn-text);
}

@media (max-width: 768px) {
    .devotional-card {
        padding: calc(var(--spacing-unit) * 2);
    }

    .devotional-verse-section {
        padding: calc(var(--spacing-unit) * 2);
    }

    .verse-text {
        font-size: 1.1rem;
    }

    .devotional-actions {
        flex-direction: column;
    }

    .devotional-navigation {
        flex-wrap: wrap;
        gap: calc(var(--spacing-unit));
    }

    .devotional-date {
        order: -1;
        width: 100%;
        margin-bottom: calc(var(--spacing-unit));
    }

    .recent-item {
        flex-direction: column;
        gap: calc(var(--spacing-unit));
        text-align: center;
    }

    .recent-item-verse {
        text-align: center;
    }
}

@media (max-width: 480px) {

    .reflection-content,
    .application-content {
        text-align: left;
    }
}

/* Challenges Page Specific Styles */
.challenges-container {
    max-width: 800px;
    margin: 0 auto;
}

.challenges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 2);
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.challenges-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.challenges-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.challenges-list {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.challenge-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 2);
}

.challenge-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.challenge-item.completed {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

.challenge-content {
    flex: 1;
}

.challenge-content h4 {
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit));
    font-size: 1.1rem;
}

.challenge-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.challenge-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--btn-text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: calc(var(--spacing-unit));
}

.challenge-complete-btn {
    background: var(--accent-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 1.5);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit));
}

.challenge-complete-btn:hover {
    background: var(--primary-color);
    color: var(--btn-text);
    transform: scale(1.05);
}

.challenge-complete-btn.completed {
    background: var(--primary-color);
    color: var(--btn-text);
}

.challenges-navigation {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.weekly-progress-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.weekly-progress-card h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: calc(var(--spacing-unit));
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.week-day {
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: calc(var(--border-radius) / 2);
    background: var(--accent-color);
    transition: var(--transition);
}

.week-day.completed {
    background: var(--primary-color);
    color: var(--btn-text);
}

.week-day.today {
    border: 2px solid var(--primary-color);
    font-weight: 700;
}

.week-day-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.week-day-number {
    font-size: 0.9rem;
}

.week-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}

.week-stat {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--accent-color);
    border-radius: calc(var(--border-radius) / 2);
}

.week-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.week-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.challenge-categories {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.challenge-categories h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.category-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-unit));
}

.category-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit));
}

.category-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.challenge-ideas {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
}

.challenge-ideas h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.idea-item {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2);
    background: var(--accent-color);
    border-radius: calc(var(--border-radius) / 2);
    transition: var(--transition);
}

.idea-item:hover {
    background: var(--primary-light);
    transform: translateX(8px);
}

.idea-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.idea-text {
    color: var(--text-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .challenges-header {
        flex-direction: column;
        gap: calc(var(--spacing-unit));
        text-align: center;
    }

    .challenge-item {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }

    .challenge-complete-btn {
        align-self: stretch;
    }

    .challenges-navigation {
        flex-direction: column;
    }

    .week-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: calc(var(--spacing-unit) * 0.5);
    }

    .week-day {
        padding: calc(var(--spacing-unit));
    }

    .week-day-name {
        font-size: 0.7rem;
    }

    .week-day-number {
        font-size: 0.8rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .week-stats {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .idea-item {
        flex-direction: column;
        text-align: center;
        gap: calc(var(--spacing-unit));
    }
}

/* Quiz Page Specific Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-progress-bar {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 600;
    color: var(--text-color);
}

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

.progress-track {
    height: 8px;
    background: var(--accent-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.question-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: var(--shadow-medium);
    margin-bottom: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--accent-color);
    position: relative;
}

.question-number {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--btn-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding-right: 60px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.answer-btn {
    background: var(--accent-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 2);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    position: relative;
}

.answer-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateX(8px);
}

.answer-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--btn-text);
}

.answer-btn.correct {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.answer-btn.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.answer-explanation {
    margin-top: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 3);
    background: var(--accent-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.5s ease-in-out;
}

.explanation-header {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.explanation-text {
    color: var(--text-color);
    line-height: 1.6;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.quiz-results {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: var(--shadow-medium);
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
    border: 2px solid var(--primary-color);
}

.quiz-result-card h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-size: 1.5rem;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.score-percentage {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.score-message {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-style: italic;
}

.quiz-stats-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.quiz-stats-card h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.quiz-topics {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.quiz-topics h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.topic-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.topic-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.topic-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.topic-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit));
    text-align: center;
}

.topic-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.recent-results {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: var(--shadow-light);
}

.recent-results h3 {
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2);
    background: var(--accent-color);
    border-radius: calc(var(--border-radius) / 2);
    transition: var(--transition);
}

.result-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.result-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-score {
    font-weight: 600;
    color: var(--primary-color);
}

.result-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .question-card {
        padding: calc(var(--spacing-unit) * 2);
    }

    .question-text {
        padding-right: 0;
        margin-bottom: calc(var(--spacing-unit) * 4);
    }

    .question-number {
        position: static;
        margin: 0 auto calc(var(--spacing-unit) * 2);
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .score-display {
        gap: calc(var(--spacing-unit));
    }

    .score-number {
        font-size: 2.5rem;
    }

    .score-percentage {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .result-item {
        flex-direction: column;
        gap: calc(var(--spacing-unit));
        text-align: center;
    }
}

@media (max-width: 480px) {
    .progress-info {
        flex-direction: column;
        gap: calc(var(--spacing-unit));
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Footer Styles */
.app-footer {
    background: linear-gradient(135deg, var(--surface-color), var(--bg-color));
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3);
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit));
    opacity: 0.8;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 4px;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
    background: rgba(var(--primary-color-rgb), 0.05);
    padding: 12px 24px;
    border-radius: 30px;
}

.footer-legal-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--text-color);
}

.footer-legal-links .separator {
    color: rgba(var(--primary-color-rgb), 0.3);
}

.footer-bottom {
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 4px;
}

.text-danger {
    color: #e11d48;
}

.b20-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.b20-link:hover {
    text-decoration: underline;
}

.footer-copyright {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Hero Logo Responsiveness */
.hero-logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .hero-logo {
        height: 75px;
        margin-bottom: 16px;
    }
}

/* View Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(15px);
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-color);
    color: var(--text-color);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    font-size: 0.95rem;
    width: calc(100% - 32px);
    max-width: 400px;
    height: fit-content;
    max-height: 90vh;
    box-sizing: border-box;
    min-height: 50px;
    margin: 0;
    text-align: left;
    border-left: 5px solid var(--primary-color);
    pointer-events: none;
}

.toast.show {
    top: 30px;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast.success {
    border-left-color: #10B981;
}

.toast.success .toast-icon {
    color: #10B981;
}

.toast.error {
    border-left-color: #EF4444;
}

.toast.error .toast-icon {
    color: #EF4444;
}

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