/* Design System Variables */
:root {
    /* Colors */
    --primary-color: #00A0DF;
    --primary-light: #7AD2F8;
    --primary-dark: #0078A8;
    --secondary-color: #F97316;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --background: #F8FAFC;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-heading: 24px;
    --font-size-subheading: 18px;
    --font-size-body: 16px;
    --font-size-caption: 14px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Layout */
    --spacing: 16px;
    --border-radius: 16px;
    --card-elevation: 1;
    --padding-horizontal: 24px;
    --section-spacing: 32px;
    
    /* Navigation */
    --nav-active-color: #00A0DF;
    --nav-inactive-color: #94A3B8;
    
    /* Components */
    --card-background: #FFFFFF;
    --card-border-radius: 16px;
    --card-padding: 20px;
    --card-shadow-color: #000000;
    --card-shadow-opacity: 0.04;
    
    /* Buttons */
    --btn-primary-bg: #00A0DF;
    --btn-primary-text: #FFFFFF;
    --btn-primary-border-radius: 999px;
    --btn-primary-padding-v: 12px;
    --btn-primary-padding-h: 24px;
    
    --btn-outline-bg: #FFFFFF;
    --btn-outline-border: #00A0DF;
    --btn-outline-text: #00A0DF;
    
    /* Badges */
    --badge-bg: #F1F5F9;
    --badge-border-radius: 12px;
    --badge-label-color: #1E293B;
    --badge-progress-color: #00A0DF;
    
    /* Header */
    --header-bg: #FFFFFF;
    --header-text-color: #1A1A1A;
    --header-font-size: 20px;
    --header-icon-color: #00A0DF;
    
    /* Tabs */
    --tab-active-bg: #E0F2FE;
    --tab-inactive-bg: #F8FAFC;
    --tab-text-color: #1A1A1A;
    --tab-highlight-color: #00A0DF;
    
    /* Chips */
    --chip-bg: #E0F2FE;
    --chip-text-color: #0369A1;
    --chip-border-radius: 999px;
    --chip-padding-h: 12px;
    --chip-padding-v: 6px;
    
    /* Transitions */
    --transition-duration: 0.25s;
    --transition-type: ease-in-out;
    --max-content-width: 960px;
    --bottom-nav-height: 72px;
}

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

/* Assessment screens are now controlled by JavaScript */

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Mobile viewport fix */
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    position: relative;
}

/* Screen Management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.screen.active {
    transform: translateX(0);
}

/* Splash Screen */
#splashScreen {
    background: #00A0DF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.splash-content {
    animation: fadeInUp 1s ease-out;
}

.logo {
    margin-bottom: 2rem;
}

.logo i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: pulse 1.5s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Auth Screens */
.auth-container {
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.auth-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0.25rem 0 1.25rem;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.remember-label input {
    width: 18px;
    height: 18px;
    accent-color: #00A0DF;
}

/* Enhanced input UX */
.input-with-icon .input-wrapper {
    position: relative;
}

.input-with-icon .input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

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

.input-suffix {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.input-suffix:hover {
    background: #f1f5f9;
}

.helper-text {
    margin: 8px 0 0 2px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Login form message states */
.helper-text.info {
  color: #3B82F6;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}

.helper-text.success {
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}

.helper-text.warning {
  color: #D97706;
  background: #FFFBEB;
  border: 1px solid #FED7AA;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}

.helper-text.error {
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}

/* Loading animation for buttons */
.btn-primary.loading,
.btn-secondary.loading {
  position: relative;
  color: transparent;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

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

.auth-links a {
    color: #00A0DF;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Back Button */
.back-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00A0DF;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background: rgba(0, 160, 223, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.back-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Main App */
#mainApp {
    background: #f8f9fa;
    /* Ensure full height on mobile */
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

.app-screen {
    display: none;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    overflow-y: auto;
    padding-bottom: 80px; /* Space for bottom nav */
}

.app-screen.active {
    display: block;
}

/* Header */
.header {
    background: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Fix header spacing for reading detail screen */
#readingDetailScreen .header {
    padding-bottom: 1.5rem;
}

#readingDetailScreen .header h1 {
    margin-left: 2.5rem; /* Add space for back button */
    flex: 1;
    text-align: center;
}

#readingDetailScreen .back-button {
    position: absolute;
    left: 1.5rem;
    z-index: 101;
}

/* Note Editor Screen Header */
#noteEditScreen .header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

#noteEditScreen .back-button {
    position: static;
    transform: none;
}

#noteEditScreen .back-button:hover,
#noteEditScreen .back-button:active {
    transform: none;
}

#noteEditScreen .header h1 {
    flex: 1;
    margin: 0;
    min-width: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

#noteEditScreen .header h1 span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#noteEditScreen .header .detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#noteEditScreen .header .detail-actions .btn-primary {
    white-space: nowrap;
}

@media (max-width: 768px) {
    #noteEditScreen .header {
        align-items: flex-start;
        gap: 0.75rem;
    }

    #noteEditScreen .header h1 {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    #noteEditScreen .header h1 span {
        white-space: normal;
        word-break: break-word;
    }

    #noteEditScreen .header .detail-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    #noteEditScreen .header .detail-actions .btn-primary {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
}

#noteEditScreen .content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding-bottom: calc(var(--bottom-nav-height) + 24px);
}

.note-editor-container {
    flex: 1;
    padding: 24px var(--padding-horizontal);
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.note-edit-actions {
    padding: 16px var(--padding-horizontal);
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: var(--bottom-nav-height);
}

@media (max-width: 768px) {
    #noteEditScreen .note-edit-actions {
        padding-bottom: 16px;
        margin-top: 16px;
    }
}

#noteEditScreen .header .detail-actions {
    position: absolute;
    right: 1.5rem;
    z-index: 101;
    display: flex;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #00A0DF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: #0090C9;
    transform: scale(1.05);
}

.user-avatar:active {
    transform: scale(0.95);
}

.streak-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Content */
.content {
    padding: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.card h3 {
    font-size: var(--font-size-subheading);
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Bible Reading */
.reading-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.reading-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-duration) var(--transition-type);
    cursor: pointer;
}

.reading-section:hover {
    background: var(--tab-active-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reading-section:active {
    transform: translateY(0);
}

.reading-section.completed {
    background: #f0fff4;
    border-color: var(--success-color);
}

.reading-section.saving {
    background: #fff3cd;
    border-color: #ffc107;
}

.reading-section.saving button {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.reading-section.saving .section-status {
    color: #ffc107 !important;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h4 {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

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

.section-status {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all var(--transition-duration) var(--transition-type);
}

.section-status.completed {
    background: var(--success-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(81, 207, 102, 0.3);
    transition: all 0.3s ease;
}

.section-status.completed i {
    transform: none;
    color: white;
    font-weight: bold;
}

.btn-small {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-small:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.btn-small.completed {
    background: #51cf66;
    border-color: #51cf66;
    color: white;
}

.reading-content h5 {
    color: #00A0DF;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.reading-content p {
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.reading-content p:last-child {
    margin-bottom: 0;
}

.verse-reference {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

.daily-completion {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e1e5e9;
}

.completion-progress {
    margin-bottom: 1rem;
}

.completion-bar {
    background: #e1e5e9;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.completion-fill {
    background: linear-gradient(90deg, #51cf66, #40c057);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.completion-progress span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.bible-reading h4 {
    color: #00A0DF;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bible-reading p {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Next Step */
.next-step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Desktop: Center homepage sections */
@media (min-width: 768px) {
    /* Center section titles */
    .card h3 {
        text-align: center;
    }
    
    /* Center the streak button */
    .progress-header {
        align-items: center;
    }
    
    .progress-header .streak {
        justify-content: center;
    }
    
    .progress-header .streak .start-streak-btn {
        display: block;
        margin: 0 auto;
    }
    
    /* Center the Next Step section */
    .next-step {
        justify-content: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Center and size the Bible Reading button */
    .bible-button-container {
        display: flex;
        justify-content: center;
    }
    
    .bible-button {
        width: 100%;
        max-width: 400px;
    }
    
    /* Center the Bible Reading date */
    .reading-date {
        justify-content: center;
    }
    
    /* Center quick actions buttons */
    .quick-actions {
        align-items: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .quick-action-btn {
        max-width: 400px;
    }
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.step-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Progress Header */
.progress-header {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Progress Section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



.streak {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b6b;
    font-weight: 600;
}

.start-streak-btn {
    display: block;
    margin: 0 auto;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
    text-align: center;
}

/* Bible Screen */
.reading-plan {
    margin-bottom: 2rem;
}

.plan-progress {
    margin-top: 1rem;
}

.progress-bar {
    background: #e1e5e9;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: #00A0DF;
    height: 100%;
    border-radius: 10px;
}

.daily-reading h4 {
    color: #00A0DF;
    margin-bottom: 1rem;
    font-weight: 600;
}

.scripture-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.scripture-text p {
    margin-bottom: 1rem;
    color: #333;
}

.scripture-text p:last-child {
    margin-bottom: 0;
}

/* Make section headers (s1 class) bold */
.scripture-text .s1 {
    font-weight: var(--font-weight-bold);
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Make verse numbers smaller and more subtle */
.scripture-text .v {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-right: 4px;
}

/* Poetry formatting for Psalms and Proverbs */
.scripture-text .q1,
.scripture-text .q2 {
    margin-left: 20px;
    margin-bottom: 8px;
    font-style: italic;
}

.scripture-text .q1 {
    margin-top: 12px;
}

.scripture-text .q2 {
    margin-bottom: 16px;
}

/* Special formatting for quotes and poetic text */
.scripture-text .m {
    margin-bottom: 12px;
}

/* Proper spacing for Psalms and Proverbs paragraphs */
.scripture-text .p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Indent for poetic sections */
.scripture-text .pm {
    margin-left: 10px;
    margin-bottom: 12px;
}

.scripture-text .pmo {
    margin-left: 20px;
    margin-bottom: 8px;
    font-style: italic;
}

/* Next Steps */
.ministry-connect-banner {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #00A0DF, #0077b6);
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.25);
}

.ministry-connect-banner .banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ministry-connect-banner .banner-copy h3 {
    margin: 0;
    font-size: 1.25rem;
}

.ministry-connect-banner .banner-copy p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.ministry-connect-banner .btn-primary {
    width: 100%;
    background: #fff;
    color: #0077b6;
}

.tier-section {
    margin-bottom: 2rem;
}

.tier-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: white;
}

.tier-title.tier-1 {
    background: linear-gradient(135deg, #00A0DF, #0090C9);
}

.tier-title.tier-2 {
    background: linear-gradient(135deg, #00A0DF, #0090C9);
}

.tier-title.tier-3 {
    background: linear-gradient(135deg, #00A0DF, #0090C9);
}

.tier-title i {
    font-size: 1rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
}

.step-item.completed {
    border-color: #51cf66;
    background: #f8fff9;
}

.step-item.active {
    border-color: #00A0DF;
    background: #f8f9ff;
}

.step-item .step-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.step-item.completed .step-icon {
    background: #51cf66;
}

.step-item.active .step-icon {
    background: #00A0DF;
}

.step-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #51cf66;
    font-weight: 600;
    margin-top: 0.5rem;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.step-actions .step-status {
    margin-top: 0;
}

.step-actions .btn-primary,
.step-actions .btn-secondary,
.step-actions .btn-link {
    width: auto;
    min-width: 120px;
    flex: 0 0 auto;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: 2px solid #00A0DF;
    border-radius: 12px;
    background: #ffffff;
    color: #00A0DF;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-link:hover {
    background: #E0F2FE;
    color: #0077b6;
}

.btn-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 160, 223, 0.2);
}

/* Profile */
.profile-card {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #00A0DF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
    position: relative;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00A0DF;
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.edit-avatar-btn:hover {
    background: #0088C0;
    transform: scale(1.05);
}

.edit-avatar-btn:active {
    transform: scale(0.95);
}

.profile-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.profile-card p {
    color: #666;
}

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

.stat-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #00A0DF;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Desktop: Make profile action buttons 50% width and centered */
@media (min-width: 768px) {
    .profile-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profile-actions button {
        width: 50%;
        max-width: 50vw;
    }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-planning-center, .btn-success {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 160, 223, 0.4);
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--tab-active-bg);
}

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

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background: #ff5252;
}

.btn-planning-center {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.btn-planning-center:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.btn-success {
    background: var(--success-color);
    border: 2px solid var(--success-color);
    color: white;
    cursor: default;
}

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

/* Highlight effect for buttons */
.btn-secondary.highlight {
    animation: pulse 2s infinite;
    border: 2px solid var(--warning-color);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

.btn-secondary.highlight:hover {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
}

/* Login page button spacing */
.form-actions .btn-primary {
    margin-bottom: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.planning-center-info {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.planning-center-info p {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.planning-center-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.planning-center-info li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.planning-center-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    padding: 0.5rem 0;
    z-index: 9999;
    /* Force visibility on mobile */
    min-height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-type);
    color: var(--nav-inactive-color);
}

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

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

.nav-item span {
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-medium);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 480px) {
    /* Mobile Typography - Smaller font sizes for better readability */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Headers */
    .header h1, .auth-header h1, .card h3, .step-content h4, .reading-content h5, .event-content h4 {
        font-size: 18px !important;
        line-height: 1.4;
    }
    
    /* Subheadings */
    .auth-header p, .step-content p, .event-description, .event-time, .event-location {
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    /* Body text */
    .reading-content p, .event-description, .step-content p {
        font-size: 14px !important;
        line-height: 1.5;
    }
    
    /* Small text */
    .reading-date, .reading-content .verse-reference, .completion-progress span, .plan-progress span {
        font-size: 12px !important;
        line-height: 1.4;
    }
    
    /* Stats and labels */
    .stat-number, .stat-label, .profile-card h3, .profile-card p {
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    /* Navigation text */
    .nav-item span {
        font-size: 11px !important;
        line-height: 1.3;
    }
    
    /* Button text */
    .btn-primary, .btn-secondary, .btn-danger, .btn-planning-center, .btn-success {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
    
    /* Small buttons */
    .btn-small {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    /* Event dates */
    .date-day {
        font-size: 16px !important;
    }
    
    .date-month {
        font-size: 12px !important;
    }
    
    /* Steps page specific adjustments */
    .tier-title {
        font-size: 16px !important;
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .tier-title i {
        font-size: 14px !important;
    }
    
    .step-item {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .step-item .step-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .step-status {
        font-size: 12px !important;
        margin-top: 0.25rem !important;
    }
    
    .steps-list {
        gap: 0.75rem !important;
    }
    
    /* Auth container */
    .auth-container {
        padding: 1.5rem;
    }
    
    .content {
        padding: 1rem;
        /* Add bottom padding to account for fixed navigation */
        padding-bottom: calc(1rem + 80px);
    }
    
    .card {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ensure bottom navigation is always visible on mobile */
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--card-bg) !important;
        border-top: 1px solid var(--border-color) !important;
        display: flex !important;
        padding: 0.5rem 0 !important;
        z-index: 9999 !important;
        min-height: 60px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        /* Force visibility */
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Add bottom margin to main app to prevent content from being hidden */
    #mainApp {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
        /* Force full height on mobile */
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
    }
    
    /* Ensure app screens use full viewport height */
    .app-screen {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }
}

/* iOS-specific styles */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    .app-screen {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Force bottom navigation visibility on iOS */
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--card-bg) !important;
        border-top: 1px solid var(--border-color) !important;
        display: flex !important;
        padding: 0.5rem 0 !important;
        z-index: 9999 !important;
        min-height: 60px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        /* Force visibility */
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        /* iOS specific */
        -webkit-transform: none !important;
        -webkit-backface-visibility: visible !important;
    }
}


/* Reading Detail Screen */
.reading-detail-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    line-height: 1.8;
    margin-top: 2rem;
}

.reading-detail-content .verse-reference-header {
    background: linear-gradient(135deg, #00A0DF, #0090C9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.reading-detail-content h2 {
    color: #00A0DF;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-align: center;
}

.reading-detail-content h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    margin-top: 1rem;
    text-align: center;
}

.reading-detail-content p {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.reading-detail-content .scripture-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    margin-top: 1rem;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#readingDetailScreen .header {
    padding-bottom: 1.5rem;
}


/* Assessment Styles */
.assessment-container {
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.assessment-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
    position: relative;
}

.assessment-header .back-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    flex-shrink: 0;
}

.assessment-header .header-content {
    flex: 1;
    text-align: center;
    padding-left: 2rem; /* Add space for the back button */
    padding-right: 2rem; /* Balance the padding */
    width: 95%;
    margin: 5%;
}

.assessment-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.assessment-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.assessment-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.assessment-progress {
    margin-bottom: 2rem;
}

.assessment-progress .progress-bar {
    background: #e1e5e9;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.assessment-progress .progress-fill {
    background: #00A0DF;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.assessment-progress span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.assessment-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.assessment-question {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.assessment-question.active {
    display: block;
}

.assessment-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.assessment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assessment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
}

.assessment-option:hover {
    border-color: var(--primary-color);
    background: var(--tab-active-bg);
}

.assessment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.assessment-option input[type="radio"]:checked + .option-text {
    color: var(--primary-color);
    font-weight: 600;
}

.assessment-option input[type="radio"]:checked ~ .assessment-option {
    border-color: var(--primary-color);
    background: var(--tab-active-bg);
}

.option-text {
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.assessment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: env(safe-area-inset-bottom, 1rem);
}

.assessment-actions .btn-secondary,
.assessment-actions .btn-primary {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Mobile-specific assessment styles */
@media (max-width: 480px) {
    .assessment-container {
        padding: 0.75rem;
        height: 100dvh;
        overflow-y: auto;
    }
    
    .assessment-header {
        margin-bottom: 1rem;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .assessment-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }
    
    .assessment-header p {
        font-size: 0.9rem;
    }
    
    .assessment-progress {
        margin-bottom: 1rem;
    }
    
    .assessment-question h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .assessment-option {
        padding: 0.75rem;
        min-height: 50px;
        margin-bottom: 0.4rem;
        border-radius: 8px;
    }
    
    .option-text {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .assessment-actions {
        position: sticky;
        bottom: 0;
        background: var(--bg-color);
        padding: 0.75rem;
        margin: 0 -0.75rem;
        border-top: 1px solid var(--border-color);
        margin-bottom: env(safe-area-inset-bottom, 0);
        margin-top: 1rem;
    }
    
    .assessment-actions .btn-secondary,
    .assessment-actions .btn-primary {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
}

.assessment-date-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.assessment-date-input input[type="date"] {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.assessment-date-input input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 160, 223, 0.1);
}

.date-help-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Results Splash Screen Styles */
.results-container {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.results-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.results-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

.result-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00A0DF, #0090C9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.result-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.result-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.result-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.recommendations {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.recommendations li {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.encouragement {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.results-cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.results-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 160, 223, 0.3);
}

.team-signature {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2rem;
    line-height: 1.4;
}

.results-actions {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.results-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}


/* Welcome Quiz Screen */
.quiz-container {
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.quiz-header p {
    color: #666;
    font-size: 1.1rem;
}

.quiz-progress {
    margin-bottom: 2rem;
}

.quiz-progress .progress-bar {
    background: #e1e5e9;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.quiz-progress .progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.quiz-progress span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.quiz-content {
    flex: 1;
    margin-bottom: 2rem;
}

.quiz-question h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    color: #333;
}

.quiz-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.quiz-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #fff);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.quiz-option i {
    color: #667eea;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.quiz-option span {
    font-weight: 500;
}

.quiz-actions {
    display: flex;
    gap: 1rem;
}

.quiz-actions .btn-secondary,
.quiz-actions .btn-primary {
    flex: 1;
}


/* Events Screen */
.events-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #00A0DF;
    border-color: #00A0DF;
    color: white;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #00A0DF;
    color: #00A0DF;
}

.filter-btn.active:hover {
    background: #0090C9;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.event-item.featured {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem;
    background: linear-gradient(135deg, #00A0DF, #0090C9);
    border-radius: 12px;
    color: white;
    text-align: center;
    flex-shrink: 0;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.event-content {
    flex: 1;
}

.event-badge {
    display: inline-block;
    background: #00A0DF;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.event-time i, .event-location i {
    color: #00A0DF;
    width: 16px;
}

.event-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.75rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.event-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.event-actions .btn-primary,
.event-actions .btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}


/* Bible Button Styles */
.bible-button-container {
    text-align: center;
    padding: 1rem 0;
}

.bible-button {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #00A0DF;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all var(--transition-duration) var(--transition-type);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bible-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.bible-button:active {
    transform: translateY(0);
}

/* Quick Actions Styles */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.quick-action-btn {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all var(--transition-duration) var(--transition-type);
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    background: var(--tab-active-bg);
    color: var(--primary-color);
    transform: translateY(-1px);
}

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


/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: var(--primary-color, #00A0DF);
}

.loading-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.loading-content p {
    font-size: 1rem;
    margin: 0;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--primary-color, #00A0DF);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--error-color, #dc3545);
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.error-message button {
    margin-top: 1rem;
}

/* Bible Version Badge */
.bible-version {
    display: inline-block;
    background: var(--secondary-color, #6c757d);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* Devotional Content */
.devotional-content {
    line-height: 1.6;
    margin-top: 1rem;
}

.devotional-content p {
    margin-bottom: 1rem;
}


.event-actions .btn-primary,
.event-actions .btn-secondary {
    margin-right: 8px;
    margin-bottom: 8px;
}

/* No events state */
.no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

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

.no-events h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.no-events p {
    font-size: 14px;
}

/* Disabled button state */
.btn-secondary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary.disabled:hover {
    background-color: var(--btn-outline-bg);
    color: var(--btn-outline-text);
} 

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
}

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

.modal-header h3 {
    font-size: var(--font-size-subheading);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-duration) var(--transition-type);
}

.modal-close:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 0 24px 20px 24px;
}

.modal-body p {
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.6;
}

.modal-body ul {
    margin: 16px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.5;
}

.modal-body li::before {
    content: "";
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--background);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    flex: 1;
    justify-content: center;
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 16px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 16px 20px 0 20px;
    }
    
    .modal-body {
        padding: 0 20px 16px 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        width: 100%;
    }
}


/* Notes Screen Styles */
.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    min-height: 300px;
}

.loading-state p, .empty-state p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-body);
}

.empty-state h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: var(--font-size-subheading);
}

.notes-list {
    padding: 0;
}

.notes-date-group {
    margin-bottom: 32px;
}

.notes-date-header {
    font-size: var(--font-size-subheading);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 0 var(--padding-horizontal);
}

.notes-date-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    margin: 0 var(--padding-horizontal);
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-type);
}

.note-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.note-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.note-item-header h4 {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    flex: 1;
    margin: 0;
}

.note-time {
    font-size: var(--font-size-caption);
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 12px;
}

.note-preview {
    font-size: var(--font-size-caption);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition-duration) var(--transition-type);
}

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

/* Note Editor Screen Styles */
#noteEditScreen .content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.note-edit-meta {
    padding: 16px var(--padding-horizontal);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.note-meta-info {
    color: var(--text-secondary);
    font-size: var(--font-size-caption);
}

.note-meta-info p {
    margin: 0;
}

.note-meta-info i {
    margin-right: 6px;
}

.note-editor-container {
    flex: 1;
    padding: 24px var(--padding-horizontal);
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

#quill-editor {
    background: var(--card-bg);
    min-height: 300px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#quill-editor .ql-editor {
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 300px;
}

#quill-editor .ql-toolbar {
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: var(--background);
}

#quill-editor .ql-container {
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background: var(--card-bg);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#quill-editor .ql-container .ql-editor {
    flex: 1;
    overflow-y: auto;
}

.note-edit-actions {
    padding: 16px var(--padding-horizontal);
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: var(--bottom-nav-height);
}

.note-save-status {
    font-size: var(--font-size-caption);
    color: var(--text-secondary);
}

.note-save-status.saved {
    color: var(--success-color);
}

.note-save-status.error {
    color: var(--error-color);
}

@media (max-width: 768px) {
    .notes-date-header {
        font-size: var(--font-size-body);
    }
    
    .note-item {
        padding: 12px;
    }
    
    .note-item-header h4 {
        font-size: var(--font-size-caption);
    }
    
    .note-editor-container {
        padding: 16px;
        min-height: 300px;
    }
    
    #quill-editor .ql-editor {
        min-height: 250px;
    }
    
    .note-edit-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}