body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fafafa;
    color: #1e293b;
}

/* ==========================================================
   APPBAR & HEADING STYLES
   ========================================================== */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 3px 0;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.home-icon {
    width: 24px;
    height: 24px;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
}

.heading-background {
    background-color: lavender;
}

.heading-container {
    text-align: center;
    margin: 40px 0 20px;
}

.heading-container h2 {
    margin: 0;
    font-size: 20px;
    color: royalblue;
}

/* ==========================================================
   MAIN CONTENT & CONTAINER
   ========================================================== */
.content-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 12px 60px 12px;
    box-sizing: border-box;
}

.garden-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ==========================================================
   UNIFIED CARD & SUMMARY
   ========================================================== */
.garden-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.garden-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-summary {
    padding: 14px 16px;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.garden-meta-left {
    min-width: 0;
    flex: 1;
}

.garden-title {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1e3a8a;
    word-break: break-word;
}

.garden-address {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #475569;
}

/* Toggle Details Button */
.details-toggle-btn {
    align-self: flex-start;
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.details-toggle-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.details-toggle-btn.active {
    background-color: #15803d;
    color: #ffffff;
    border-color: #15803d;
}

/* Date Row */
.garden-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 6px;
}

.date-label {
    color: #64748b;
    font-weight: 600;
}

.date-value {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================
   EXPANDABLE DRAWER (CROPS)
   ========================================================== */
.garden-drawer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 14px 16px;
    animation: fadeIn 0.2s ease-out forwards;
}

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

.drawer-heading {
    margin: 0 0 10px 0;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crop-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.crop-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.crop-img:hover {
    opacity: 0.85;
}

.crop-info {
    min-width: 0;
    flex: 1;
}

.crop-info h4 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.crop-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.no-crops {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* ==========================================================
   IMAGE MODAL
   ========================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#caption {
    margin: auto;
    display: block;
    width: 90%;
    text-align: center;
    color: #fff;
    padding: 12px 0;
    font-size: 18px;
    font-weight: bold;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.loading {
    text-align: center;
    padding: 30px 10px;
    font-size: 14px;
    color: #64748b;
}

.page-footer {
    text-align: center;
    padding: 15px;
    background-color: #f8f8f8;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #ddd;
}