/**
 * Bíblia Interativa - Styles
 * Desenvolvido por B20 Conteúdo Digital
 * https://www.b20.com.br
 */

/* === CSS VARIABLES === */
:root {
    /* Paleta Principal - Design Spec */
    --primary-color: #2563EB;
    /* Azul conhecimento */
    --secondary-color: #10B981;
    /* Verde crescimento */
    --accent-color: #F59E0B;
    /* Amber para destaques */
    --error-color: #EF4444;
    /* Vermelho erro */
    --surface-color: #ffffff;
    --text-color: #1F2937;
    /* Cinza escuro para texto principal */

    /* Leitura Spec */
    --bg-creme: #F8FAFC;
    /* Cinza gelo moderno */

    /* Variações */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --bg-color: #F8FAFC;
    /* Aplicando cinza gelo como base no light mode */
    --bg-surface-alt: #ffffff;
    /* Alternativa para cartões no creme */

    --text-muted: #6B7280;
    --text-secondary: #4B5563;
    --border-color: #e2e8f0;

    /* Shadows - Notion style (subtle) */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);

    /* Layout */
    --border-radius: 12px;
    /* Modern rounded */
    --spacing-unit: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 64px;
    --bottom-nav-height: 65px;

    /* Typography */
    --font-family-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-reading: 'Merriweather', Georgia, serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0F172A;
        /* Slate 900 for modern dark */
        --surface-color: #1E293B;
        /* Slate 800 */
        --text-color: #F8FAFC;
        --text-secondary: #94A3B8;
        --border-color: #334155;
        --primary-light: #1e3a8a;
        --bg-creme: #0F172A;
    }
}

[data-theme="light"] {
    --bg-color: #F8FAFC;
    --surface-color: #ffffff;
    --text-color: #1E293B;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --primary-light: #eff6ff;
}

[data-theme="dark"] {
    --bg-color: #111827;
    --surface-color: #1F2937;
    --text-color: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #374151;
    --primary-light: #1e3a8a;
    --bg-creme: #111827;
}

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

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

body {
    font-family: var(--font-family-ui);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: calc(var(--header-height) + env(safe-area-inset-top));
    padding-bottom: var(--bottom-nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* === HEADER === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--header-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow-light);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-wrap: nowrap;
    /* Prevent items from wrapping */
}

.header-logo h1 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    /* Prevent logo text break */
}

.app-logo {
    height: 32px;
    width: auto;
}

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

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 4px;
        /* Menor gap para economizar espaço */
    }

    .desktop-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        /* Centralizar ícone quando sem texto */
        gap: 6px;
        padding: 8px 12px;
        /* Padding reduzido */
        border-radius: var(--border-radius);
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        white-space: nowrap;
    }

    .desktop-nav .nav-text {
        display: none;
        /* Ocultar texto por padrão em telas médias */
    }

    .desktop-nav .nav-link i {
        font-size: 1.1rem;
        /* Ícone levemente maior para compensar */
    }

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

/* Exibir texto apenas em telas maiores */
@media (min-width: 1100px) {
    .desktop-nav {
        gap: 8px;
    }

    .desktop-nav .nav-link {
        padding: 8px 16px;
    }

    .desktop-nav .nav-text {
        display: inline;
    }
}

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

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 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: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-xs);
    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.1);
}

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

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

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

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

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

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

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

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

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

/* === FORMS === */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    /* Prevent zoom on iOS */
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

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

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

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

.search-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-input-group .form-input {
    flex: 1;
}

.search-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-filters .form-select {
    flex: 1;
    min-width: 150px;
}

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

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

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

.main-content {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

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

/* === SECTIONS === */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* === HOME SECTION === */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
    /* Mais espaço no topo */
    margin-bottom: 40px;
}

.hero-logo {
    width: 170px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.app-title-hero {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}



.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.quick-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

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

.stat-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.quick-links-section {
    margin-top: 2rem;
}

.quick-links-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-color, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100px;
}

.quick-link-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light-alt, #eff6ff);
    transform: translateY(-4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.quick-link-card .book-abbr {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.quick-link-card .book-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* === BIBLE SECTION === */
.bible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.bible-navigation {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bible-navigation .form-select {
    min-width: 120px;
}

.bible-actions {
    display: flex;
    gap: 8px;
}

.chapter-title {
    font-family: var(--font-family-reading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
}

.verses-container {
    font-family: var(--font-family-reading);
    line-height: 1.8;
    margin-bottom: 32px;
}

.verse {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

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

.verse-number {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 8px;
    font-size: var(--font-size-sm);
    vertical-align: super;
}

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

.verse.highlighted {
    background: var(--accent-color);
    color: #000;
}

.bible-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* === SEARCH SECTION === */
.search-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-color);
}

.search-results {
    margin-top: 24px;
}

.search-result {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.search-result:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.search-result-reference {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.search-result-text {
    font-family: var(--font-family-reading);
    line-height: 1.6;
    color: var(--text-color);
}

.search-highlight {
    background: var(--accent-color);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* === NOTES SECTION === */
.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.notes-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-color);
}

.notes-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.notes-filters .form-input,
.notes-filters .form-select {
    flex: 1;
    min-width: 200px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.note-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

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

.note-card.favorite::before {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--accent-color);
    font-size: 16px;
}

.note-reference {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
}

.note-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.note-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.note-actions {
    display: flex;
    gap: 8px;
}

.note-actions .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* === COMPARE SECTION === */
.compare-header {
    margin-bottom: 24px;
}

.compare-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.compare-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.compare-container {
    margin-top: 24px;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.compare-translation {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.compare-translation h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-align: center;
}

.compare-verse {
    font-family: var(--font-family-reading);
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-color);
}

/* === MODAL === */
.modal {
    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: 2000;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-content {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: modal-fade-in 0.3s ease;
}

/* === VERSE MODAL === */
.verse-modal-content {
    max-width: 600px;
    padding: 0;
    overflow: visible;
}

.close-verse-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: transparent;
    color: var(--text-muted);
}

.verse-modal-body {
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.verse-decoration {
    font-size: 2rem;
    color: var(--primary-light);
    display: block;
    margin-bottom: 16px;
}

.featured-verse-text {
    font-family: var(--font-family-reading);
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 24px;
    font-style: italic;
}

.featured-verse-ref {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verse-modal-actions {
    background: var(--surface-color);
    padding: 20px 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

@media (max-width: 480px) {
    .verse-modal-actions {
        flex-direction: column;
    }

    .featured-verse-text {
        font-size: 1.25rem;
    }
}

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

.modal-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 2px solid var(--border-color);
}

/* === SHARE MODAL === */
.share-modal-body {
    text-align: center;
    padding: 30px;
}

.share-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

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

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.share-btn i {
    font-size: 2rem;
    transition: transform 0.2s ease;
}

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

.share-btn:hover i {
    transform: scale(1.1);
}

/* WhatsApp */
.share-btn.whatsapp {
    background: #DCFCE7;
    /* Green 100 */
    color: #166534;
    /* Green 800 */
}

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

/* Facebook */
.share-btn.facebook {
    background: #DBEAFE;
    /* Blue 100 */
    color: #1E40AF;
    /* Blue 800 */
}

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

/* Twitter/X */
.share-btn.twitter {
    background: #F3F4F6;
    /* Gray 100 */
    color: #1F2937;
    /* Gray 800 */
}

.share-btn.twitter:hover {
    background: #000000;
    color: white;
}

/* Copy Link */
.share-btn.copy {
    background: #FEF3C7;
    /* Amber 100 */
    color: #92400E;
    /* Amber 800 */
}

.share-btn.copy:hover {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 480px) {
    .share-grid {
        grid-template-columns: 1fr;
        /* Stack buttons vertically on mobile */
    }

    .share-btn {
        flex-direction: row;
        /* Horizontal layout for stacked buttons */
        justify-content: flex-start;
        padding: 16px 24px;
        gap: 16px;
    }

    .share-btn i {
        font-size: 1.5rem;
    }
}

/* === CHECKBOX === */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* === TOAST === */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
}

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

.toast {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    max-width: 300px;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

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

.empty-state p {
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-state small {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

/* === LOADING SKELETON === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius);
    height: 20px;
    margin-bottom: 8px;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }

    .bible-header {
        flex-direction: column;
        align-items: stretch;
    }

    .bible-navigation {
        justify-content: center;
    }

    .bible-footer {
        flex-direction: column;
    }

    .search-filters {
        flex-direction: column;
    }

    .notes-header {
        flex-direction: column;
        align-items: stretch;
    }

    .notes-filters {
        flex-direction: column;
    }

    .compare-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

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

.app-footer p {
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
}

.app-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.app-footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.b20-link {
    color: var(--accent-color) !important;
}