html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    /* Prevent overscroll/bounce on iOS */
    overscroll-behavior: none;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

/* Layout - Mobile First */
.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile - accounts for browser chrome */
    overflow: hidden;
    position: relative;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Important for flex children to shrink properly */
    overflow: hidden;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Top Row / Header */
.top-row {
    background-color: #1b6ec2;
    color: white;
    border-bottom: 1px solid #1861ac;
    height: 3.5rem;
    min-height: 3.5rem; /* Prevent shrinking */
    display: flex;
    align-items: center;
    padding: 0 1rem;
    flex-shrink: 0;
    z-index: 100;
}

.top-row h1 {
    font-size: 1.25rem;
    margin: 0;
    color: white;
    flex: 1;
}

.top-row a, .top-row .btn-link {
    whitespace: nowrap;
    margin-left: 1.5rem;
    color: white;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hamburger Menu Button */
.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    display: block;
    line-height: 1;
}

/* Sidebar Navigation - Mobile: Off-canvas */
.sidebar {
    background-color: #f7f7f7;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    z-index: 200;
    transition: left 0.3s ease-in-out;
    overflow: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
}

/* Navigation Menu */
.nav-menu {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Important for overflow to work in flex children */
    box-sizing: border-box;
}

.nav-menu nav {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Allow shrinking */
    -webkit-overflow-scrolling: touch;
}

.nav-version {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    background-color: #f7f7f7; /* Match sidebar background */
}

.nav-item {
    padding: 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background-color: #e2e8f0;
}

.nav-link.active {
    background-color: #1b6ec2;
    color: white;
}

.nav-link span {
    font-size: 1rem;
}

/* Content Area */
.content {
    padding: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Table Styles - Mobile: Card Layout */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    overflow-x: auto;
    display: block;
}

.table thead {
    display: none;
}

.table tbody {
    display: block;
}

.table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 1rem;
    background-color: white;
}

.table td {
    display: block;
    text-align: left !important;
    padding: 0.5rem 0;
    border: none;
}

.table td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    color: #4a5568;
}

.table td:first-child {
    border-top: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Button Styles - Touch Friendly */
button, .btn-primary, .btn-secondary, .btn-small, .btn-danger {
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-height: 44px; /* Minimum touch target size */
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-primary:hover {
    background-color: #1861ac;
}

.btn-secondary {
    color: #333;
    background-color: #e2e8f0;
    border: 1px solid #cbd5e0;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

/* Form Styles - Touch Friendly */
.form-input, input[type="text"], input[type="number"], input[type="date"],
input[type="datetime-local"], textarea, select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 44px;
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.form-container {
    background-color: white;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-container h3 {
    margin-top: 0;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.error-message {
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.success-message {
    background-color: #f0fff4;
    border: 1px solid #68d391;
    color: #22543d;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Plant Card Styles */
.plant-card {
    background-color: white;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plant-info {
    flex: 1;
}

.plant-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.plant-details {
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.care-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.plant-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Detail Pages */
.detail-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2d3748;
    border-bottom: 2px solid #1b6ec2;
    padding-bottom: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    padding: 0.5rem 0;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.detail-item span {
    color: #2d3748;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2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TcuMzQ5NSAyNTEuNTQ4IDE1LjYwNCAyNTAuMTA1IDEzLjgzMzEgMjQ4LjYwNyAxMi4wMzQ4IDI0Ny4wNTQgMTAuMjA3NSAyNDUuNDQ2IDguMzQ5NTYgMjQzLjc4MiA2LjQ1OTY4IDI0Mi4wNjMgNC41MzYzOSAyNDAuMjg4IDIuNTc4MTYgMjM4LjQ1OCAwLjU4MzU1NyAyMzYuNTcyIDEuMjk0MDZlLTAzIDIzNC42MyAwLjAxODQyMSAyMzUuNzUgMC4wMTg0MjEgMjM1Ljc1IDAuMDE4NDIxIDIzNS43NSAwLjAxODQyMSAyMzUuNzUgMC4wMTg0MjEgMjM1Ljc1IDAuMDE4NDIxIDIzNS43NSAwLjAxODQyMSAyMzUuNzUgMC4wMTg0MjEgMjM1Ljc1IDAuMDE4NDIxIDIzNS43NSAwLjAxODQyMSAyMzUuNzUgMC4wMTg0MjEgMjM1Ljc1IjogZmlsbD0iI0ZGRkZGRiIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Responsive Typography */
h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #718096;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #718096;
}

/* Utility Classes */
.flex-column {
    display: flex;
    flex-direction: column;
}

.flex {
    display: flex;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Touch-friendly checkboxes */
input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Desktop Styles - 768px and up */
@media (min-width: 768px) {
    .page {
        flex-direction: row;
    }

    .hamburger-btn {
        display: none;
    }

    .sidebar {
        position: sticky;
        left: auto;
        transform: none;
        width: 250px;
        height: 100vh;
        height: 100dvh;
        top: 0;
        box-shadow: none;
        transition: none;
        flex-shrink: 0;
    }

    .sidebar.open {
        left: auto;
    }

    .sidebar-overlay {
        display: none !important;
    }

    main {
        flex: 1;
        min-width: 0; /* Prevent overflow on narrow content */
    }

    .top-row {
        background-color: #f7f7f7;
        color: #333;
        border-bottom: 1px solid #d6d5d5;
        padding-left: 2rem;
    }

    .top-row h1 {
        color: #333;
        font-size: 1.5rem;
    }

    .content {
        padding: 1.5rem 2rem;
    }

    /* Desktop table styles */
    .table {
        display: table;
    }

    .table thead {
        display: table-header-group;
    }

    .table tbody {
        display: table-row-group;
    }

    .table tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
        border-radius: 0;
        padding: 0;
        background-color: transparent;
    }

    .table thead tr {
        background-color: #f7f7f7;
    }

    .table td {
        display: table-cell;
        padding: 0.75rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .table th {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 2px solid #cbd5e0;
        font-weight: 600;
    }

    .table td:before {
        display: none;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .plant-card {
        flex-direction: row;
        align-items: center;
    }

    .plant-actions {
        flex-shrink: 0;
    }

    input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

/* ===================================
   PWA Install Prompt
   =================================== */

.install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

.install-prompt.dismissed {
    transform: translateY(100%);
    opacity: 0;
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.install-prompt-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #2E7D32;
}

.install-prompt-text {
    flex: 1;
    min-width: 0;
}

.install-prompt-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.install-prompt-subtitle {
    font-size: 0.875rem;
    color: #666;
}

.install-prompt-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.install-btn {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.install-btn:hover {
    background: #256628;
}

.install-btn:active {
    background: #1e5620;
}

.dismiss-btn {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dismiss-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

/* Mobile responsiveness for install prompt */
@media (max-width: 480px) {
    .install-prompt-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .install-prompt-icon {
        align-self: flex-start;
    }

    .install-prompt-text {
        margin-bottom: 0.5rem;
    }

    .install-prompt-subtitle {
        display: none; /* Hide subtitle on very small screens */
    }

    .install-prompt-actions {
        width: 100%;
        flex-direction: row;
    }

    .install-btn,
    .dismiss-btn {
        flex: 1;
        text-align: center;
    }
}

/* ===================================
   PWA Update Notification
   =================================== */

.update-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Higher than install prompt */
    animation: slideDown 0.3s ease-out;
}

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

.update-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.update-notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: white;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.update-notification-text {
    flex: 1;
    min-width: 0;
}

.update-notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.125rem;
}

.update-notification-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.update-notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.update-btn {
    background: white;
    color: #2E7D32;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.update-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.update-btn:active {
    background: #e0e0e0;
    transform: scale(0.95);
}

.update-dismiss-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.update-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsiveness for update notification */
@media (max-width: 480px) {
    .update-notification-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .update-notification-icon {
        align-self: flex-start;
    }

    .update-notification-subtitle {
        display: none;
    }

    .update-notification-actions {
        width: 100%;
    }

    .update-btn,
    .update-dismiss-btn {
        flex: 1;
        text-align: center;
    }
}
