:root {
    --agro-green-950: #12351f;
    --agro-green-800: #205b35;
    --agro-green-700: #2b7041;
    --agro-green-100: #e8f3e9;
    --agro-cream: #f7f6ef;
    --agro-ink: #17221b;
    --agro-muted: #667269;
}

body {
    color: var(--agro-ink);
    background: var(--agro-cream);
}

a {
    color: var(--agro-green-700);
}

a:hover {
    color: var(--agro-green-950);
}

#pwa-install-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 50rem;
    padding: 0.55rem 1.1rem;
}

.agro-navbar {
    background: linear-gradient(110deg, var(--agro-green-950), var(--agro-green-800));
    box-shadow: 0 4px 18px rgba(18, 53, 31, 0.18);
}

.brand-leaf {
    align-items: center;
    background: #fff;
    border-radius: 60% 40% 60% 40%;
    color: var(--agro-green-800);
    display: inline-flex;
    font-size: 0.8rem;
    height: 1.65rem;
    justify-content: center;
    margin-right: 0.35rem;
    transform: rotate(-8deg);
    width: 1.65rem;
}

.agro-footer {
    background: #102a1a;
    color: #d9e7dc;
}

.agro-footer a {
    color: #f0f7f1;
    text-decoration: none;
}

.hero-panel {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.15), transparent 35%),
        linear-gradient(125deg, #174d2b, #348149);
    border-radius: 1.5rem;
    color: #fff;
    overflow: hidden;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-stat-grid,
.stat-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stat-grid a {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 8rem;
    padding: 1rem;
    text-decoration: none;
}

.hero-stat-grid a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-stat-grid span {
    font-size: 0.86rem;
    margin-top: 0.35rem;
    opacity: 0.82;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.home-card-image {
    height: 215px;
}

.placeholder-produce {
    background: linear-gradient(145deg, #dcefdc, #f0e8c8);
    color: var(--agro-green-800);
    font-size: 1.25rem;
    font-weight: 650;
}

.empty-panel,
.info-panel {
    background: #fff;
    border: 1px solid #e2e8e3;
    border-radius: 1rem;
    padding: 1.5rem;
}

.narrow-content {
    margin-inline: auto;
    max-width: 920px;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-grid > div {
    background: #fff;
    border: 1px solid #e1e8e2;
    border-radius: 1rem;
    box-shadow: 0 0.35rem 1.2rem rgba(24, 63, 37, 0.06);
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.stat-grid span {
    color: var(--agro-muted);
    font-size: 0.86rem;
}

.stat-grid strong {
    color: var(--agro-green-800);
    font-size: 1.8rem;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-actions a {
    background: var(--agro-green-800);
    border-radius: 0.65rem;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

.quick-actions a:hover {
    background: var(--agro-green-950);
    color: #fff;
}

.dashboard-record {
    background: #fff;
    border: 1px solid #e1e8e2;
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    text-decoration: none;
}

.dashboard-record span {
    color: var(--agro-muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.card {
    border-radius: 0.9rem;
}

.table > :not(caption) > * > * {
    padding: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #5d9870;
    box-shadow: 0 0 0 0.25rem rgba(43, 112, 65, 0.16);
}

.btn-success {
    --bs-btn-bg: var(--agro-green-700);
    --bs-btn-border-color: var(--agro-green-700);
    --bs-btn-hover-bg: var(--agro-green-950);
    --bs-btn-hover-border-color: var(--agro-green-950);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-block: 1rem;
    }

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

@media (max-width: 575.98px) {
    .hero-panel {
        border-radius: 1rem;
    }

    .hero-stat-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .display-4 {
        font-size: 2.35rem;
    }
}
