/**
 * Culto Familiar - Styles
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

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

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Palette - Vibrant Pop */
    --primary-color: #05386B;
    --secondary-color: #379683;
    --accent-color: #5CDB95;
    --surface-color: #8EE4AF;
    --text-color: #05386B;
    
    /* Derived Colors */
    --primary-hover: #042d56;
    --primary-light: rgba(5, 56, 107, 0.1);
    --secondary-light: rgba(55, 150, 131, 0.1);
    --accent-light: rgba(92, 219, 149, 0.2);
    
    /* UI Colors */
    --bg-color: #f8fdf9;
    --bg-secondary: #ffffff;
    --text-muted: #5a7a6d;
    --text-light: #8aa89a;
    --border-color: #d4e8dc;
    --shadow-color: rgba(5, 56, 107, 0.1);
    
    /* Status Colors */
    --success-color: #10B981;
    --warning-color: #FBBF24;
    --error-color: #EF4444;
    --info-color: #3B82F6;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-text: 'Merriweather', Georgia, serif;
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
    
    /* Safe Areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    
    /* Header & Nav Heights */
    --header-height: 60px;
    --bottom-nav-height: 65px;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --primary-color: #5CDB95;
    --secondary-color: #8EE4AF;
    --accent-color: #379683;
    --surface-color: #1a2f25;
    --text-color: #EDF5E1;
    
    --primary-hover: #4bc584;
    --primary-light: rgba(92, 219, 149, 0.15);
    --secondary-light: rgba(142, 228, 175, 0.1);
    
    --bg-color: #0d1a14;
    --bg-secondary: #152920;
    --text-muted: #a8c4b5;
    --text-light: #6b8a7a;
    --border-color: #2a4a3a;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + var(--safe-top));
    padding-bottom: calc(var(--bottom-nav-height) + 55px + var(--safe-bottom) + var(--spacing-lg));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

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

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
.black-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 55px;
background-color: #000000;
z-index: 1001;
}
/* ===== HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    padding-top: var(--safe-top);
    box-shadow: 0 2px 12px var(--shadow-color);
    z-index: var(--z-fixed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.header-logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: var(--spacing-xs);
    }
    
    .desktop-nav .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-md);
        color: var(--text-muted);
        font-weight: 500;
        font-size: 0.9rem;
        transition: all var(--transition-fast);
    }
    
    .desktop-nav .nav-link:hover {
        background: var(--primary-light);
        color: var(--primary-color);
        text-decoration: none;
    }
    
    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 55px; /* Acima da black-bar */
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 12px var(--shadow-color);
    z-index: var(--z-fixed);
    /* padding-bottom: var(--safe-bottom); */
    border-top: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-width: 60px;
    min-height: 48px;
    border-radius: var(--radius-md);
}

.nav-item i {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

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

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

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

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

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-md);
    margin: 0 auto;
}

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

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

/* ===== SECTIONS ===== */
.section {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.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: var(--spacing-xl);
}

.section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

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

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

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

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

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

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

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
    min-height: 36px;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

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

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.card h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.card h3 i {
    color: var(--primary-color);
}

/* ===== WELCOME CAROUSEL ===== */
.welcome-carousel-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.welcome-slides {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.welcome-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.welcome-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 56, 107, 0.4), rgba(5, 56, 107, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: var(--spacing-lg);
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: white;
    transform: scale(1.3);
}

[data-theme="dark"] .slide-overlay {
    background: linear-gradient(to bottom, rgba(26, 47, 37, 0.5), rgba(21, 41, 32, 0.95));
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.welcome-icon i {
    font-size: 2.5rem;
    color: white;
}

.slide-overlay h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.slide-overlay .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-text);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.slide-overlay .welcome-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.stat-icon i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

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

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

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

/* ===== WEEKLY PROGRESS ===== */
.weekly-progress-card {
    text-align: center;
}

.weekly-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.weekly-dot {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.weekly-dot.completed {
    background: var(--accent-color);
    color: var(--primary-color);
}

.weekly-dot.today {
    border: 2px solid var(--primary-color);
}

.progress-bar-container {
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    width: 0%;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== DURATION CARDS ===== */
.quick-actions {
    margin-bottom: var(--spacing-lg);
}

.quick-actions h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.duration-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.duration-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.duration-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.duration-card.featured {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

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

.duration-icon i {
    font-size: 1rem;
    color: var(--primary-color);
}

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

.duration-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== VERSE CARD ===== */
.verse-card {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-light), var(--accent-light));
}

.verse-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.verse-header i {
    font-size: 1.5rem;
}

.verse-text {
    font-family: var(--font-text);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.verse-reference {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* ===== SELECTION CARDS ===== */
.selection-card {
    margin-bottom: var(--spacing-md);
}

.selection-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

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

.selection-btn {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.selection-btn:hover {
    border-color: var(--primary-color);
}

.selection-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.selection-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.selection-btn span {
    font-weight: 600;
    color: var(--text-color);
}

.selection-btn small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== WORSHIP GUIDE ===== */
.worship-guide-container {
    margin-top: var(--spacing-lg);
}

.worship-guide-container.hidden {
    display: none;
}

.worship-guide {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.guide-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-lg);
    text-align: center;
}

.guide-header h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    opacity: 0.9;
}

.guide-content {
    padding: var(--spacing-lg);
}

.guide-step {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.guide-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-title {
    font-weight: 600;
    color: var(--text-color);
}

.step-duration {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
}

.step-content {
    padding-left: calc(32px + var(--spacing-sm));
}

.step-content p {
    margin-bottom: var(--spacing-sm);
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-muted);
}

.step-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.guide-actions {
    padding: var(--spacing-lg);
    background: var(--bg-color);
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== ACTIVE WORSHIP ===== */
.worship-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.worship-timer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.step-progress {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.step-indicator.completed {
    background: var(--accent-color);
    color: var(--primary-color);
}

.step-indicator.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.worship-step-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    min-height: 300px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.worship-step-content h3 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.worship-step-content h3 i {
    display: block;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.worship-navigation {
    display: flex;
    gap: var(--spacing-md);
}

.worship-navigation .btn {
    flex: 1;
}

/* ===== ACTIVITIES ===== */
.activity-categories {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    -webkit-overflow-scrolling: touch;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

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

.activity-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: all var(--transition-fast);
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.activity-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.activity-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.activity-info h4 {
    margin-bottom: var(--spacing-xs);
}

.activity-meta {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.activity-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== TRACKER ===== */
.tracker-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.tracker-stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: 0 2px 12px var(--shadow-color);
}

.tracker-stat-card.highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.stat-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
}

.circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray var(--transition-slow);
}

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

.stat-circle-content .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-circle-content .stat-of {
    font-size: 1rem;
    color: var(--text-muted);
}

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

.tracker-stat-card .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.tracker-stat-card .stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== GOAL SELECTOR ===== */
.goal-card {
    text-align: center;
}

.goal-selector {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.goal-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.goal-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.goal-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.goal-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== CALENDAR ===== */
.calendar-card {
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.calendar-header h3 {
    margin-bottom: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.calendar-weekdays span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: var(--spacing-xs);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--bg-color);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.calendar-day.other-month {
    opacity: 0.3;
}

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

.calendar-day.completed {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== HISTORY ===== */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.history-item:last-child {
    border-bottom: none;
}

.history-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-icon i {
    color: var(--primary-color);
}

.history-info {
    flex: 1;
}

.history-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.history-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.history-date {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: right;
}

/* ===== SETTINGS ===== */
.settings-card {
    margin-bottom: var(--spacing-md);
}

.settings-form .form-group {
    margin-bottom: var(--spacing-md);
}

.settings-form label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="time"] {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-color);
    transition: border-color var(--transition-fast);
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.members-input-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.members-input-container input {
    flex: 1;
}

.members-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.member-tag {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-color);
}

.member-tag button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.setting-item.danger {
    background: rgba(239, 68, 68, 0.1);
}

.setting-info {
    flex: 1;
}

.setting-label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
}

.setting-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

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

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

.time-input {
    padding: var(--spacing-sm) var(--spacing-md) !important;
    width: auto !important;
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

#font-size-display {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
}

/* ===== FAQ ===== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-color);
    border: none;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.faq-icon {
    transition: transform var(--transition-fast);
}

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

.faq-answer {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== ABOUT ===== */
.about-content {
    text-align: center;
}

.about-content p {
    margin-bottom: var(--spacing-sm);
}

.about-description {
    font-size: 0.9rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: var(--spacing-md);
}

.empty-state.small {
    padding: var(--spacing-lg);
}

.empty-state.small i {
    font-size: 2rem;
}

/* ===== ACTIVITY LIST ===== */
.activity-list,
.completed-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--spacing-md) + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: calc(100% - var(--spacing-lg) * 2);
    max-width: 400px;
}

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

.toast {
    background: var(--text-color);
    color: var(--bg-color);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: slideUp var(--transition-normal);
}

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

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

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

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

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--spacing-md);
    animation: fadeIn var(--transition-fast);
}

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

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn var(--transition-normal);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-header h3 {
    margin-bottom: 0;
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

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

/* Logo Image */
.logo-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    margin-right: var(--spacing-sm);
    border-radius: 8px;
}

/* Activity Modal Custom Styles */
.activity-detail-header-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.activity-detail-header-custom .activity-icon.large {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.activity-detail-header-custom .activity-meta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.activity-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.activity-instructions {
    background: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.activity-instructions h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.activity-instructions ol {
    margin-left: var(--spacing-lg);
    margin-bottom: 0;
}

.activity-extra {
    margin-bottom: var(--spacing-md);
}

.activity-extra h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--text-color);
}

.activity-extra ul {
    margin-left: var(--spacing-lg);
    list-style-type: disc;
}

/* Share Options */
.share-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.share-options .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
}

.share-options .btn.whatsapp { color: #25D366; border-color: #25D366; }
.share-options .btn.whatsapp:hover { background-color: #25D366; color: white; }

.share-options .btn.facebook { color: #1877F2; border-color: #1877F2; }
.share-options .btn.facebook:hover { background-color: #1877F2; color: white; }

.share-options .btn.instagram { color: #E4405F; border-color: #E4405F; }
.share-options .btn.instagram:hover { background-color: #E4405F; color: white; }

/* Celebration Modal */
.celebration-modal {
    text-align: center;
    overflow: visible;
}

.celebration-content {
    padding: var(--spacing-xl);
}

.celebration-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    animation: pulse 2s infinite;
}

.celebration-icon i {
    font-size: 3rem;
    color: white;
}

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

.celebration-content h2 {
    margin-bottom: var(--spacing-sm);
}

.celebration-content p {
    margin-bottom: var(--spacing-lg);
}

.celebration-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

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

.celebration-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

/* ===== FOOTER ===== */
.app-footer {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.app-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.app-footer .b20-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-fast);
}

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

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

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .app-header,
    .bottom-nav,
    .app-footer {
        display: none;
    }
    
    body {
        padding: 0;
    }
    
    .section {
        display: block !important;
    }
}
