/* Garden Planner - Complete Clean Stylesheet */

:root {
    --primary-color: #2d7a3e;
    --secondary-color: #5cb874;
    --border-color: #ddd;
    --background: #e9ecef;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    border-bottom: none;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.navbar h1 {
    color: white;
    font-size: 1.8rem;
}

.navbar h1 a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #236030;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

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

.btn-edit:hover {
    background: #4fa768;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

.form-control-inline {
    width: 150px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-left: 0.5rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Info Box */
.info-box {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Planning Wizard */
.planning-wizard {
    max-width: 900px;
    margin: 0 auto;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 0 1rem;
}

.wizard-progress .step {
    color: #999;
    font-weight: 500;
}

.wizard-progress .step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.wizard-progress .step.done {
    color: var(--secondary-color);
}

.wizard-step {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wizard-step h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.wizard-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Group Selection */
.group-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.group-radio-option {
    position: relative;
    cursor: pointer;
}

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

.group-label {
    display: block;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    background: white;
}

.group-radio-option input[type="radio"]:checked + .group-label {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.group-radio-option:hover .group-label {
    border-color: var(--secondary-color);
}

/* Space Grid */
.space-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.space-radio-option {
    position: relative;
    cursor: pointer;
}

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

.space-label {
    display: block;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    background: white;
}

.space-radio-option input[type="radio"]:checked + .space-label {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.space-radio-option:hover .space-label {
    border-color: var(--secondary-color);
}

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

.allocation-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tasks Overview */
.tasks-overview h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.stat-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0;
}

.stat-card p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 1.1rem;
}

.stat-card.completed {
    border-color: var(--secondary-color);
}

.stat-card.completed h3 {
    color: var(--secondary-color);
}

/* Weekend Accordion */
.weekends-accordion {
    margin-top: 1.5rem;
}

.weekend-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.weekend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.weekend-header:hover {
    background: #f8f9fa;
}

.weekend-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weekend-info strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.task-count-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.accordion-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.weekend-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.loading-tasks {
    padding: 1rem;
    text-align: center;
    color: #666;
}

/* Task Cards Expanded */
.weekend-tasks-expanded {
    padding: 0.5rem 0;
}

.task-group {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
}

.task-group h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.1rem;
}

.task-card-expanded {
    position: relative;
    padding-left: 3.5rem;
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    padding-left: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.task-card-expanded:last-child {
    margin-bottom: 0;
}

/* Legacy task-checkbox styles for task-card-expanded (keep for backward compatibility) */
.task-card-expanded .task-checkbox {
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    display: block;
    cursor: pointer;
}

.task-card-expanded .task-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: block;
    height: 24px;
    width: 24px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.task-checkbox:hover .checkmark {
    background-color: #f0f0f0;
}

.task-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.task-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.task-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.task-card-expanded.completed {
    opacity: 0.6;
    background: #e9ecef;
}

.task-card-expanded.completed .task-title strong {
    text-decoration: line-through;
    color: #6c757d;
}

.task-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.task-title strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.task-note {
    color: #666;
    margin: 0.5rem 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
}

.task-location {
    color: #dc3545;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

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

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.no-tasks {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* Completed Tasks Page */
.completed-tasks-list {
    margin-top: 2rem;
}

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

.task-card-completed .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.task-card-completed h4 {
    margin: 0;
    color: var(--primary-color);
}

.completion-date {
    color: var(--secondary-color);
    font-weight: 500;
}

.task-card-completed .task-details p {
    margin: 0.5rem 0;
    color: #666;
}

.task-card-completed .task-details strong {
    color: #333;
}

/* Vegetable Library */
.vegetables-list h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.veg-groups {
    margin-top: 2rem;
}

.veg-group-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.group-header:hover {
    background: #f8f9fa;
}

.group-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.group-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.group-content {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

.veg-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.veg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.veg-card h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.veg-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.veg-details {
    color: #666;
    font-size: 0.9rem;
}

.veg-details p {
    margin: 0.5rem 0;
}

.veg-details strong {
    color: #333;
}

/* Space Planner */
.spaces-overview h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.space-card.has-allocations {
    border-color: var(--primary-color);
}

.space-card.over-allocated {
    border-color: #dc3545;
    background: #fff5f5;
}

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

.space-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.space-type-badge {
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #666;
}

.space-capacity {
    text-align: right;
    font-size: 1.1rem;
}

.space-capacity .allocated {
    color: var(--primary-color);
    font-weight: 600;
}

.space-capacity .separator {
    color: #999;
    margin: 0 0.5rem;
}

.space-capacity .total {
    color: #666;
}

.space-capacity .percentage {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.25rem;
}

.warning-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.space-bar {
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.space-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    display: inline-block;
    vertical-align: top;
}

.space-bar-fill.over {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.space-bar-fill.row-allocation {
    background: linear-gradient(90deg, #1976d2, #1565c0);
}

.space-bar-fill.block-allocation {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.plantings-list {
    margin: 1.5rem 0;
}

.plantings-list h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.planting-item {
    background: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.planting-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.planting-info strong {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.planting-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.space-allocation {
    font-weight: 500;
}

.planting-dates {
    color: #999;
}

.no-plantings {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.space-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.available-space {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-table thead {
    background: var(--primary-color);
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table .actions {
    white-space: nowrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #999;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .group-selection,
    .space-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wizard-progress {
        font-size: 0.85rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .space-header {
        flex-direction: column;
    }
    
    .space-capacity {
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .veg-grid {
        grid-template-columns: 1fr;
    }
}


/* Shopping List Styles */
.shopping-list {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

.summary-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.summary-card h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0;
}

.summary-card p {
    margin: 0.5rem 0 0 0;
    color: #666;
}

.shopping-group {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shopping-group h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.shopping-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.shopping-item-card {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.item-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.batch-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.item-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

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

.detail-row .value {
    color: #333;
    font-weight: 600;
}

.item-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.item-notes input[type="checkbox"] {
    margin-right: 0.5rem;
}

.item-notes label {
    cursor: pointer;
    color: #666;
}

@media (max-width: 768px) {
    .shopping-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .shopping-summary {
        grid-template-columns: 1fr;
    }
    
    .shopping-items-grid {
        grid-template-columns: 1fr;
    }
}


/* Simplified Shopping List Table */
.shopping-table-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shopping-table {
    width: 100%;
    border-collapse: collapse;
}

.shopping-table thead {
    background: var(--primary-color);
    color: white;
}

.shopping-table th,
.shopping-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.shopping-table tbody tr:hover {
    background: #f8f9fa;
}

.checkbox-col {
    width: 50px;
    text-align: center;
}

.checkbox-col input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.veg-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.varieties {
    text-align: center;
}

.variety-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

.seeds, .plants {
    color: #666;
    font-weight: 500;
}


/* Year Selector */
.year-selector {
    display: flex;
    align-items: center;
}

.year-selector select {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.year-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.2);
}

/* Simple Task List Layout (Original Design) */
.tasks-list-simple {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.task-item-simple {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
}

.task-item-simple.completed {
    opacity: 0.6;
}

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

/* Task checkbox for task-item-simple (weekend tasks) */
.task-item-simple .task-checkbox {
    display: block !important;
    visibility: visible !important;
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color, #28a745);
}

.task-item-simple {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* Task Filter Box Hover Effects */
.task-filters a {
    display: block;
}

.task-filters a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.task-content-simple {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-type-simple {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.task-vegetable {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.task-vegetable strong {
    font-size: 1.1rem;
    color: #333;
}

.task-instruction {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #e9ecef;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.instruction-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.instruction-text {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

.task-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.location-icon {
    color: #dc3545;
    font-size: 1rem;
}

.task-location strong {
    color: #dc3545;
    font-size: 0.95rem;
}

/* ============================================
   USER DROPDOWN MENU
   ============================================ */

/* User dropdown container */
.user-dropdown {
    position: relative;
}

/* User dropdown toggle button */
.user-dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    line-height: 1.6;
    transition: color 0.3s, background-color 0.3s;
    text-decoration: none;
    vertical-align: baseline;
}

.user-dropdown-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Dropdown menu (hidden by default) */
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    margin-top: 0.5rem;
    z-index: 1000;
}

/* Show dropdown when active */
.user-dropdown-menu.show {
    display: block;
}

/* Dropdown items */
.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #000 !important;
    text-decoration: none;
    transition: background-color 0.2s;
    font-weight: 500;
}

.user-dropdown-menu .dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown-menu .dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f0f7f1;
    color: #2d7a3e !important;
}

/* Divider between items (optional) */
.user-dropdown-menu .dropdown-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: auto;
        left: 0;
    }
    
    .user-dropdown-toggle {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* ============================================
   FROST DATES - THREE THRESHOLD DISPLAY
   ============================================ */

.frost-thresholds-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.threshold-card {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.threshold-card.hardy {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.threshold-card.half-hardy {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.threshold-card.tender {
    background: #ffebee;
    border-left-color: #f44336;
}

.threshold-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.threshold-card p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.threshold-card small {
    color: #666;
    font-style: italic;
}

/* ============================================
   CEDA FROST DATE LOOKUP
   ============================================ */

.ceda-lookup-box {
    background: #f0f7f1;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.ceda-lookup-box h3 {
    margin-top: 0;
    color: #2d7a3e;
}

.postcode-input-group {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.postcode-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.ceda-results-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #2d7a3e;
}

.frost-threshold-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Single row layout for CEDA lookup results */
.frost-threshold-results-row {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: nowrap; /* Force single row - no wrapping */
}

.frost-threshold-results-row .threshold-box {
    flex: 1 1 0; /* Equal width, no grow/shrink, basis 0 */
    min-width: 0; /* Allow shrinking below content size */
}

.threshold-box {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    box-sizing: border-box; /* Include padding in width calculation */
}

.threshold-box.hardy {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.threshold-box.half-hardy {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.threshold-box.tender {
    background: #ffebee;
    border-left-color: #f44336;
}

.threshold-box h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.threshold-box p {
    margin: 0.25rem 0;
}

.threshold-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem !important;
}

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

.ceda-info {
    margin-top: 1rem;
    text-align: center;
    color: #666;
}

.error-message {
    color: #d32f2f;
    background: #ffebee;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
    margin-top: 1rem;
}

.warning-message {
    color: #f57c00;
    background: #fff3e0;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #f57c00;
}

.current-frost-dates {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.current-frost-dates p {
    margin: 0.5rem 0;
}

/* ============================================
   MANUAL FROST DATE ENTRY
   ============================================ */

.manual-entry-details {
    margin: 1.5rem 0;
}

.manual-entry-summary {
    cursor: pointer;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    list-style: none; /* Remove default arrow */
    user-select: none;
}

.manual-entry-summary::-webkit-details-marker {
    display: none; /* Remove default arrow in WebKit */
}

.manual-entry-summary::before {
    content: '▶ ';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
}

.manual-entry-details[open] .manual-entry-summary::before {
    transform: rotate(90deg);
}

.manual-entry-summary h3 {
    margin: 0;
    color: #495057;
    display: inline;
}

.manual-entry-box {
    background: #f8f9fa;
    padding: 1rem; /* Reduced padding */
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid #dee2e6;
    border-top: none;
    overflow-x: auto; /* Allow horizontal scroll if needed on very small screens */
}

.manual-frost-form {
    margin-top: 1rem;
}

.frost-manual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force exactly 3 columns in one row */
    gap: 0.75rem; /* Reduced gap to fit better */
    margin: 1rem 0; /* Reduced margin */
    width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
    .frost-manual-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
}

.manual-threshold-group {
    padding: 0.75rem; /* Reduced padding to fit better */
    border-radius: 8px;
    border-left: 4px solid;
}

.manual-threshold-group.hardy-group {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.manual-threshold-group.half-hardy-group {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.manual-threshold-group.tender-group {
    background: #ffebee;
    border-left-color: #f44336;
}

.manual-threshold-group h4 {
    margin-top: 0;
    margin-bottom: 0.75rem; /* Reduced margin */
    font-size: 0.95rem; /* Slightly smaller font */
}

.manual-threshold-group .form-group {
    margin-bottom: 0.75rem; /* Reduced margin */
}

.manual-threshold-group .form-group:last-child {
    margin-bottom: 0;
}

.manual-threshold-group label {
    display: block;
    font-size: 0.8rem; /* Slightly smaller */
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

.manual-threshold-group input[type="date"] {
    width: 100%;
    padding: 0.4rem; /* Reduced padding */
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.8rem; /* Slightly smaller */
    box-sizing: border-box; /* Include padding in width */
}

.form-actions {
    margin-top: 1.5rem;
    text-align: right;
}
