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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #a8e6cf 0%, #81c784 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: white;
    color: #4caf50;
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #e8f5e9;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Weather Widget */
.weather-widget {
    position: absolute;
    top: 30px;
    right: 30px;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e8f5e9;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

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

.weather-temp {
    font-weight: 700;
    color: #4caf50;
    font-size: 1.1rem;
}

.weather-desc {
    color: #6c757d;
    font-size: 0.85rem;
}

.weather-loading,
.weather-error {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 4px;
}

/* Tabs */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    color: #4caf50;
    border-bottom-color: #4caf50;
    background: white;
}

/* Tab Content */
main {
    padding: 30px;
    min-height: 500px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Plant Subtabs */
.plant-subtabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.plant-subtab-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plant-subtab-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
}

.plant-subtab-btn.active {
    color: #4caf50;
    background: #e8f5e9;
    border-color: #4caf50;
    font-weight: 600;
}

/* Frost Alert */
.frost-alert {
    margin: 0 0 20px 0;
    padding: 20px;
    border-radius: 12px;
    border: 3px solid;
    animation: fadeIn 0.5s ease;
}

.frost-alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.frost-alert-freeze {
    background: #f8d7da;
    border-color: #dc3545;
}

.frost-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 5px;
    border-radius: 8px;
    margin: -5px;
}

.frost-alert-header:hover {
    background: rgba(0, 0, 0, 0.05);
}

.frost-header-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.frost-alert-header strong {
    font-size: 1.2rem;
    color: #333;
}

.frost-temp {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.frost-expand-icon {
    font-size: 1.2rem;
    color: #666;
    margin-left: 15px;
    transition: transform 0.2s ease;
}

.frost-instructions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.frost-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.frost-alert-warning .frost-section {
    border-left-color: #ffc107;
}

.frost-alert-freeze .frost-section {
    border-left-color: #dc3545;
}

.frost-section strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #333;
}

.frost-section p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

.frost-section ul {
    margin: 8px 0 0 20px;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}

.frost-section li {
    margin-bottom: 4px;
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.calendar-header h2 {
    font-size: 1.8rem;
    color: #333;
}

.nav-btn {
    background: #66bb6a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #4caf50;
    transform: scale(1.05);
}

.calendar-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.today-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.today-btn:hover {
    background: #388e3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 30px;
}

.day-name {
    text-align: center;
    font-weight: 600;
    color: #4caf50;
    padding: 10px;
    font-size: 0.9rem;
}

#calendarDays {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
    color: #495057;
}

.calendar-day:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #e8f5e9;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.today {
    background: #66bb6a;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.4);
}

.calendar-day.past {
    background: #e9ecef;
    color: #adb5bd;
}

.calendar-day.past::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent calc(50% - 1.5px), #d8dde1 calc(50% - 1.5px), #d8dde1 calc(50% + 1.5px), transparent calc(50% + 1.5px));
    pointer-events: none;
}

.calendar-day.has-tasks {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.calendar-day.has-tasks.past {
    background: #e9ecef;
    color: #adb5bd;
    font-weight: 600;
}

.calendar-day.today.has-tasks {
    background: #66bb6a;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.4);
}

.calendar-day.selected {
    outline: 3px solid #388e3c;
    outline-offset: 2px;
}

.task-indicators {
    position: absolute;
    bottom: 4px;
    left: 4px;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    max-width: 90%;
}

.task-indicator {
    width: 6px;
    height: 6px;
    background: #6c757d;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-indicator.indicator-water { background: #0066cc; }
.task-indicator.indicator-fertilize { background: #f39c12; }
.task-indicator.indicator-harvest { background: #28a745; }
.task-indicator.indicator-plant { background: #e74c3c; }
.task-indicator.indicator-prune { background: #5dade2; }
.task-indicator.indicator-thin { background: #d4a574; }
.task-indicator.indicator-mulch { background: #8b4513; }
.task-indicator.indicator-shade { background: #8e44ad; }

/* Task Legend */
.task-legend {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.task-legend h4 {
    color: #4caf50;
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.legend-water { background: #0066cc; }
.legend-dot.legend-fertilize { background: #f39c12; }
.legend-dot.legend-harvest { background: #28a745; }
.legend-dot.legend-plant { background: #e74c3c; }
.legend-dot.legend-prune { background: #5dade2; }
.legend-dot.legend-thin { background: #d4a574; }
.legend-dot.legend-mulch { background: #8b4513; }
.legend-dot.legend-shade { background: #8e44ad; }

.legend-label {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

/* Recurring Reminder */
.recurring-reminder {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 12px;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
}

.recurring-reminder h4 {
    color: #856404;
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
}

.recurring-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.recurring-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recurring-details {
    flex: 1;
}

.recurring-details strong {
    color: #856404;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 5px;
}

.recurring-details p {
    color: #856404;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: block;
}

.modal-content {
    position: absolute;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f8f9fa;
    gap: 15px;
}

.modal-header h3 {
    color: #4caf50;
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
    text-align: center;
}

.modal-nav {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #4caf50;
    cursor: pointer;
    padding: 8px 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-nav:hover {
    background: #e8f5e9;
    transform: scale(1.1);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 20px 30px 30px;
    overflow-y: auto;
    flex: 1;
}

.task-section {
    margin-bottom: 20px;
}

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

.task-section-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4caf50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
}

.task-list {
    list-style: none;
}

.task-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-item.task-water { border-left-color: #0066cc; }
.task-item.task-fertilize { border-left-color: #f39c12; }
.task-item.task-harvest { border-left-color: #28a745; }
.task-item.task-plant { border-left-color: #e74c3c; }
.task-item.task-prune { border-left-color: #5dade2; }
.task-item.task-thin { border-left-color: #d4a574; }
.task-item.task-mulch { border-left-color: #8b4513; }
.task-item.task-shade { border-left-color: #8e44ad; }

.task-item h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.task-item p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.task-bed-info {
    font-size: 0.85rem;
    color: #4caf50;
    font-weight: 600;
    margin-top: 8px;
}

/* Garden Bed Visualization */
.garden-beds {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    align-items: center;
}

.bed-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.bed {
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.bed.active {
    background: #d4edda;
    border-color: #4caf50;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.west-bed {
    width: 100px;
    height: 60px;
}

.east-bed {
    width: 200px;
    height: 60px;
}

.bed-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bed.active .bed-label {
    color: #2e7d32;
}

/* Plants Tab */
.plants-accordion {
    padding: 20px 0;
}

.plant-section {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.plant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #e8f5e9;
    cursor: pointer;
    transition: background 0.2s ease;
    border-left: 4px solid #4caf50;
}

.plant-header:hover {
    background: #c8e6c9;
}

.plant-icon {
    font-size: 0.8rem;
    color: #4caf50;
    width: 15px;
    transition: transform 0.2s ease;
}

.plant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e7d32;
    text-transform: capitalize;
    flex: 1;
}

.task-count {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.plant-content {
    padding: 0;
    background: white;
}

/* Single Page Scrollable Layout */
.plant-guide {
    padding: 25px;
}

.guide-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.guide-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-heading {
    color: #4caf50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.quick-ref-section .quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-ref-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 3px solid #4caf50;
    text-align: center;
}

.quick-ref-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 700;
}

.quick-ref-value {
    font-size: 0.8rem;
    color: #2e7d32;
    font-weight: 400;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-item {
    padding: 0;
}

.content-item strong {
    display: block;
    color: #2e7d32;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.content-item p {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.content-item.phoenix-tips {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.content-item.phoenix-tips strong {
    color: #856404;
}

.content-item.phoenix-tips p {
    color: #856404;
}

.companion-good {
    color: #28a745;
    font-weight: 600;
}

.companion-avoid {
    color: #dc3545;
    font-weight: 600;
}

.pest-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.pest-list li {
    background: white;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 4px;
    color: #495057;
    font-size: 0.9rem;
    border-left: 3px solid #f39c12;
}

.pest-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.plant-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plant-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.plant-task-item:last-child {
    border-bottom: none;
}

.plant-task-item:hover {
    background: #f8f9fa;
}

.task-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4caf50;
    min-width: 60px;
}

.task-title {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
}

.task-action-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.task-action-badge.water { background: #0066cc; }
.task-action-badge.fertilize { background: #f39c12; }
.task-action-badge.harvest { background: #28a745; }
.task-action-badge.plant { background: #e74c3c; }
.task-action-badge.prune { background: #5dade2; }
.task-action-badge.thin { background: #d4a574; }
.task-action-badge.mulch { background: #8b4513; }
.task-action-badge.shade { background: #8e44ad; }

/* Weather Forecast */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.forecast-day {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forecast-day:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.forecast-day.selected {
    border-color: #4caf50;
    background: #e8f5e9;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.forecast-day-name {
    font-weight: 700;
    color: #4caf50;
    font-size: 1rem;
    margin-bottom: 4px;
}

.forecast-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.forecast-icon {
    font-size: 2.5rem;
    margin: 10px 0;
}

.forecast-temps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.temp-high {
    font-weight: 700;
    color: #e74c3c;
    font-size: 1.1rem;
}

.temp-low {
    color: #3498db;
    font-size: 1.1rem;
}

.forecast-precip {
    font-size: 0.8rem;
    color: #3498db;
    margin-top: 8px;
    font-weight: 600;
}

.forecast-loading,
.forecast-error {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1rem;
}

/* Forecast Details */
.forecast-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e9ecef;
}

.forecast-details h3 {
    color: #4caf50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.gardening-alerts {
    background: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #ffc107;
    margin-top: 20px;
}

.gardening-alerts h4 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 1rem;
}

.alert-item {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    color: #856404;
    font-size: 0.9rem;
    border-left: 3px solid #ffc107;
}

.alert-item:last-child {
    margin-bottom: 0;
}

/* Hourly Timeline Chart */
.hourly-timeline {
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.hourly-timeline h4 {
    color: #4caf50;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
}

.timeline-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
}

.hour-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hour-time {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    margin-top: 4px;
}

.temp-bar-container {
    position: relative;
    height: 180px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-top: 25px;
}

.temp-bar {
    width: 100%;
    background: linear-gradient(to top, #66bb6a, #4caf50);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 20px;
}

.temp-bar:hover {
    background: linear-gradient(to top, #4caf50, #388e3c);
}

.temp-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.hour-icon {
    font-size: 1.2rem;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.precip-value {
    font-size: 0.7rem;
    color: #3498db;
    font-weight: 600;
}

.wind-value {
    font-size: 0.7rem;
    color: #6c757d;
}

.uv-indicator {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    margin-top: 4px;
}

.uv-low { background: #4caf50; }
.uv-moderate { background: #ffeb3b; }
.uv-high { background: #ff9800; }
.uv-very-high { background: #f44336; }
.uv-extreme { background: #9c27b0; }

/* Quick Reference Tab */
.reference-section {
    margin-bottom: 40px;
}

.reference-section:first-of-type {
    margin-top: 25px;
}

.reference-section h3 {
    color: #4caf50;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.pest-grid,
.companion-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pest-card,
.companion-card,
.product-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.pest-card:hover,
.companion-card:hover,
.product-card:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.pest-image {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.pest-card h4,
.companion-card h4,
.product-card h4 {
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-align: center;
}

.pest-card p,
.companion-card p,
.product-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 10px;
}

.pest-card p:last-child,
.companion-card p:last-child,
.product-card p:last-child {
    margin-bottom: 0;
}

.pest-card strong,
.companion-card strong,
.product-card strong {
    color: #333;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 20px 15px;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .day-name {
        font-size: 0.8rem;
        padding: 8px 4px;
    }

    .task-display {
        padding: 15px;
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 1rem;
    }

    .calendar-header h2 {
        font-size: 1.4rem;
    }

    .task-legend {
        margin-top: 20px;
        padding: 15px;
    }

    .legend-items {
        gap: 10px;
    }

    .legend-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        border-radius: 10px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .tab-btn {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .calendar-grid {
        gap: 3px;
    }

    .day-name {
        font-size: 0.7rem;
    }

    .calendar-day {
        font-size: 0.8rem;
        border-radius: 4px;
    }

    .task-item {
        padding: 12px;
    }

    .task-item h4 {
        font-size: 1rem;
    }

    .garden-beds {
        gap: 10px;
    }

    .west-bed {
        width: 70px;
        height: 45px;
    }

    .east-bed {
        width: 140px;
        height: 45px;
    }

    .bed-label {
        font-size: 0.65rem;
    }

    .modal-content {
        width: 95%;
        max-height: 80vh;
    }

    .modal-header {
        padding: 20px;
        gap: 10px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-nav {
        font-size: 1rem;
        width: 32px;
        height: 32px;
        padding: 6px 10px;
    }

    .modal-body {
        padding: 15px 20px 20px;
    }

    .task-legend h4 {
        font-size: 0.9rem;
    }

    .legend-dot {
        width: 10px;
        height: 10px;
    }

    .plant-header {
        padding: 12px 15px;
    }

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

    .task-count {
        font-size: 0.75rem;
    }

    .plant-task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 15px;
    }

    .task-date {
        min-width: auto;
    }

    .task-action-badge {
        align-self: flex-end;
    }

    .weather-widget {
        position: static;
        margin-top: 15px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .forecast-day {
        padding: 10px;
    }

    .forecast-icon {
        font-size: 2rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pest-grid,
    .companion-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .plant-guide {
        padding: 15px;
    }

    .quick-ref-section .quick-ref-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .guide-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .section-heading {
        font-size: 1.1rem;
    }

    .frost-alert {
        padding: 15px;
    }

    .frost-alert-header strong {
        font-size: 1rem;
    }

    .frost-section {
        padding: 12px;
    }

    .frost-section p,
    .frost-section ul {
        font-size: 0.85rem;
    }
}
