/**
 * Dízimos e Ofertas - Styles
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors - Prosperity Green */
    --primary-color: #10B981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    --primary-dark: #047857;
    
    /* Secondary Colors - Gold */
    --secondary-color: #F59E0B;
    --secondary-hover: #D97706;
    --secondary-light: rgba(245, 158, 11, 0.1);
    
    /* Accent */
    --accent-color: #10B981;
    
    /* Neutrals - Light Mode */
    --bg-color: #F9FAFB;
    --surface-color: #FFFFFF;
    --surface-elevated: #FFFFFF;
    --border-color: #E5E7EB;
    --text-color: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    
    /* Semantic Colors */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --info-color: #3B82F6;
    
    /* Category Colors */
    --cat-missions: #8B5CF6;
    --cat-construction: #F97316;
    --cat-campaigns: #EC4899;
    --cat-social: #EF4444;
    --cat-gratitude: #10B981;
    --cat-special: #F59E0B;
    --cat-other: #6B7280;
    
    /* 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: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-numbers: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 500;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-toast: 1100;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #0F172A;
    --surface-color: #1E293B;
    --surface-elevated: #334155;
    --border-color: #334155;
    --text-color: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Safe Areas */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: calc(60px + env(safe-area-inset-top));
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

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

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

p {
    color: var(--text-secondary);
}

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

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

/* ===== HEADER ===== */
.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 var(--spacing-md);
    box-shadow: var(--shadow-md);
    z-index: var(--z-fixed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@supports (padding: env(safe-area-inset-top)) {
    .app-header {
        padding-top: env(safe-area-inset-top);
        height: calc(60px + env(safe-area-inset-top));
    }
}

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

.header-logo-img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.header-logo h1 {
    font-size: 1.125rem;
    font-weight: 600;
    white-space: nowrap;
}

.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;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        font-size: 0.875rem;
        font-weight: 500;
        transition: all var(--transition-fast);
    }
    
    .desktop-nav .nav-link:hover {
        background: var(--primary-light);
        color: var(--primary-color);
    }
    
    .desktop-nav .nav-link.active {
        background: var(--primary-color);
        color: white;
    }
    
    .desktop-nav .nav-link i {
        font-size: 1rem;
    }
}

/* ===== BOTTOM NAVIGATION ===== */
.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: var(--z-fixed);
}

@supports (padding: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(65px + env(safe-area-inset-bottom));
    }
}

.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);
    font-size: 0.625rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    min-width: 64px;
    min-height: 48px;
}

.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.1);
}

.nav-item-fab {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: -28px;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    padding: 0;
    min-width: auto;
}

.nav-item-fab i {
    font-size: 1.5rem;
}

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

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

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 140px);
}

.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);
    }
}

.container {
    max-width: 100%;
    padding: var(--spacing-md);
}

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

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

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
}

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

/* ===== CARDS ===== */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

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

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

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

.card-header .card-title {
    margin-bottom: 0;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

/* ===== VERSE CARD ===== */
.verse-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.verse-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 8rem;
    opacity: 0.1;
    font-family: Georgia, serif;
}

.verse-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.verse-text {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.verse-reference {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.verse-refresh {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: white;
    opacity: 0.7;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.verse-refresh:hover {
    opacity: 1;
    transform: rotate(180deg);
}

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

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

.stat-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.stat-card.stat-primary { border-left-color: var(--primary-color); }
.stat-card.stat-secondary { border-left-color: var(--secondary-color); }
.stat-card.stat-accent { border-left-color: var(--info-color); }
.stat-card.stat-gold { border-left-color: var(--secondary-color); }

.stat-icon {
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-family: var(--font-numbers);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ===== CALCULATOR CARD ===== */
.calculator-card {
    background: linear-gradient(135deg, var(--surface-color), var(--primary-light));
    border: 2px solid var(--primary-light);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.tithe-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

.tithe-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.tithe-value {
    font-family: var(--font-numbers);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== FORMS ===== */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row.two-cols {
    flex-direction: row;
}

.form-row.two-cols .input-group {
    flex: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: var(--spacing-md);
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 48px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="email"],
input[type="password"],
textarea,
.select-input {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

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

input::placeholder {
    color: var(--text-muted);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}

.select-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.tithe-preview {
    padding: var(--spacing-md);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border: 2px dashed var(--primary-color);
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-value {
    font-family: var(--font-numbers);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-actions {
    margin-top: var(--spacing-sm);
}

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

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

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

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

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

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

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

.btn-block {
    width: 100%;
}

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

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

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

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ===== TOGGLE SWITCH ===== */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-color);
}

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

.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-color: 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-color: white;
    border-radius: 50%;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

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

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

/* ===== LISTS ===== */
.transactions-list,
.tithes-list,
.offerings-list,
.history-list,
.goals-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.transaction-item,
.tithe-item,
.offering-item,
.history-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.transaction-item:hover,
.tithe-item:hover,
.offering-item:hover,
.history-item:hover {
    background: var(--primary-light);
}

.item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.item-icon.tithe {
    background: var(--primary-light);
}

.item-icon.offering {
    background: var(--secondary-light);
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.item-value {
    font-family: var(--font-numbers);
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.item-value.offering {
    color: var(--secondary-color);
}

.item-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.item-actions .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
}

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

.empty-state h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.empty-state p {
    font-size: 0.875rem;
}

/* ===== LIST SUMMARY ===== */
.list-summary {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-value {
    font-family: var(--font-numbers);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== GOALS ===== */
.goal-card {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.goal-info {
    flex: 1;
}

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

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

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

.goal-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.goal-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.goal-stats .current {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== CHARTS ===== */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}

.chart-container.chart-small {
    height: 200px;
}

.category-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* ===== REPORTS ===== */
.period-selector {
    display: flex;
    gap: var(--spacing-xs);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
    -webkit-overflow-scrolling: touch;
}

.period-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

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

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

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.summary-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.summary-card.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.summary-card.highlight .summary-label,
.summary-card.highlight .summary-value {
    color: white;
}

.summary-card .summary-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.summary-card .summary-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .summary-value {
    font-family: var(--font-numbers);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .summary-card .summary-label {
        font-size: 0.75rem;
    }
    
    .summary-card .summary-value {
        font-size: 1.25rem;
    }
}

.history-filters {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.history-filters .filter-group {
    flex: 1;
    min-width: 140px;
}

/* ===== SETTINGS ===== */
.settings-list {
    display: flex;
    flex-direction: column;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    gap: var(--spacing-md);
}

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

.setting-item.danger .setting-label {
    color: var(--error-color);
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

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

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

/* ===== 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: transparent;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast);
}

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

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

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

.faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.faq-answer[hidden] {
    display: none;
}

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

.about-content .tagline {
    font-style: italic;
    color: var(--primary-color);
    margin-top: var(--spacing-sm);
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--spacing-md);
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlideIn var(--transition-normal);
}

.modal-content.modal-sm {
    max-width: 360px;
}

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

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

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

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

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

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

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

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
}

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

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--text-color);
    color: var(--bg-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn var(--transition-normal);
    pointer-events: auto;
}

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

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

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

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

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

/* ===== PRIVACY MODE ===== */
[data-privacy="true"] .privacy-content {
    filter: blur(8px);
    user-select: none;
}

/* ===== FOOTER ===== */
.app-footer {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 80px;
}

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

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

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

/* ===== REMINDER SETTINGS ===== */
.reminder-settings {
    display: flex;
    flex-direction: column;
}

.reminder-day-group {
    padding-top: var(--spacing-md);
}

/* ===== FILTER GROUP ===== */
.filter-group {
    min-width: 120px;
}

.filter-group .select-input {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
}

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

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

.hidden {
    display: none !important;
}

/* ===== PRINT STYLES ===== */
@media print {
    .app-header,
    .bottom-nav,
    .app-footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    body {
        padding: 0;
        background: white;
    }
    
    .section {
        display: block !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
