/* Catholic Daily Dozen Tracker - Modern, Respectful Design */

:root {
    /* New color palette from icon */
    --mine-shaft: #373434;
    --mule-fawn: #95412c;
    --tacha: #d6b96c;
    --copper: #b9803c;
    --aths-special: #eae3ca;
    --indian-khaki: #c2b996;
    --granny-smith: #7b959a;
    --pale-leaf: #bbd1b0;
    --zorba: #a99b8f;
    --fern-green: #548444;
    
    /* Mapped colors for consistency */
    --primary-color: var(--fern-green);
    --primary-light: var(--pale-leaf);
    --primary-dark: var(--mine-shaft);
    --secondary-color: var(--tacha);
    --accent-color: var(--granny-smith);
    --text-primary: var(--mine-shaft);
    --text-secondary: var(--zorba);
    --background: var(--aths-special);
    --surface: #FFFFFF;
    --border: var(--indian-khaki);
    --success: var(--fern-green);
    --warning: var(--mule-fawn);
    --error: #d32f2f;
    --shadow: 0 2px 8px rgba(55, 52, 52, 0.1);
    --shadow-hover: 0 4px 16px rgba(55, 52, 52, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--surface);
    box-shadow: var(--shadow);
}

/* Header Styles */
.app-header {
    background: var(--fern-green);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}



.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.header-icon:hover {
    transform: scale(1.05);
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.date-display {
    background: var(--surface);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.profile-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.profile-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.profile-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-icon {
    font-size: 1.2rem;
}

.profile-name {
    font-size: 1rem;
}

.edit-profile-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.edit-profile-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.profile-update-confirmation {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.confirmation-content {
    background: var(--success);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.diet-selector-section {
    background: var(--background);
    border-top: 2px solid var(--border);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.diet-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.diet-selector label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.diet-selector select {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.diet-selector select:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.diet-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(84, 132, 68, 0.1);
}

.diet-selector select option {
    background: var(--surface);
    color: var(--text-primary);
}

/* Header Install Button */
.install-section {
    margin-top: 1rem;
}

.header-install-btn {
    background: linear-gradient(135deg, var(--fern-green), var(--tacha));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

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

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

/* Main Content */
.main-content {
    padding: 2rem 1.5rem;
}

/* Progress Section */
.progress-section {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--granny-smith), var(--pale-leaf));
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
}

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

.reset-section {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.reset-btn {
    background: linear-gradient(135deg, var(--mule-fawn), var(--copper));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--copper), var(--mule-fawn));
}

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

.reset-confirmation {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.confirmation-content {
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Categories Container */
.categories-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

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

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

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

.category-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0;
}

.category-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}



.servings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.serving-checkbox {
    display: none;
}

.serving-label {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    color: var(--text-primary);
}

.serving-label:hover {
    background: var(--granny-smith);
    color: white;
    border-color: var(--granny-smith);
}

.serving-checkbox:checked + .serving-label {
    background: var(--success);
    color: white;
    border-color: var(--success);
    transform: scale(1.05);
}

.serving-checkbox:not(:checked) + .serving-label {
    background: var(--background);
    color: var(--text-primary);
    border-color: var(--border);
}

/* Gratitude Section */
.gratitude-section {
    text-align: center;
    margin-top: 2rem;
}

.gratitude-btn {
    background: var(--tacha);
    color: var(--text-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

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

/* Modal Styles */
.gratitude-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.gratitude-modal[style*="display: flex"] {
    display: flex !important;
}

/* Ensure modal is visible when displayed */
.gratitude-modal[style*="display: flex"],
.gratitude-modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 1003;
}

.modal-content h3 {
    color: var(--fern-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.gratitude-note {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.close-modal {
    background: var(--fern-green);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: var(--mine-shaft);
}

/* Footer */
.app-footer {
    background: var(--mine-shaft);
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-icon:hover {
    opacity: 1;
}

.footer-text {
    flex: 1;
    text-align: left;
}

.app-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.disclaimer {
    opacity: 0.8;
    font-size: 0.8rem;
}

.disclaimer a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.disclaimer a:hover {
    opacity: 1;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.learn-more {
    margin: 0;
}

.learn-more a {
    color: var(--pale-leaf);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--pale-leaf);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.learn-more a:hover {
    background: var(--pale-leaf);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.footer-install-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-install-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.footer-install-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.version-info-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
    width: 100%;
}

.version-info-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .header-icon {
        display: inline;
        width: 32px;
        height: 32px;
        margin-right: 0.5rem;
    }
    
    .app-header h1 {
        font-size: 2rem;
        letter-spacing: 0;
    }
    
    .app-footer {
        padding: 1rem 0.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .footer-icon {
        width: 24px;
        height: 24px;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .footer-text p {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .disclaimer {
        font-size: 0.75rem;
    }
    
    .footer-links {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    
    .learn-more a {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .footer-install-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .footer-install-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .version-info-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    

    
    .main-content {
        padding: 1rem 0.75rem;
    }
    
    .categories-container {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .category-card {
        padding: 0.6rem;
        margin-bottom: 0.4rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-header {
        margin-bottom: 0;
        align-items: flex-start;
        display: flex;
        flex: 1;
        justify-content: flex-start;
    }
    
    .category-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .category-info {
        flex: 1;
        min-width: 0;
        margin-right: 0.5rem;
        text-align: left;
    }
    
    .category-info h3 {
        font-size: 1rem;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }
    
    .category-info p {
        display: inline;
        margin-left: 0.5rem;
        font-size: 0.8rem;
        color: var(--text-secondary);
        opacity: 0.8;
    }
    
    .category-info h3 {
        display: inline;
    }
    
    .servings-container {
        justify-content: flex-end;
        gap: 0.3rem;
        flex-shrink: 0;
        align-items: center;
        display: flex;
    }
    
    .serving-label {
        min-width: 40px;
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        font-weight: 500;
        border-radius: 4px;
    }

    .profile-selector {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .profile-btn {
        width: auto;
        min-width: 120px;
        max-width: none;
    }
}

/* Desktop Styles - Enhanced Layout for Larger Screens */
@media (min-width: 1024px) {
    .app-container {
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(55, 52, 52, 0.1);
    }
    
    .app-header {
        padding: 3rem 2rem;
        background: var(--fern-green);
    }
    
    .header-content {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .header-icon {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        content: url('assets/icons/icon-192x192.png');
    }
    
    .app-header h1 {
        font-size: 3.5rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .profile-selector {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 30px;
        min-width: 160px;
    }
    
    .main-content {
        padding: 2rem 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .progress-section {
        margin-bottom: 2rem;
    }
    
    .progress-bar {
        height: 16px;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    
    .progress-text {
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .categories-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .category-card {
        padding: 1.25rem 1.75rem;
        border-radius: 12px;
        border: 2px solid var(--border);
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--fern-green), var(--granny-smith));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .category-card:hover::before {
        transform: scaleX(1);
    }
    
    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(55, 52, 52, 0.15);
        border-color: var(--granny-smith);
    }
    
    .category-header {
        margin-bottom: 0;
        align-items: center;
        flex: 1;
        min-width: 0;
        margin-right: 1rem;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-right: 1rem;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
    .category-card:hover .category-icon {
        transform: scale(1.1);
    }
    
    .category-info h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .category-info p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.3;
        margin: 0;
    }
    
    .servings-container {
        gap: 0.3rem;
        flex-wrap: nowrap;
        justify-content: flex-end;
        flex-shrink: 0;
        align-items: center;
        min-width: 0;
    }
    
    .serving-label {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        font-weight: 600;
        min-width: 55px;
        max-width: 60px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        text-align: center;
        white-space: nowrap;
    }
    
    .serving-label::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .serving-label:hover::before {
        left: 100%;
    }
    
    .serving-label:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .serving-checkbox:checked + .serving-label {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(84, 132, 68, 0.3);
    }
    
    .gratitude-section {
        margin-top: 2rem;
        text-align: center;
    }
    
    .gratitude-btn {
        padding: 1.25rem 3rem;
        font-size: 1.3rem;
        font-weight: 600;
        border-radius: 30px;
        background: linear-gradient(135deg, var(--tacha), var(--copper));
        box-shadow: 0 6px 20px rgba(214, 185, 108, 0.3);
        transition: all 0.4s ease;
    }
    
    .gratitude-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(214, 185, 108, 0.4);
        background: linear-gradient(135deg, var(--copper), var(--tacha));
    }
    
    .reset-section {
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    .reset-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 30px;
        background: linear-gradient(135deg, var(--mule-fawn), var(--copper));
        box-shadow: 0 4px 16px rgba(149, 65, 44, 0.3);
    }
    
    .reset-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(149, 65, 44, 0.4);
    }
    
    .diet-selector-section {
        margin-top: 2rem;
        padding: 1.5rem;
        background: var(--background);
        border-radius: 12px;
        border: 2px solid var(--border);
    }
    
    .date-display {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        margin-bottom: 1.5rem;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }
    
    .diet-selector {
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: center;
    }
    
    .diet-selector label {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .diet-selector select {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
        min-width: 250px;
        border: 2px solid var(--border);
        background: var(--surface);
        color: var(--text-primary);
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .diet-selector select:hover {
        border-color: var(--granny-smith);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .diet-selector select:focus {
        outline: none;
        border-color: var(--fern-green);
        box-shadow: 0 0 0 4px rgba(84, 132, 68, 0.1);
    }
    
    .app-footer {
        padding: 2.5rem 2rem;
        background: linear-gradient(135deg, var(--mine-shaft), #2a2a2a);
    }
    
    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-icon {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .footer-text p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    .disclaimer {
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    .footer-links {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .learn-more a {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .learn-more a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }
    
    .patron-saint-info {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }
    
    .patron-saint-info a {
        color: var(--tacha);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .patron-saint-info a:hover {
        color: white;
        text-decoration: underline;
    }
    
    .footer-install-section {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-install-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        background: var(--fern-green);
        box-shadow: 0 4px 16px rgba(84, 132, 68, 0.3);
    }
    
    .footer-install-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(84, 132, 68, 0.4);
    }
    
    /* Enhanced Modal for Desktop */
    .modal-content {
        max-width: 600px;
        padding: 3rem;
        border-radius: 16px;
    }
    
    .modal-content h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-content p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }
    
    .close-modal {
        padding: 1rem 3rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 30px;
        background: linear-gradient(135deg, var(--fern-green), var(--granny-smith));
        box-shadow: 0 4px 16px rgba(84, 132, 68, 0.3);
        transition: all 0.3s ease;
    }
    
    .close-modal:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(84, 132, 68, 0.4);
        background: linear-gradient(135deg, var(--granny-smith), var(--fern-green));
    }
}

/* Large Desktop Styles - Ultra-wide screens */
@media (min-width: 1400px) {
    .app-container {
        max-width: 1400px;
    }
    
    .main-content {
        max-width: 1200px;
        padding: 4rem 3rem;
    }
    
    .categories-container {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem 2rem;
    }
    
    .app-header h1 {
        font-size: 4rem;
    }
    
    .header-icon {
        width: 80px;
        height: 80px;
        content: url('assets/icons/icon-256x256.png');
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 1rem 0.75rem;
    }
    
    .app-header h1 {
        font-size: 1.75rem;
        letter-spacing: 0;
    }
    
    .header-content {
        margin-bottom: 0.75rem;
    }
    
    .header-icon {
        display: inline;
        width: 28px;
        height: 28px;
        margin-right: 0.4rem;
    }
    
    .header-install-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .footer-install-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .category-header {
        text-align: center;
    }
    
    .category-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .category-card {
        padding: 0.5rem;
        gap: 0.4rem;
    }
    
    .category-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        margin-right: 0.4rem;
    }
    
    .category-info {
        margin-right: 0.4rem;
    }
    
    .category-info h3 {
        font-size: 0.9rem;
    }
    
    .category-info p {
        font-size: 0.75rem;
        margin-left: 0.4rem;
    }
    
    .servings-container {
        gap: 0.25rem;
    }
    
    .serving-label {
        min-width: 35px;
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Animation for completed categories */
.category-card.completed {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.1));
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
    
    .category-card {
        border-width: 3px;
    }
}

/* Celebration Modal */
.celebration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.celebration-modal.show {
    opacity: 1;
}

.celebration-content {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    margin: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 3px solid var(--success);
}

.celebration-modal.show .celebration-content {
    transform: scale(1);
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.celebration-content h2 {
    color: var(--success);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.celebration-content p {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.celebration-message {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
}

.celebration-verses {
    background: linear-gradient(135deg, var(--pale-leaf), var(--tacha));
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.celebration-verses p {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.verse-reference {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.celebration-close {
    background: linear-gradient(135deg, var(--fern-green), var(--mine-shaft));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.celebration-close:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--mine-shaft), var(--fern-green));
}

/* Responsive celebration modal */
@media (max-width: 768px) {
    .celebration-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .celebration-content h2 {
        font-size: 2rem;
    }
    
    .celebration-content p {
        font-size: 1.1rem;
    }
    
    .celebration-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .celebration-content {
        padding: 1.5rem 1rem;
    }
    
    .celebration-content h2 {
        font-size: 1.75rem;
    }
    
    .celebration-content p {
        font-size: 1rem;
    }
    
    .celebration-verses {
        padding: 1rem;
    }
}

/* Update notification styles */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--fern-green), var(--tacha));
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    border-left: 4px solid var(--success);
}

.update-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.update-content p {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.update-content small {
    opacity: 0.9;
    font-size: 0.85rem;
}

.update-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.update-btn, .dismiss-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex: 1;
}

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

.update-btn:hover {
    background: var(--fern-green);
    transform: translateY(-1px);
}

.dismiss-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Update loading state */
.update-loading {
    background: linear-gradient(135deg, var(--tacha), var(--fern-green));
    border-left-color: var(--tacha);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0.5rem auto 0;
}

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

/* Update reminder */
.update-reminder {
    background: linear-gradient(135deg, var(--tacha), var(--fern-green));
    border-left-color: var(--tacha);
    animation: slideInRight 0.3s ease, pulse 2s ease-in-out infinite;
}

/* Update feedback */
.update-feedback {
    background: linear-gradient(135deg, var(--fern-green), var(--tacha));
    border-left-color: var(--fern-green);
}

/* Update found */
.update-found {
    background: linear-gradient(135deg, var(--success), var(--fern-green));
    border-left-color: var(--success);
    animation: slideInRight 0.3s ease, bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(-5px); }
    60% { transform: translateX(-3px); }
}

/* Version modal */
.version-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;
    animation: fadeIn 0.3s ease;
}

.version-modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}

.version-details {
    margin: 1.5rem 0;
}

.version-detail {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 8px;
    border-left: 3px solid var(--fern-green);
}

.version-detail strong {
    color: var(--text-primary);
}

.version-detail small {
    color: var(--text-secondary);
    font-style: italic;
}

.version-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.version-actions .update-btn,
.version-actions .dismiss-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-actions .update-btn {
    background: var(--fern-green);
    color: white;
}

.version-actions .update-btn:hover {
    background: var(--tacha);
}



.version-actions .dismiss-btn {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.version-actions .dismiss-btn:hover {
    background: var(--border);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-2px); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive update notification */
@media (max-width: 768px) {
    .update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* PWA Installation Styles */
.install-prompt, .manual-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--fern-green), var(--tacha));
    color: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    animation: slideInUp 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.install-content, .manual-install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.install-icon, .manual-install-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.install-text, .manual-install-text {
    flex: 1;
}

.install-text h4, .manual-install-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.install-text p, .manual-install-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.install-btn, .manual-install-btn {
    background: var(--fern-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.install-btn:hover, .manual-install-btn:hover {
    background: var(--mine-shaft);
    transform: translateY(-1px);
}

.dismiss-install-btn, .dismiss-manual-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dismiss-install-btn:hover, .dismiss-manual-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Installation Success */
.installation-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: var(--text-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    z-index: 1001;
    animation: fadeInScale 0.3s ease;
    text-align: center;
    max-width: 300px;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-icon {
    font-size: 3rem;
}

.success-content h4 {
    margin: 0;
    color: var(--fern-green);
    font-size: 1.3rem;
}

.success-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

.close-success-btn {
    background: var(--fern-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-success-btn:hover {
    background: var(--tacha);
    transform: translateY(-1px);
}

/* Installation Instructions Modal */
.install-instructions-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.instructions-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    animation: slideInUp 0.3s ease;
}

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

.instructions-header h3 {
    margin: 0;
    color: var(--fern-green);
    font-size: 1.4rem;
}

.close-instructions {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-instructions:hover {
    background: var(--background-light);
    color: var(--text-color);
}

.instructions-body {
    padding: 1.5rem;
}

.browser-instructions h4 {
    color: var(--fern-green);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
}

.browser-instructions h4:first-child {
    margin-top: 0;
}

.browser-instructions ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.browser-instructions li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.browser-instructions strong {
    color: var(--fern-green);
    font-weight: 600;
}

.install-benefits {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.install-benefits h4 {
    color: var(--fern-green);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.install-benefits ul {
    margin: 0;
    padding-left: 1.5rem;
}

.install-benefits li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

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

.reset-install-dismissed-btn {
    background: var(--mule-fawn);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.reset-install-dismissed-btn:hover {
    background: var(--copper);
    transform: translateY(-1px);
}

.reset-install-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive PWA Installation */
@media (max-width: 768px) {
    .install-prompt, .manual-install-prompt {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 1rem;
    }
    
    .install-content, .manual-install-content {
        gap: 0.75rem;
    }
    
    .install-icon, .manual-install-icon {
        font-size: 1.5rem;
    }
    
    .install-text h4, .manual-install-text h4 {
        font-size: 1rem;
    }
    
    .install-text p, .manual-install-text p {
        font-size: 0.85rem;
    }
    
    .install-btn, .manual-install-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .instructions-content {
        margin: 1rem;
        max-height: 85vh;
    }
    
    .instructions-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .instructions-header h3 {
        font-size: 1.2rem;
    }
    
    .instructions-body {
        padding: 1rem;
    }
    
    .browser-instructions h4 {
        font-size: 1rem;
    }
    
    .browser-instructions ol {
        padding-left: 1.25rem;
    }
    
    .install-benefits {
        padding: 1rem;
    }
    
    .install-actions {
        padding: 1rem;
    }
    
    .reset-install-dismissed-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .install-prompt, .manual-install-prompt {
        padding: 0.75rem;
    }
    
    .install-content, .manual-install-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .install-btn, .manual-install-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .dismiss-install-btn, .dismiss-manual-btn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .installation-success {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .success-content {
        gap: 0.75rem;
    }
    
    .success-icon {
        font-size: 2.5rem;
    }
    
    .success-content h4 {
        font-size: 1.1rem;
    }
    
    .success-content p {
        font-size: 0.9rem;
    }
}

