/* Garden Planting Tracker - Styles */
/* Garden/Organic Theme with No-Dig Aesthetic */

/* ==================== CSS Variables ==================== */
:root {
    --earth-brown: #5D4037;
    --earth-brown-light: #795548;
    --leaf-green: #558B2F;
    --leaf-light: #8BC34A;
    --leaf-dark: #33691E;
    --soil-dark: #3E2723;
    --cream: #FFF8E1;
    --cream-dark: #F5E6C8;
    --terracotta: #BF360C;
    --terracotta-light: #E64A19;
    --sky-blue: #81D4FA;
    --harvest-gold: #FFB300;
    --harvest-gold-light: #FFD54F;

    /* Urgency colors */
    --urgent-red: #C62828;
    --warning-orange: #EF6C00;
    --upcoming-blue: #1976D2;

    /* Compost colors */
    --compost-bin-dark: #2D1F1A;
    --compost-fill-light: #8D6E63;
    --compost-fill-medium: #6D4C41;
    --compost-fill-dark: #4E342E;

    /* Primary colors */
    --primary: #558B2F;
    --primary-dark: #33691E;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-600: #757575;
    --gray-800: #424242;
    --border-color: #E0E0E0;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows - layered for more depth */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--cream);
    color: var(--soil-dark);
    line-height: 1.6;
    min-height: 100vh;
}


/* Subtle paper texture background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Subtle botanical corner decorations */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 150 Q20 100 10 60 Q30 80 50 50 Q40 90 70 80 Q50 110 80 120 Q40 130 0 150' fill='%238BC34A' opacity='0.04'/%3E%3Cpath d='M0 150 Q15 120 5 90 Q20 100 35 80' stroke='%2333691E' stroke-width='1' fill='none' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

/* ==================== Header & Navigation ==================== */
.site-header {
    background: linear-gradient(135deg, var(--leaf-dark) 0%, var(--leaf-green) 50%, var(--leaf-dark) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(51, 105, 30, 0.3);
}

/* Decorative botanical pattern overlay */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-2 8-8 14-16 16 8 2 14 8 16 16 2-8 8-14 16-16-8-2-14-8-16-16z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
}

.title-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.current-date {
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(255, 255, 255, 0.18);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-normal);
}

.main-nav {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.08));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
}

.main-nav a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: var(--transition-normal);
    border-radius: var(--radius-sm);
    position: relative;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--harvest-gold);
    transition: var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 1px;
}

.main-nav a:hover::after {
    width: 60%;
}

/* ==================== Frost Warning Banner ==================== */
.frost-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0 auto;
    max-width: 1400px;
    border-bottom: 3px solid;
    animation: frostSlideDown 0.3s ease-out;
}

.frost-banner--hard {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border-bottom-color: var(--urgent-red);
    color: #B71C1C;
}

.frost-banner--light {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-bottom-color: var(--warning-orange);
    color: #E65100;
}

.frost-banner__content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    flex: 1;
}

.frost-banner__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

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

.frost-banner__title {
    font-size: 1rem;
    font-weight: 700;
}

.frost-banner__message {
    font-size: 0.875rem;
    opacity: 0.85;
}

.frost-banner__days {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.frost-day {
    display: inline-block;
    padding: 2px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.frost-hard {
    background: rgba(198, 40, 40, 0.15);
}

.frost-light {
    background: rgba(239, 108, 0, 0.15);
}

.frost-banner__dismiss {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    color: inherit;
    flex-shrink: 0;
    line-height: 1;
}

.frost-banner__dismiss:hover {
    opacity: 1;
}

@keyframes frostSlideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .frost-banner {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    .frost-banner__icon {
        font-size: 1.25rem;
    }
    .frost-banner__title {
        font-size: 0.9rem;
    }
    .frost-banner__days {
        gap: var(--spacing-xs);
    }
    .frost-day {
        font-size: 0.75rem;
    }
}

/* ==================== Main Content ==================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* Decorative leaf divider between sections */
.section::before {
    content: '';
    display: block;
    width: 100%;
    height: 20px;
    margin-bottom: var(--spacing-lg);
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='20' viewBox='0 0 120 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 10 C55 5, 45 5, 40 10 C35 5, 25 8, 20 10 M60 10 C65 5, 75 5, 80 10 C85 5, 95 8, 100 10' stroke='%238BC34A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='60' cy='10' r='3' fill='%23558B2F'/%3E%3Ccircle cx='40' cy='10' r='2' fill='%238BC34A'/%3E%3Ccircle cx='80' cy='10' r='2' fill='%238BC34A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

.section:first-child::before {
    display: none;
}

.section {
    margin-bottom: var(--spacing-2xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

/* Subtle corner leaf decoration */
.section::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M45 45 Q30 40 25 25 Q40 30 45 45' fill='%238BC34A' opacity='0.06'/%3E%3Cpath d='M45 45 Q35 35 30 20 Q42 28 45 45' fill='%2333691E' opacity='0.04'/%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
}

.section-title {
    font-size: 1.6rem;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

/* Decorative leaf next to title */
.section-title::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2 C5 2 2 7 2 12 C7 12 12 7 10 2' fill='%2333691E' opacity='0.7'/%3E%3Cpath d='M10 2 C15 2 18 7 18 12 C13 12 8 7 10 2' fill='%238BC34A' opacity='0.7'/%3E%3Cpath d='M10 12 L10 18' stroke='%2333691E' stroke-width='1.5' opacity='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--leaf-green), var(--leaf-light));
    border-radius: 2px;
    animation: expandWidth 0.6s ease-out 0.2s backwards;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

.section-subtitle {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    font-size: 0.95rem;
    padding-left: var(--spacing-xs);
    border-left: 3px solid var(--leaf-light);
}

/* ==================== Dashboard ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Staggered card animations */
.stat-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-value {
    animation: countUp 0.6s ease-out backwards;
    animation-delay: 0.4s;
}

.stat-card {
    background: linear-gradient(145deg, var(--leaf-light), var(--leaf-green));
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(85, 139, 47, 0.3);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(85, 139, 47, 0.4);
}

.stat-card:active {
    transform: translateY(-2px) scale(1.01);
}

.stat-card-warning {
    background: linear-gradient(145deg, var(--harvest-gold-light), var(--harvest-gold));
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
}

.stat-card-warning:hover {
    box-shadow: 0 8px 24px rgba(255, 179, 0, 0.4);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(-5deg);
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* Info card animations */
.info-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.info-card:nth-child(1) { animation-delay: 0.5s; }
.info-card:nth-child(2) { animation-delay: 0.6s; }

.info-card {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: var(--spacing-lg);
    padding-right: calc(var(--spacing-lg) + 30px);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--leaf-green);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.info-card::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35 5 Q25 15 30 25 Q20 30 25 40 Q15 45 20 55' stroke='%238BC34A' stroke-width='2' fill='none' opacity='0.2'/%3E%3Ccircle cx='30' cy='12' r='4' fill='%2333691E' opacity='0.15'/%3E%3Ccircle cx='25' cy='32' r='3' fill='%2333691E' opacity='0.15'/%3E%3Ccircle cx='20' cy='50' r='4' fill='%2333691E' opacity='0.15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.8;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.info-card h3 {
    color: var(--earth-brown);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
    font-weight: 600;
}

.info-card p {
    color: var(--gray-800);
    line-height: 1.5;
}

/* ==================== Tasks Section ==================== */
.tasks-filter {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.tasks-filter label {
    font-weight: 500;
    color: var(--earth-brown);
}

.tasks-filter select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
}

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

/* Staggered task animations */
.task-item {
    animation: fadeInLeft 0.3s ease-out backwards;
}

.task-item:nth-child(1) { animation-delay: 0.05s; }
.task-item:nth-child(2) { animation-delay: 0.1s; }
.task-item:nth-child(3) { animation-delay: 0.15s; }
.task-item:nth-child(4) { animation-delay: 0.2s; }
.task-item:nth-child(5) { animation-delay: 0.25s; }
.task-item:nth-child(6) { animation-delay: 0.3s; }
.task-item:nth-child(7) { animation-delay: 0.35s; }
.task-item:nth-child(8) { animation-delay: 0.4s; }

.task-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    background: var(--gray-100);
    border-left: 4px solid var(--gray-300);
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.task-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
    border-left-width: 6px;
}

.task-item.overdue {
    border-left-color: var(--urgent-red);
    background: #FFEBEE;
}

.task-item.overdue::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--urgent-red);
    animation: pulse 2s ease-in-out infinite;
}

.task-item.this-week {
    border-left-color: var(--warning-orange);
    background: #FFF3E0;
}

.task-item.upcoming {
    border-left-color: var(--upcoming-blue);
    background: #E3F2FD;
}

.task-item.completed {
    opacity: 0.6;
    background: var(--gray-200);
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--leaf-green);
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.15s ease;
}

.task-checkbox:hover {
    transform: scale(1.15);
}

.task-checkbox:active {
    transform: scale(0.95);
}

.task-checkbox:checked {
    animation: checkmarkPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-item.just-completed {
    animation: taskComplete 0.5s ease-out forwards;
}

.task-content {
    flex: 1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.task-text {
    font-weight: 600;
    color: var(--soil-dark);
    font-size: 0.95rem;
}

.task-date {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.task-variety {
    font-size: 0.85rem;
    color: var(--leaf-green);
    font-weight: 500;
}

/* Task owner badges */
.task-owner-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.task-owner-badge.owner-ben {
    background: #E0F2F1;
    color: #00695C;
}

.task-owner-badge.owner-georgina {
    background: #FCE4EC;
    color: #AD1457;
}

.task-notes {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: var(--spacing-xs);
}

/* ==================== Timeline Section ==================== */
.timeline-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.timeline-nav-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(145deg, var(--leaf-green), var(--leaf-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(85, 139, 47, 0.3);
}

.timeline-nav-btn:hover {
    background: linear-gradient(145deg, var(--leaf-dark), var(--leaf-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 139, 47, 0.4);
}

.timeline-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(85, 139, 47, 0.3);
}

.timeline-current-month {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--earth-brown);
    min-width: 180px;
    text-align: center;
}

.timeline-container {
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
}

.timeline-wrapper {
    min-width: 100%;
    position: relative;
}

.timeline-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.timeline-header {
    display: flex;
    border-bottom: 2px solid var(--gray-300);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.timeline-day {
    flex: 1;
    min-width: 40px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.timeline-day.today {
    color: var(--leaf-green);
    font-weight: 700;
}

.timeline-day.weekend {
    color: var(--terracotta);
}

.timeline-row {
    display: flex;
    align-items: center;
    min-height: 40px;
    position: relative;
}

.timeline-variety {
    width: 180px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--earth-brown);
    padding-right: var(--spacing-md);
    flex-shrink: 0;
}

.timeline-bar-container {
    flex: 1;
    display: flex;
    position: relative;
    height: 30px;
}

.timeline-event {
    position: absolute;
    height: 26px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    animation: fadeIn 0.4s ease-out backwards;
}

.timeline-event:hover {
    transform: scaleY(1.2) scaleX(1.02);
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.timeline-event.sow {
    background: var(--earth-brown);
    color: var(--white);
}

.timeline-event.grow {
    background: var(--leaf-light);
    color: var(--soil-dark);
}

.timeline-event.harvest {
    background: var(--harvest-gold);
    color: var(--soil-dark);
}

.timeline-today-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--terracotta);
    z-index: 10;
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: none;
    position: relative;
}

.timeline-legend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='15' viewBox='0 0 200 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 7 L70 7 M130 7 L200 7' stroke='%23E0E0E0' stroke-width='1'/%3E%3Cpath d='M85 7 C90 3 95 3 100 7 C105 3 110 3 115 7' stroke='%238BC34A' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='100' cy='7' r='2' fill='%23558B2F'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.legend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
}

.legend-icon.sow {
    background: var(--earth-brown);
}

.legend-icon.transplant {
    background: var(--leaf-light);
}

.legend-icon.harvest {
    background: var(--harvest-gold);
}

/* ==================== Garden Beds ==================== */
.beds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.bed-card {
    background: linear-gradient(145deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--earth-brown-light);
    animation: scaleIn 0.4s ease-out backwards;
}

.bed-card:nth-child(1) { animation-delay: 0.05s; }
.bed-card:nth-child(2) { animation-delay: 0.1s; }
.bed-card:nth-child(3) { animation-delay: 0.15s; }

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

.bed-card-header {
    background: linear-gradient(135deg, var(--earth-brown-light), var(--earth-brown));
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bed-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.bed-dimensions {
    font-size: 0.85rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

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

.bed-visual {
    background: linear-gradient(180deg, #5D4037 0%, #4E342E 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    min-height: 120px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bed-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' opacity='0.05'/%3E%3Ccircle cx='12' cy='8' r='0.8' fill='%23ffffff' opacity='0.04'/%3E%3Ccircle cx='6' cy='14' r='1.2' fill='%23ffffff' opacity='0.03'/%3E%3Ccircle cx='16' cy='16' r='0.6' fill='%23ffffff' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: var(--radius-md);
}

.bed-empty-message {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    padding: var(--spacing-lg);
}

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

.bed-planting-tag {
    background: var(--leaf-light);
    color: var(--soil-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.bed-diagram {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto var(--spacing-sm);
}

.bed-outline {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 4 2;
}

.bed-plant-marker {
    fill: var(--leaf-green);
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.15s ease, stroke-width 0.15s ease;
}

.bed-plant-marker:hover {
    fill: var(--sage-green);
    stroke-width: 3;
}

.bed-stats {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--gray-600);
}

.bed-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.bed-stat-icon {
    font-size: 1rem;
}

.bed-notes {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Mobile responsiveness for beds */
@media (max-width: 768px) {
    .beds-grid {
        grid-template-columns: 1fr;
    }

    .bed-card {
        animation-delay: 0s !important;
        animation-duration: 0.2s !important;
    }
}

/* ==================== Propagation Areas ==================== */
.propagation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.propagation-card {
    background: linear-gradient(145deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--leaf-dark);
    animation: scaleIn 0.4s ease-out backwards;
}

.propagation-card:nth-child(1) { animation-delay: 0.05s; }
.propagation-card:nth-child(2) { animation-delay: 0.1s; }
.propagation-card:nth-child(3) { animation-delay: 0.15s; }

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

.propagation-card-header {
    background: linear-gradient(135deg, var(--leaf-dark), var(--leaf-green));
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.propagation-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.propagation-dimensions {
    font-size: 0.85rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

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

.propagation-stats {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.propagation-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.propagation-stat-icon {
    font-size: 1rem;
}

.propagation-plantings-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.propagation-planting-tag {
    background: var(--leaf-light);
    color: var(--soil-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.propagation-empty-message {
    color: var(--gray-500);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.propagation-notes {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Mobile responsiveness for propagation */
@media (max-width: 768px) {
    .propagation-grid {
        grid-template-columns: 1fr;
    }

    .propagation-card {
        animation-delay: 0s !important;
        animation-duration: 0.2s !important;
    }
}

/* ==================== Greenhouse ==================== */
.greenhouse-section {
    background: linear-gradient(180deg, rgba(129, 199, 132, 0.05) 0%, transparent 100%);
}

.greenhouse-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.greenhouse-diagram-wrapper {
    background: linear-gradient(145deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--leaf-green);
}

.greenhouse-visual {
    background: linear-gradient(180deg, rgba(129, 199, 132, 0.3) 0%, rgba(102, 187, 106, 0.4) 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Glass panel effect for greenhouse */
.greenhouse-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
    border-radius: var(--radius-md);
}

.greenhouse-diagram {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
}

.greenhouse-outline {
    fill: rgba(255, 255, 255, 0.2);
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 3;
}

.greenhouse-aisle {
    fill: rgba(139, 90, 43, 0.3);
    stroke: none;
}

.shelf-half,
.shelf-third {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1;
    transition: fill 0.2s ease;
}

.shelf-empty {
    fill: rgba(93, 64, 55, 0.4);
}

.shelf-has-plants {
    fill: rgba(76, 175, 80, 0.5);
}

.shelf-line {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
    stroke-dasharray: 4 2;
}

.shelf-unit-label {
    fill: white;
    font-size: 10px;
    font-weight: 500;
    text-anchor: middle;
    dominant-baseline: middle;
}

.greenhouse-empty-space {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1;
    stroke-dasharray: 4 2;
}

.empty-space-label {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-anchor: middle;
    dominant-baseline: middle;
    font-style: italic;
}

.greenhouse-door {
    fill: rgba(139, 90, 43, 0.8);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
}

.door-label {
    fill: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    text-anchor: middle;
}

.side-label {
    fill: rgba(255, 255, 255, 0.8);
    font-size: 9px;
    text-anchor: middle;
}

.greenhouse-stats {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.greenhouse-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.greenhouse-stat-icon {
    font-size: 1rem;
}

.greenhouse-notes {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

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

.greenhouse-details-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--earth-brown);
    margin: 0 0 var(--spacing-sm) 0;
}

.greenhouse-units-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.greenhouse-unit-card {
    background: linear-gradient(145deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    animation: scaleIn 0.3s ease-out backwards;
}

.greenhouse-unit-card:nth-child(1) { animation-delay: 0.05s; }
.greenhouse-unit-card:nth-child(2) { animation-delay: 0.1s; }
.greenhouse-unit-card:nth-child(3) { animation-delay: 0.15s; }
.greenhouse-unit-card:nth-child(4) { animation-delay: 0.2s; }
.greenhouse-unit-card:nth-child(5) { animation-delay: 0.25s; }

.greenhouse-unit-header {
    background: linear-gradient(135deg, var(--leaf-green), #66BB6A);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.unit-side {
    font-size: 0.75rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: capitalize;
}

.greenhouse-unit-body {
    padding: var(--spacing-sm) var(--spacing-md);
}

.greenhouse-shelf {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--gray-100);
}

.greenhouse-shelf:last-child {
    border-bottom: none;
}

.shelf-level {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    min-width: 55px;
    flex-shrink: 0;
}

.shelf-trays {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    flex: 1;
}

.greenhouse-tray-tag {
    background: var(--leaf-light);
    color: var(--soil-dark);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.greenhouse-tray-clickable {
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.greenhouse-tray-clickable:hover {
    background: var(--leaf-green);
    color: white;
    transform: scale(1.05);
}

.greenhouse-plant-marker {
    fill: var(--leaf-green);
    stroke: #fff;
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.15s ease, stroke-width 0.15s ease;
}

.greenhouse-plant-marker:hover {
    fill: var(--sage-green);
    stroke-width: 2;
}

.greenhouse-empty-shelf {
    color: var(--gray-400);
    font-size: 0.75rem;
    font-style: italic;
}

/* Mobile responsiveness for greenhouse */
@media (max-width: 768px) {
    .greenhouse-layout {
        grid-template-columns: 1fr;
    }

    .greenhouse-diagram {
        max-width: 280px;
    }

    .greenhouse-unit-card {
        animation-delay: 0s !important;
    }
}

/* ==================== Compost Bins ==================== */
.compost-instructions {
    grid-column: 1 / -1;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-md);
    border-left: 4px solid var(--earth-brown);
}

.compost-instructions ul {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.compost-instructions li {
    color: var(--earth-brown);
    font-size: 0.9rem;
}

.compost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
}

.compost-card {
    background: linear-gradient(145deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--earth-brown);
    animation: scaleIn 0.4s ease-out backwards;
}

/* Animation delays for first 7 bins (instructions div is :first-child, so bins start at :nth-child(2)) */
/* Additional bins beyond 7 will animate immediately without stagger */
.compost-card:nth-child(2) { animation-delay: 0.05s; }
.compost-card:nth-child(3) { animation-delay: 0.1s; }
.compost-card:nth-child(4) { animation-delay: 0.15s; }
.compost-card:nth-child(5) { animation-delay: 0.2s; }
.compost-card:nth-child(6) { animation-delay: 0.25s; }
.compost-card:nth-child(7) { animation-delay: 0.3s; }
.compost-card:nth-child(8) { animation-delay: 0.35s; }

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

.compost-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.compost-card-main {
    grid-column: span 2;
    grid-row: span 4;
}

.compost-card-main .compost-visual {
    height: 360px;
}

.compost-card-header {
    background: linear-gradient(135deg, var(--earth-brown), var(--soil-dark));
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compost-name {
    font-size: 1rem;
    font-weight: 600;
}

.compost-dimensions {
    font-size: 0.8rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.compost-card-body {
    padding: var(--spacing-md);
}

.compost-visual {
    background: linear-gradient(180deg, var(--soil-dark) 0%, var(--compost-bin-dark) 100%);
    border-radius: var(--radius-md);
    height: 100px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.compost-card-large .compost-visual {
    height: 180px;
}

.compost-fill-indicator {
    background: linear-gradient(180deg, var(--earth-brown-light) 0%, var(--earth-brown) 50%, var(--compost-fill-dark) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.5s ease;
}

.compost-fill-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(139, 195, 74, 0.3), transparent);
}

.compost-fill-indicator.fill-low {
    background: linear-gradient(180deg, var(--compost-fill-light) 0%, var(--compost-fill-medium) 100%);
}

.compost-fill-indicator.fill-medium {
    background: linear-gradient(180deg, var(--earth-brown-light) 0%, var(--earth-brown) 100%);
}

.compost-fill-indicator.fill-high {
    background: linear-gradient(180deg, var(--compost-fill-medium) 0%, var(--compost-fill-dark) 50%, var(--soil-dark) 100%);
}

/* Layered compost sections (usable at bottom, composting above) */
.compost-layers {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
}

.compost-layer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.5s ease;
    min-height: 0;
}

.compost-layer-usable {
    background: linear-gradient(180deg, #5D4037 0%, #3E2723 100%);
    border-top: 2px solid var(--leaf-green);
}

.compost-layer-usable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(180deg, rgba(139, 195, 74, 0.4), transparent);
}

.compost-layer-composting {
    background: linear-gradient(180deg, var(--earth-brown-light) 0%, var(--earth-brown) 50%, var(--compost-fill-dark) 100%);
}

.compost-layer-composting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(139, 195, 74, 0.3), transparent);
}

.compost-layer-composting::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Orange peel bits */
        radial-gradient(ellipse 6px 4px at 15% 25%, rgba(255, 152, 0, 0.6) 40%, transparent 60%),
        radial-gradient(ellipse 5px 3px at 72% 40%, rgba(255, 167, 38, 0.5) 40%, transparent 60%),
        radial-gradient(ellipse 4px 3px at 88% 65%, rgba(255, 143, 0, 0.5) 40%, transparent 60%),
        /* Apple/veggie bits (red/pink) */
        radial-gradient(circle 3px at 35% 55%, rgba(198, 40, 40, 0.4) 50%, transparent 70%),
        radial-gradient(circle 4px at 58% 75%, rgba(211, 47, 47, 0.35) 50%, transparent 70%),
        /* Banana peel bits (yellow) */
        radial-gradient(ellipse 7px 3px at 25% 70%, rgba(255, 235, 59, 0.45) 40%, transparent 60%),
        radial-gradient(ellipse 5px 2px at 80% 30%, rgba(255, 241, 118, 0.4) 40%, transparent 60%),
        /* Leafy greens */
        radial-gradient(ellipse 5px 3px at 45% 35%, rgba(104, 159, 56, 0.5) 40%, transparent 60%),
        radial-gradient(ellipse 4px 2px at 65% 60%, rgba(85, 139, 47, 0.45) 40%, transparent 60%),
        radial-gradient(ellipse 3px 2px at 10% 50%, rgba(124, 179, 66, 0.4) 40%, transparent 60%),
        /* Coffee grounds (dark brown specks) */
        radial-gradient(circle 2px at 20% 45%, rgba(62, 39, 35, 0.5) 60%, transparent 80%),
        radial-gradient(circle 2px at 50% 50%, rgba(78, 52, 46, 0.45) 60%, transparent 80%),
        radial-gradient(circle 2px at 75% 45%, rgba(62, 39, 35, 0.4) 60%, transparent 80%),
        radial-gradient(circle 2px at 40% 80%, rgba(93, 64, 55, 0.4) 60%, transparent 80%),
        /* Eggshell bits (off-white) */
        radial-gradient(ellipse 4px 2px at 55% 25%, rgba(255, 253, 231, 0.5) 50%, transparent 70%),
        radial-gradient(ellipse 3px 2px at 30% 85%, rgba(255, 248, 225, 0.45) 50%, transparent 70%);
    pointer-events: none;
}

.compost-layer-label {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compost-card-large .compost-layer-label {
    font-size: 0.9rem;
}

.compost-layer-usable .compost-layer-label {
    color: var(--harvest-gold-light);
}

.fill-percentage {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.compost-card-large .fill-percentage {
    font-size: 1.5rem;
}

.compost-empty-message {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: italic;
    font-size: 0.85rem;
    padding: var(--spacing-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compost-stats {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.compost-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.compost-stat-icon {
    font-size: 1rem;
}

.compost-usable {
    color: var(--leaf-green);
    font-weight: 500;
}

.compost-ready {
    color: var(--warning-orange);
    font-weight: 500;
}

.compost-notes {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Mobile responsiveness for compost */
@media (max-width: 768px) {
    .compost-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compost-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .compost-card-main {
        grid-column: span 2;
        grid-row: span 2;
    }

    .compost-card-large .compost-visual {
        min-height: 120px;
    }

    .compost-card-main .compost-visual {
        min-height: 240px;
    }

    .compost-card {
        animation-delay: 0s !important;
        animation-duration: 0.2s !important;
    }
}

@media (max-width: 480px) {
    .compost-grid {
        grid-template-columns: 1fr;
    }

    .compost-card-large {
        grid-column: span 1;
    }

    .compost-card-main {
        grid-column: span 1;
        grid-row: span 2;
    }

    .compost-card-main .compost-visual {
        min-height: 200px;
    }
}

/* ==================== Current Plantings ==================== */
.plantings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* Staggered planting card animations */
.planting-card {
    animation: scaleIn 0.4s ease-out backwards;
}

.planting-card:nth-child(1) { animation-delay: 0.05s; }
.planting-card:nth-child(2) { animation-delay: 0.1s; }
.planting-card:nth-child(3) { animation-delay: 0.15s; }
.planting-card:nth-child(4) { animation-delay: 0.2s; }
.planting-card:nth-child(5) { animation-delay: 0.25s; }
.planting-card:nth-child(6) { animation-delay: 0.3s; }

.planting-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.planting-card:active {
    transform: translateY(-3px);
}

.planting-card-header {
    background: linear-gradient(135deg, var(--leaf-green), var(--leaf-dark));
    color: var(--white);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.planting-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* Decorative leaf accent */
.planting-card-header::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 12px;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 8C12 8 8 12 8 17C13 17 17 13 17 8Z' fill='rgba(255,255,255,0.15)'/%3E%3Cpath d='M8 17C8 17 10 15 12 13' stroke='rgba(255,255,255,0.2)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.8;
}

.planting-variety {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.planting-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
}

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

/* Countdown display */
.planting-countdown {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    background: var(--gray-100);
    border-left: 3px solid var(--gray-300);
}

.countdown-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.countdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.countdown-action {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--soil-dark);
}

.countdown-date {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Countdown urgency states */
.planting-countdown.countdown-today {
    background: #FFF3E0;
    border-left-color: var(--harvest-gold);
}

.planting-countdown.countdown-today .countdown-action {
    color: var(--warning-orange);
}

.planting-countdown.countdown-soon {
    background: #E8F5E9;
    border-left-color: var(--leaf-green);
}

.planting-countdown.countdown-soon .countdown-action {
    color: var(--leaf-dark);
}

.planting-countdown.countdown-upcoming {
    background: #E3F2FD;
    border-left-color: var(--upcoming-blue);
}

.planting-countdown.countdown-overdue {
    background: #FFEBEE;
    border-left-color: var(--urgent-red);
}

.planting-countdown.countdown-overdue .countdown-action {
    color: var(--urgent-red);
}

.planting-countdown.countdown-future {
    background: var(--cream);
    border-left-color: var(--earth-brown-light);
}

/* Next Step indicator for current plantings */
.planting-next-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-left: 3px solid var(--leaf-green);
}

.planting-next-step-icon {
    font-size: 1.2rem;
    line-height: 1;
    color: var(--leaf-green);
}

.planting-next-step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.planting-next-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--leaf-dark);
    opacity: 0.8;
}

.planting-next-step-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--leaf-dark);
}

.planting-progress {
    margin-bottom: var(--spacing-md);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--leaf-light), var(--leaf-green));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(85, 139, 47, 0.3);
    animation: progressGrow 1s ease-out;
    transform-origin: left;
}

@keyframes progressGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.planting-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

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

.planting-stage-history {
    margin-bottom: var(--spacing-md);
}

.stage-history-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-sm);
}

.stage-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--gray-600);
}

.stage-item {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding-left: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-left: 2px solid var(--leaf-light);
}

.stage-item .stage-notes {
    flex-basis: 100%;
}

.stage-item.current {
    border-left-color: var(--leaf-green);
    font-weight: 500;
    color: var(--leaf-dark);
}

.stage-item.current .stage-notes {
    font-weight: 400;
}

.stage-date {
    min-width: 80px;
    font-weight: 500;
}

.stage-notes {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-style: italic;
    margin-top: 2px;
    padding-left: 0;
    line-height: 1.4;
}

.care-notes {
    margin-top: var(--spacing-md);
}

.care-notes-toggle {
    background: none;
    border: none;
    color: var(--leaf-green);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.care-notes-toggle:hover {
    text-decoration: underline;
}

.care-notes-content {
    display: none;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.care-notes-content.open {
    display: block;
}

.care-notes-content ul {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.care-notes-content li {
    margin-bottom: var(--spacing-xs);
}

/* ==================== Planned Plantings Table ==================== */
.table-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    align-items: flex-end;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--leaf-green);
}

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

.filter-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--earth-brown);
}

.filter-group select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    min-width: 140px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--leaf-green);
}

.view-toggle {
    display: flex;
    gap: 2px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    padding: 2px;
    margin-left: auto;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.view-btn:hover {
    background: var(--gray-300);
    color: var(--earth-brown);
}

.view-btn.active {
    background: var(--white);
    color: var(--leaf-green);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-icon {
    font-size: 1.1rem;
}

.table-wrapper {
    overflow-x: auto;
}

.plantings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.plantings-table th {
    background: linear-gradient(180deg, var(--earth-brown-light), var(--earth-brown));
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.plantings-table th:hover {
    background: linear-gradient(180deg, var(--earth-brown), var(--earth-brown-light));
}

.sort-icon::after {
    content: ' ↕';
    opacity: 0.5;
}

.plantings-table th.sort-asc .sort-icon::after {
    content: ' ↑';
    opacity: 1;
}

.plantings-table th.sort-desc .sort-icon::after {
    content: ' ↓';
    opacity: 1;
}

.plantings-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.2s ease;
}

.plantings-table tbody tr {
    transition: all 0.2s ease;
}

.plantings-table tbody tr:hover {
    background: var(--cream);
    box-shadow: inset 4px 0 0 var(--leaf-green);
}

.plantings-table tbody tr.successional {
    background: var(--gray-100);
}

.plantings-table tbody tr.successional:hover {
    background: var(--cream-dark);
}

.variety-cell {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--leaf-dark);
}

.sowing-badge {
    display: inline-block;
    background: var(--leaf-light);
    color: var(--soil-dark);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-left: var(--spacing-xs);
}

.stage-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.stage-badge.to-sow {
    background: var(--sky-blue);
    color: var(--soil-dark);
}

/* ==================== Mobile Planting Carousel ==================== */

/* Hide carousel on desktop, show table/grid */
.planting-carousel,
.mobile-carousel {
    display: none;
}

.table-wrapper.desktop-only,
.desktop-only {
    display: block;
}

.plantings-grid.desktop-only,
.charlies-grid.desktop-only,
.georginas-grid.desktop-only,
.old-seeds-grid.desktop-only,
.sprouts-grid.desktop-only,
.microgreens-grid.desktop-only,
.fermenting-grid.desktop-only,
.beds-grid.desktop-only,
.compost-grid.desktop-only {
    display: grid;
}

/* ==================== Journal Section ==================== */
.journal-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.journal-filter {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.journal-filter label {
    font-weight: 500;
    color: var(--earth-brown);
}

.journal-filter select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--soil-dark);
    font-size: 0.9rem;
    cursor: pointer;
}

.journal-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.journal-date-group {
    animation: fadeInUp 0.3s ease-out backwards;
}

.journal-date-group:nth-child(1) { animation-delay: 0.05s; }
.journal-date-group:nth-child(2) { animation-delay: 0.1s; }
.journal-date-group:nth-child(3) { animation-delay: 0.15s; }
.journal-date-group:nth-child(4) { animation-delay: 0.2s; }
.journal-date-group:nth-child(5) { animation-delay: 0.25s; }

.journal-date-header {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--leaf-green);
}

.journal-date {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--leaf-dark);
}

.journal-date-full {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.journal-entries {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-left: var(--spacing-md);
    border-left: 2px solid var(--cream-dark);
}

.journal-entry {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.journal-entry:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.journal-entry-planting {
    border-left: 3px solid var(--leaf-green);
}

.journal-entry-task {
    border-left: 3px solid var(--harvest-gold);
}

.journal-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

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

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

.journal-variety {
    font-weight: 600;
    color: var(--earth-brown);
}

.journal-stage {
    display: inline-block;
    padding: 2px 8px;
    background: var(--leaf-light);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.journal-task {
    color: var(--soil-dark);
}

.journal-location {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.journal-location::before {
    content: '\2022';
    margin-right: var(--spacing-xs);
}

.journal-notes {
    margin-top: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .journal-date-header {
        flex-direction: column;
        gap: 0;
    }

    .journal-date-full {
        font-size: 0.8rem;
    }

    .journal-entry {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .journal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .journal-location::before {
        display: none;
    }
}

/* ==================== To Order Section ==================== */
.order-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Staggered order item animations */
.order-item {
    animation: fadeInLeft 0.3s ease-out backwards;
}

.order-item:nth-child(1) { animation-delay: 0.05s; }
.order-item:nth-child(2) { animation-delay: 0.1s; }
.order-item:nth-child(3) { animation-delay: 0.15s; }
.order-item:nth-child(4) { animation-delay: 0.2s; }
.order-item:nth-child(5) { animation-delay: 0.25s; }

.order-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-md);
    border-left: 4px solid var(--harvest-gold);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.order-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-left-width: 6px;
}

.order-item.ordered {
    border-left-color: var(--leaf-green);
    background: var(--gray-100);
}

.order-item.ordered .order-variety {
    text-decoration: line-through;
    color: var(--gray-600);
}

.order-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--leaf-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.order-content {
    flex: 1;
}

.order-variety {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-xs);
}

.order-notes {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ==================== Old Seeds Section ==================== */
.old-seeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* Staggered old seed card animations */
.old-seed-card {
    animation: scaleIn 0.4s ease-out backwards;
}

.old-seed-card:nth-child(1) { animation-delay: 0.05s; }
.old-seed-card:nth-child(2) { animation-delay: 0.1s; }
.old-seed-card:nth-child(3) { animation-delay: 0.15s; }
.old-seed-card:nth-child(4) { animation-delay: 0.2s; }

.old-seed-card {
    background: linear-gradient(145deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + 10px);
    border: 2px dashed var(--harvest-gold);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.old-seed-card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='12' cy='12' rx='6' ry='9' fill='%23FFB300' opacity='0.4' transform='rotate(-30 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='3' ry='5' fill='%235D4037' opacity='0.3' transform='rotate(-30 12 12)'/%3E%3C/svg%3E");
    opacity: 0.7;
}

.old-seed-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-style: solid;
}

.old-seed-variety {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-sm);
}

.seed-age {
    display: inline-block;
    background: var(--warning-orange);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.germination-rate {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.germination-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.germination-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--terracotta), var(--harvest-gold));
    border-radius: 4px;
}

.germination-text {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 50px;
}

.old-seed-notes {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* ==================== Sprouts Section ==================== */
.sprouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* Staggered sprout card animations */
.sprout-card {
    animation: scaleIn 0.4s ease-out backwards;
}

.sprout-card:nth-child(1) { animation-delay: 0.05s; }
.sprout-card:nth-child(2) { animation-delay: 0.1s; }
.sprout-card:nth-child(3) { animation-delay: 0.15s; }
.sprout-card:nth-child(4) { animation-delay: 0.2s; }

.sprout-card {
    background: linear-gradient(145deg, var(--cream), #FFF8E1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 2px solid var(--terracotta);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.sprout-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.sprout-variety {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-sm);
}

.sprout-date {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
}

.sprout-location {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.sprout-notes {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* ==================== Microgreens Section ==================== */
.microgreens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* Staggered microgreen card animations */
.microgreen-card {
    animation: scaleIn 0.4s ease-out backwards;
}

.microgreen-card:nth-child(1) { animation-delay: 0.05s; }
.microgreen-card:nth-child(2) { animation-delay: 0.1s; }
.microgreen-card:nth-child(3) { animation-delay: 0.15s; }
.microgreen-card:nth-child(4) { animation-delay: 0.2s; }

.microgreen-card {
    background: linear-gradient(145deg, var(--cream), #E8F5E9);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 2px solid var(--leaf-green);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.microgreen-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.microgreen-variety {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-sm);
}

.microgreen-date {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
}

.microgreen-location {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.microgreen-notes {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-style: italic;
}

/* ==================== Fermenting Section ==================== */
.fermenting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Staggered ferment card animations */
.ferment-card {
    animation: scaleIn 0.4s ease-out backwards;
}

.ferment-card:nth-child(1) { animation-delay: 0.05s; }
.ferment-card:nth-child(2) { animation-delay: 0.1s; }
.ferment-card:nth-child(3) { animation-delay: 0.15s; }

.ferment-card {
    background: linear-gradient(145deg, #FFF8E1, #FFECB3);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 2px solid #FFC107;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.ferment-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

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

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

.ferment-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--earth-brown);
}

.ferment-type {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.ferment-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.ferment-status-active {
    background: #C8E6C9;
    color: #2E7D32;
}

.ferment-status-resting {
    background: #E3F2FD;
    color: #1565C0;
}

.ferment-status-paused {
    background: #FFECB3;
    color: #F57C00;
}

.ferment-detail {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
}

.ferment-notes {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px dashed #FFE082;
}

/* Fermenting carousel card styles */
.fermenting-carousel-card .ferment-icon {
    font-size: 1.3rem;
}

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

/* ==================== Charlie's Seeds Section ==================== */
.charlies-notice {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--warning-orange);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.charlies-notice::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 60 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 20 L40 10 L30 20 L20 10 L10 20' stroke='%23EF6C00' stroke-width='2' fill='none' opacity='0.15' stroke-linecap='round'/%3E%3Cpath d='M50 30 L40 20 L30 30 L20 20' stroke='%23EF6C00' stroke-width='2' fill='none' opacity='0.1' stroke-linecap='round'/%3E%3C/svg%3E");
    opacity: 0.8;
}

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

.charlies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* Staggered charlie card animations */
.charlie-card {
    animation: scaleIn 0.4s ease-out backwards;
}

.charlie-card:nth-child(1) { animation-delay: 0.05s; }
.charlie-card:nth-child(2) { animation-delay: 0.1s; }
.charlie-card:nth-child(3) { animation-delay: 0.15s; }
.charlie-card:nth-child(4) { animation-delay: 0.2s; }

.charlie-card {
    background: linear-gradient(145deg, var(--cream), #FFF8F0);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + 8px);
    border: 2px solid var(--warning-orange);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.charlie-card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 26' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='4' width='18' height='20' rx='2' fill='%23EF6C00' opacity='0.3'/%3E%3Crect x='2' y='4' width='18' height='6' rx='2' fill='%23EF6C00' opacity='0.5'/%3E%3Ccircle cx='11' cy='17' r='4' fill='%23FFB300' opacity='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.charlie-card:hover {
    box-shadow: 0 6px 16px rgba(239, 108, 0, 0.2);
    transform: translateY(-3px);
}

.charlie-variety {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-sm);
}

.return-date {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--warning-orange);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-md);
    width: fit-content;
}

.charlie-notes {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ==================== Georgina's Seeds Section ==================== */
.georginas-notice {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #FCE4EC, #F8BBD9);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid #E91E63;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.georginas-notice::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 30' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='6' fill='%23E91E63' opacity='0.12'/%3E%3Ccircle cx='35' cy='12' r='8' fill='%23E91E63' opacity='0.1'/%3E%3Ccircle cx='55' cy='18' r='5' fill='%23E91E63' opacity='0.12'/%3E%3Ccircle cx='70' cy='10' r='7' fill='%23E91E63' opacity='0.08'/%3E%3C/svg%3E");
}

.georginas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* Staggered georgina card animations */
.georgina-card {
    animation: scaleIn 0.4s ease-out backwards;
}

.georgina-card:nth-child(1) { animation-delay: 0.05s; }
.georgina-card:nth-child(2) { animation-delay: 0.1s; }
.georgina-card:nth-child(3) { animation-delay: 0.15s; }
.georgina-card:nth-child(4) { animation-delay: 0.2s; }

.georgina-card {
    background: linear-gradient(145deg, var(--cream), #FFF5F8);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 2px solid #E91E63;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.georgina-card:hover {
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.2);
    transform: translateY(-3px);
}

.georgina-card::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='14' r='12' fill='%23FCE4EC'/%3E%3Ccircle cx='14' cy='8' r='4' fill='%23E91E63' opacity='0.7'/%3E%3Ccircle cx='19' cy='12' r='4' fill='%23E91E63' opacity='0.7'/%3E%3Ccircle cx='17' cy='18' r='4' fill='%23E91E63' opacity='0.7'/%3E%3Ccircle cx='11' cy='18' r='4' fill='%23E91E63' opacity='0.7'/%3E%3Ccircle cx='9' cy='12' r='4' fill='%23E91E63' opacity='0.7'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23FFD54F'/%3E%3C/svg%3E");
    background-size: contain;
}

.georgina-variety {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-sm);
}

.flower-type {
    display: inline-block;
    background: #E91E63;
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.georgina-notes {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: var(--spacing-sm);
}

.georgina-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    background: #FFF5F8;
}

.georgina-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.georgina-card:hover .georgina-image {
    transform: scale(1.05);
}

.georgina-content {
    flex: 1;
}

.georgina-detail {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-700);
}

.georgina-detail strong {
    color: var(--earth-brown);
}

.georgina-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: #E91E63;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.georgina-link:hover {
    text-decoration: underline;
}

/* Carousel card images */
.carousel-card-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    background: #FFF5F8;
}

.carousel-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: #E91E63;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.carousel-card-link:hover {
    text-decoration: underline;
}

/* Planting card top section with thumbnail */
.planting-card-top {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--leaf-green), var(--leaf-dark));
}

/* Planting card thumbnails (Ben's seeds) */
.planting-image-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    cursor: pointer;
}

.planting-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.planting-image-wrapper:hover .planting-thumbnail {
    transform: scale(1.05);
}

.planting-card .planting-image-wrapper,
.current-carousel-card .planting-image-wrapper {
    background: var(--leaf-light);
}

/* Header adjustments when in card-top flex container */
.planting-card-top .planting-card-header,
.planting-card-top .carousel-card-header {
    flex: 1;
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.planting-card-top .planting-card-header::before,
.planting-card-top .planting-card-header::after {
    display: none;
}

/* Image placeholder for failed loads */
.georgina-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #E91E63;
    opacity: 0.4;
}

/* ==================== Modal ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
}

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

/* ==================== Plant Image Indicators ==================== */
.image-indicator {
    display: inline-block;
    font-size: 0.8em;
    margin-left: var(--spacing-xs);
    opacity: 0.6;
    transition: var(--transition-fast);
    vertical-align: middle;
}

.has-image {
    cursor: pointer;
}

.has-image:hover .image-indicator {
    opacity: 1;
    transform: scale(1.1);
}

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

/* ==================== Plant Info Modal Image ==================== */
.plant-info-image-wrapper {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    background: var(--cream-dark);
}

.plant-info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.plant-info-image-wrapper:hover .plant-info-image {
    transform: scale(1.02);
}

/* ==================== Fullscreen Image Modal ==================== */
.plant-image-fullscreen {
    text-align: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.fullscreen-caption {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--soil-dark);
    font-weight: 500;
}

/* Make Georgina's images clickable */
.georgina-image-wrapper {
    cursor: pointer;
}

.georgina-image-wrapper:hover .georgina-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.carousel-card-image-wrapper {
    cursor: pointer;
}

.carousel-card-image-wrapper:hover .carousel-card-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plant-info-image-wrapper {
        max-height: 250px;
    }

    .fullscreen-image {
        max-height: 60vh;
    }
}

/* Permission Denied Modal */
.permission-denied-content {
    max-width: 350px;
    text-align: center;
}

.permission-denied-body {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.permission-denied-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.permission-denied-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--soil-dark);
    margin: 0 0 var(--spacing-xs) 0;
}

.permission-denied-subtext {
    font-size: 1rem;
    color: var(--urgent-red);
    font-weight: 600;
    margin: 0 0 var(--spacing-lg) 0;
}

.permission-denied-close {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.permission-denied-close:hover {
    background: var(--primary-dark);
}

/* ==================== Login Modal ==================== */
.login-modal-content {
    max-width: 380px;
    text-align: center;
}

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

.login-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.login-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--soil-dark);
    margin: 0 0 var(--spacing-xs) 0;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 var(--spacing-lg) 0;
}

.login-error {
    background: #fef2f2;
    color: var(--urgent-red);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.85rem;
}

.login-form {
    text-align: left;
}

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

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--soil-dark);
    margin-bottom: var(--spacing-xs);
}

.login-form input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 141, 85, 0.15);
}

.login-submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: var(--spacing-sm);
}

.login-submit-btn:hover {
    background: var(--primary-dark);
}

.login-submit-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

/* ==================== User Status (Header) ==================== */
.user-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
}

.user-name {
    font-weight: 500;
}

.header-login-btn,
.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-login-btn:hover,
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hide user status elements based on login state */
.user-status.logged-out .user-name,
.user-status.logged-out .logout-btn {
    display: none;
}

.user-status.logged-in .header-login-btn {
    display: none;
}

/* ==================== Plant Info Card (Modal) ==================== */
.plant-info-card {
    max-width: 100%;
}

.plant-info-title {
    font-size: 1.5rem;
    color: var(--soil-dark);
    margin: 0 0 var(--spacing-md) 0;
    font-family: var(--font-heading);
}

.plant-info-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.plant-info-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--gray-600);
    font-size: 0.9rem;
}

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

.plant-info-section h3 {
    font-size: 1rem;
    color: var(--soil-brown);
    margin: 0 0 var(--spacing-sm) 0;
    font-family: var(--font-heading);
}

.plant-info-dates {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.plant-info-date {
    background: var(--cream-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.plant-info-date .date-label {
    font-weight: 600;
    color: var(--soil-brown);
}

.plant-info-care-list {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--gray-700);
}

.plant-info-care-list li {
    margin-bottom: var(--spacing-xs);
}

.plant-info-message {
    color: var(--gray-600);
    font-style: italic;
}

/* ==================== Footer ==================== */
.site-footer {
    background: linear-gradient(180deg, var(--soil-dark), #2D1F1A);
    color: var(--cream);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    font-size: 0.85rem;
    border-top: 4px solid var(--leaf-green);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='30' viewBox='0 0 100 30' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q10 20 20 25 Q30 15 40 22 Q50 10 60 20 Q70 12 80 22 Q90 18 100 25 L100 30 Z' fill='%2333691E'/%3E%3C/svg%3E");
    background-size: 100px 30px;
    background-repeat: repeat-x;
    opacity: 0.3;
}

/* ==================== Empty States ==================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--gray-600);
    position: relative;
}

.empty-state::before {
    content: '';
    display: block;
    width: 120px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 80' xmlns='http://www.w3.org/2000/svg'%3E%3C!-- Pot --%3E%3Cpath d='M35 50 L40 75 L80 75 L85 50 Z' fill='%23BF360C' opacity='0.3'/%3E%3Cpath d='M30 45 L90 45 L90 52 L30 52 Z' fill='%23BF360C' opacity='0.4'/%3E%3C!-- Soil --%3E%3Cellipse cx='60' cy='50' rx='22' ry='5' fill='%235D4037' opacity='0.3'/%3E%3C!-- Small sprout --%3E%3Cpath d='M60 50 L60 35' stroke='%238BC34A' stroke-width='2' opacity='0.5'/%3E%3Cpath d='M60 38 C55 35 55 30 60 32 C65 30 65 35 60 38' fill='%238BC34A' opacity='0.4'/%3E%3C!-- Dotted waiting lines --%3E%3Cpath d='M45 25 Q60 15 75 25' stroke='%23558B2F' stroke-width='1' stroke-dasharray='3,3' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

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

.empty-state p {
    font-style: italic;
}

/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .site-title {
        font-size: 1.2rem;
    }

    .current-date {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .user-status {
        order: 2;
        font-size: 0.75rem;
    }

    .header-login-btn,
    .logout-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.75rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-content {
        padding: var(--spacing-md);
    }

    .section {
        padding: var(--spacing-md);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 1.8rem;
    }

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

    .search-box {
        min-width: auto;
    }

    .filter-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .filter-group select {
        flex: 1;
        min-width: auto;
    }

    .plantings-table {
        font-size: 0.85rem;
    }

    .plantings-table th,
    .plantings-table td {
        padding: var(--spacing-sm);
    }

    .table-wrapper {
        position: relative;
    }

    .table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
        pointer-events: none;
    }

    /* Mobile: Show carousel, hide desktop table/grid */
    .planting-carousel,
    .mobile-carousel {
        display: block;
    }

    .table-wrapper.desktop-only,
    .desktop-only {
        display: none !important;
    }

    /* Carousel header with counter */
    .carousel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }

    .carousel-count {
        font-size: 0.9rem;
        color: var(--gray-600);
        font-weight: 500;
    }

    .carousel-count span {
        color: var(--earth-brown);
        font-weight: 700;
    }

    .carousel-filter-status {
        font-size: 0.8rem;
        color: var(--leaf-green);
        font-style: italic;
    }

    /* Scroll-snap carousel track */
    .carousel-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
        padding-bottom: var(--spacing-lg);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    /* Individual card styling */
    .planned-card {
        flex: 0 0 calc(100vw - var(--spacing-xl) * 2);
        max-width: 340px;
        scroll-snap-align: center;
        background: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        overflow: hidden;
        cursor: pointer;
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .planned-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-sm);
    }

    /* Card header */
    .planned-card-header {
        background: linear-gradient(135deg, var(--earth-brown-light), var(--earth-brown));
        color: var(--white);
        padding: var(--spacing-md) var(--spacing-lg);
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .planned-card-variety {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.3;
        flex: 1;
    }

    .planned-card-header .sowing-badge {
        background: rgba(255, 255, 255, 0.25);
        color: var(--white);
        margin-left: var(--spacing-xs);
    }

    .planned-card-header .stage-badge {
        flex-shrink: 0;
    }

    /* Card body */
    .planned-card-body {
        padding: var(--spacing-lg);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .planned-card-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: var(--spacing-md);
    }

    .planned-card-label {
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--gray-600);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        flex-shrink: 0;
    }

    .planned-card-value {
        font-size: 0.95rem;
        color: var(--soil-dark);
        text-align: right;
        word-break: break-word;
    }

    /* Urgency colors for sow date */
    .planned-card-value.urgency-overdue {
        color: var(--urgent-red);
        font-weight: 600;
    }

    .planned-card-value.urgency-this-week {
        color: var(--warning-orange);
        font-weight: 600;
    }

    /* Notes row - full width */
    .planned-card-notes {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
        padding-top: var(--spacing-sm);
        border-top: 1px solid var(--gray-200);
        margin-top: var(--spacing-xs);
    }

    .planned-card-notes .planned-card-value {
        text-align: left;
        font-size: 0.9rem;
        color: var(--gray-800);
        line-height: 1.4;
    }

    /* Card footer */
    .planned-card-footer {
        background: var(--cream);
        padding: var(--spacing-md) var(--spacing-lg);
        border-top: 1px solid var(--gray-200);
    }

    .planned-card-next {
        font-size: 0.85rem;
        color: var(--leaf-dark);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
    }

    .planned-card-next::before {
        content: '\2192';
        color: var(--leaf-green);
    }

    /* Dot indicators */
    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: var(--spacing-xs);
        padding: var(--spacing-md) 0;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gray-300);
        transition: all var(--transition-fast);
        cursor: pointer;
        border: none;
        padding: 0;
    }

    .carousel-dot.active {
        background: var(--leaf-green);
        width: 24px;
        border-radius: 4px;
    }

    /* Empty state for carousel */
    .carousel-empty {
        text-align: center;
        padding: var(--spacing-2xl);
        color: var(--gray-600);
        width: 100%;
    }

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

    /* Generic carousel card styles */
    .carousel-card {
        flex: 0 0 calc(100vw - var(--spacing-xl) * 2);
        max-width: 340px;
        scroll-snap-align: center;
        background: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }

    .carousel-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .carousel-card-header {
        padding: var(--spacing-md);
        background: linear-gradient(135deg, var(--leaf-light), var(--cream));
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .carousel-card-title {
        font-weight: 600;
        color: var(--earth-brown);
        font-size: 1rem;
        line-height: 1.3;
        flex: 1;
    }

    .carousel-card-body {
        padding: var(--spacing-md);
    }

    .carousel-card-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: var(--spacing-xs) 0;
        border-bottom: 1px solid var(--gray-100);
        gap: var(--spacing-sm);
    }

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

    .carousel-card-label {
        font-size: 0.8rem;
        color: var(--gray-600);
        font-weight: 500;
        flex-shrink: 0;
    }

    .carousel-card-value {
        font-size: 0.9rem;
        color: var(--soil-dark);
        text-align: right;
    }

    .carousel-card-notes {
        margin-top: var(--spacing-sm);
        padding: var(--spacing-sm);
        background: var(--cream);
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
        color: var(--gray-700);
        line-height: 1.4;
    }

    /* Task carousel card specific styles */
    .task-carousel-card .carousel-card-header {
        align-items: center;
    }

    .task-carousel-card .task-checkbox {
        flex-shrink: 0;
    }

    .task-carousel-card.completed {
        opacity: 0.6;
    }

    .task-carousel-card.completed .carousel-card-title {
        text-decoration: line-through;
        color: var(--gray-500);
    }

    .task-carousel-card.overdue .carousel-card-header {
        background: linear-gradient(135deg, #FFEBEE, var(--cream));
        border-left: 4px solid var(--urgent-red);
    }

    .task-carousel-card.this-week .carousel-card-header {
        background: linear-gradient(135deg, #FFF8E1, var(--cream));
        border-left: 4px solid var(--warning-orange);
    }

    .task-carousel-card.upcoming .carousel-card-header {
        border-left: 4px solid var(--leaf-green);
    }

    .task-date-value.overdue {
        color: var(--urgent-red);
        font-weight: 600;
    }

    .task-date-value.this-week {
        color: var(--warning-orange);
        font-weight: 600;
    }

    /* Current planting carousel card */
    .current-carousel-card .planting-location,
    .current-carousel-card .planting-progress,
    .current-carousel-card .care-notes {
        margin-top: var(--spacing-sm);
    }

    .current-carousel-card .progress-bar {
        height: 6px;
    }

    /* Bed carousel card styles */
    .bed-carousel-card {
        background: linear-gradient(145deg, var(--cream), var(--cream-dark));
        border: 2px solid var(--earth-brown-light);
    }

    .bed-carousel-card .bed-card-header {
        background: linear-gradient(135deg, var(--earth-brown-light), var(--earth-brown));
        color: var(--white);
        padding: var(--spacing-md) var(--spacing-lg);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bed-carousel-card .bed-name {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .bed-carousel-card .bed-dimensions {
        font-size: 0.85rem;
        opacity: 0.9;
        background: rgba(255, 255, 255, 0.15);
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: var(--radius-sm);
    }

    .bed-carousel-card .bed-card-body {
        padding: var(--spacing-lg);
    }

    .bed-carousel-card .bed-visual {
        background: linear-gradient(180deg, #5D4037 0%, #4E342E 100%);
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        min-height: 120px;
        position: relative;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .bed-carousel-card .bed-stats {
        display: flex;
        gap: var(--spacing-md);
        font-size: 0.85rem;
        color: var(--gray-600);
    }

    .bed-carousel-card .bed-stat {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
    }

    .bed-carousel-card .bed-notes {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        border-top: 1px solid var(--gray-200);
        font-size: 0.85rem;
        color: var(--gray-600);
        font-style: italic;
    }

    /* Compost carousel card styles */
    .compost-carousel-card {
        background: linear-gradient(145deg, var(--cream), var(--cream-dark));
        border: 2px solid var(--earth-brown-light);
    }

    .compost-carousel-card .compost-card-header {
        background: linear-gradient(135deg, var(--earth-brown), var(--soil-dark));
        color: var(--white);
        padding: var(--spacing-md) var(--spacing-lg);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .compost-carousel-card .compost-name {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .compost-carousel-card .compost-dimensions {
        font-size: 0.85rem;
        opacity: 0.9;
        background: rgba(255, 255, 255, 0.15);
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: var(--radius-sm);
    }

    .compost-carousel-card .compost-card-body {
        padding: var(--spacing-lg);
    }

    .compost-carousel-card .compost-visual {
        background: linear-gradient(180deg, #5D4037 0%, #4E342E 100%);
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        height: 120px;
        position: relative;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .compost-carousel-card .compost-layers {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .compost-carousel-card .compost-empty-message {
        color: rgba(255, 255, 255, 0.6);
        font-style: italic;
        text-align: center;
        padding: var(--spacing-lg);
    }

    .compost-carousel-card .compost-stats {
        display: flex;
        gap: var(--spacing-md);
        font-size: 0.85rem;
        color: var(--gray-600);
    }

    .compost-carousel-card .compost-stat {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
    }

    .compost-carousel-card .compost-notes {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        border-top: 1px solid var(--gray-200);
        font-size: 0.85rem;
        color: var(--gray-600);
        font-style: italic;
    }

    /* Badge styles for carousel cards */
    .seed-age-badge,
    .flower-type-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
        background: var(--leaf-light);
        color: var(--leaf-dark);
        border-radius: 12px;
        white-space: nowrap;
    }

    .germination-value {
        color: var(--leaf-green);
    }

    .plantings-grid,
    .old-seeds-grid,
    .sprouts-grid,
    .microgreens-grid,
    .fermenting-grid,
    .charlies-grid,
    .georginas-grid {
        grid-template-columns: 1fr;
    }

    .timeline-controls {
        flex-wrap: wrap;
    }

    .timeline-variety {
        min-width: 80px;
        max-width: 140px;
        font-size: 0.75rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }

    .task-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    /* Hide decorative elements on mobile for cleaner look */
    .section::before {
        display: none;
    }

    .section::after {
        display: none;
    }

    .section-title::before {
        width: 16px;
        height: 16px;
    }

    .info-card {
        padding-right: var(--spacing-lg);
    }

    .info-card::after {
        display: none;
    }

    body::after {
        display: none;
    }

    /* Simplify header on mobile */
    .site-header::before {
        opacity: 0.5;
    }

    /* Reduce animation delays on mobile for snappier feel */
    .stat-card,
    .planting-card,
    .task-item,
    .order-item,
    .old-seed-card,
    .sprout-card,
    .microgreen-card,
    .charlie-card,
    .georgina-card {
        animation-delay: 0s !important;
        animation-duration: 0.2s !important;
    }

    /* Hide decorative notice backgrounds on mobile */
    .charlies-notice::after,
    .georginas-notice::after {
        display: none;
    }

    .georginas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust carousel for extra small screens */
    .planned-card {
        flex: 0 0 calc(100vw - var(--spacing-lg) * 2);
    }

    .planned-card-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .planned-card-body {
        padding: var(--spacing-md);
    }

    .planned-card-footer {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .timeline-legend {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .timeline-legend::before {
        display: none;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    /* Smaller section title on very small screens */
    .section-title {
        font-size: 1.3rem;
    }

    .section-title::before {
        display: none;
    }

    .section-title::after {
        width: 40px;
    }

    /* Compact stat cards */
    .stat-card {
        padding: var(--spacing-md);
    }

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

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

    /* Hide card decorations on very small screens */
    .planting-card-header::after,
    .old-seed-card::before,
    .charlie-card::before,
    .georgina-card::before {
        display: none;
    }

    /* Simplify footer */
    .site-footer::before {
        display: none;
    }
}

/* ==================== AI Chatbox ==================== */
.chat-container {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 500;
    font-family: inherit;
}

/* Floating toggle button */
.chat-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(145deg, var(--leaf-green), var(--leaf-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
}

.chat-toggle:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.chat-toggle-icon {
    font-size: 1.3rem;
}

.chat-toggle.hidden {
    display: none;
}

/* Chat panel */
.chat-panel {
    display: none;
    flex-direction: column;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: chatSlideIn 0.3s ease-out;
}

.chat-panel.open {
    display: flex;
}

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

/* Chat header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--leaf-green), var(--leaf-dark));
    color: var(--white);
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
}

.chat-header-icon {
    font-size: 1.2rem;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.chat-message {
    max-width: 85%;
    animation: messageSlide 0.3s ease-out;
}

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

.chat-message.user {
    align-self: flex-end;
}

.chat-message.assistant {
    align-self: flex-start;
}

.chat-message-content {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.user .chat-message-content {
    background: linear-gradient(145deg, var(--leaf-light), var(--leaf-green));
    color: var(--white);
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message.assistant .chat-message-content {
    background: var(--cream);
    color: var(--soil-dark);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message.error .chat-message-content {
    background: #FFEBEE;
    color: var(--urgent-red);
    border-left: 3px solid var(--urgent-red);
}

/* Loading indicator */
.chat-message.loading .chat-message-content {
    display: flex;
    gap: 4px;
    padding: var(--spacing-md);
}

.chat-loading-dot {
    width: 8px;
    height: 8px;
    background: var(--leaf-green);
    border-radius: 50%;
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

.chat-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input area */
.chat-input-area {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.chat-input-area textarea {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    transition: border-color 0.2s ease;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--leaf-green);
}

/* Microphone button */
.chat-mic {
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-mic:hover:not(:disabled):not(.recording) {
    background: var(--gray-300);
    transform: scale(1.05);
}

.chat-mic.recording {
    background: var(--urgent-red);
    color: var(--white);
    animation: micPulse 1s ease-in-out infinite;
}

.chat-mic.unsupported {
    display: none;
}

@keyframes micPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
}

.chat-send {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, var(--leaf-green), var(--leaf-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

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

/* Footer buttons */
.chat-footer {
    display: flex;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 0.75rem;
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.chat-footer button:hover {
    color: var(--leaf-green);
    background: var(--cream);
}

/* Chat mobile responsiveness */
@media (max-width: 768px) {
    .chat-container {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }

    .chat-toggle-text {
        display: none;
    }

    .chat-toggle {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }

    .chat-toggle-icon {
        font-size: 1.5rem;
    }

    .chat-panel {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 70vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

@media (max-width: 480px) {
    .chat-panel {
        height: 80vh;
    }
}

/* Chat reduced motion */
@media (prefers-reduced-motion: reduce) {
    .chat-panel,
    .chat-message,
    .chat-loading-dot {
        animation: none;
    }
}

/* Chat print - hide chatbox */
@media print {
    .chat-container {
        display: none !important;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes checkmarkPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes taskComplete {
    0% { background-color: var(--leaf-light); }
    100% { background-color: var(--gray-200); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.section {
    animation: fadeIn 0.4s ease-out;
}

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

/* ==================== Georgina View (when logged in) ==================== */
.georgina-view .georginas-section {
    /* Highlight section when it's prioritized at top */
    background: linear-gradient(135deg, #FFF5F8, #FCE4EC);
    border: 2px solid #E91E63;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.15);
}

.georgina-view .georginas-section .section-title {
    color: #C2185B;
}

.georgina-view .georginas-section .section-title::after {
    content: ' 🌸';
}

/* Style the nav link for Georgina */
#georginasNavLink a {
    background: linear-gradient(135deg, #FCE4EC, #F8BBD9);
    color: #C2185B;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

#georginasNavLink a:hover {
    background: #E91E63;
    color: white;
}

/* Collapsible sections */
.collapsible-section {
    position: relative;
}

.collapsible-section .section-title.collapse-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.collapsible-section .section-title.collapse-toggle:hover {
    opacity: 0.8;
}

.collapsible-section .collapse-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

/* Collapsed state */
.collapsible-section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapsible-section.collapsed > *:not(.section-title) {
    display: none;
}

.collapsible-section.collapsed {
    padding-bottom: var(--spacing-md);
}

/* Veg section divider */
.section-divider.veg-divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--leaf-light), #E8F5E9);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--leaf-green);
}

.section-divider .divider-icon {
    font-size: 1.5rem;
}

.section-divider .divider-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--earth-brown);
}

.section-divider .divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--leaf-green), transparent);
}

/* ==================== Ben's Seeds Section ==================== */
.bens-seeds-section {
    background: var(--cream);
}

.bens-seeds-section .section-title {
    color: var(--leaf-dark);
}

.bens-seeds-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.bens-seeds-subsection h3 {
    color: var(--earth-brown);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--gray-300);
}

.bens-current-grid,
.bens-planned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.bens-seed-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--leaf-green);
    box-shadow: var(--shadow-sm);
}

.bens-seed-variety {
    font-weight: 600;
    color: var(--earth-brown);
    margin-bottom: var(--spacing-xs);
}

.bens-seed-stage,
.bens-seed-date {
    font-size: 0.9rem;
    color: var(--leaf-dark);
}

.bens-seed-location {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: var(--spacing-xs);
}

.empty-state-small {
    color: var(--gray-500);
    font-style: italic;
    text-align: center;
    padding: var(--spacing-md);
}

/* Empty state hint for Georgina's sections */
.empty-state-hint {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: var(--spacing-sm);
}

/* ==================== Toast Notifications ==================== */
.planting-update-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--soil-rich);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 90%;
    cursor: pointer;
}

.planting-update-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.planting-update-toast .toast-icon {
    width: 24px;
    height: 24px;
    background: var(--leaf-bright);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.planting-update-toast .toast-message {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.planting-update-toast .toast-message strong {
    font-size: 0.9rem;
}

.planting-update-toast .toast-message span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ==================== Print Styles ==================== */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu-btn,
    .task-checkbox,
    .order-checkbox,
    .care-notes-toggle,
    .timeline-nav-btn,
    #frostBanner {
        display: none !important;
    }

    .section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }

    body {
        background: white;
    }

    body::before {
        display: none;
    }
}
