@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;700;800&display=swap');

:root {
    --agri-bg: #e8efdd;
    --agri-ink: #1f3b2a;
    --agri-muted: #5d7462;
    --agri-line: #d4e1cb;
    --agri-leaf: #2d6c3b;
    --agri-leaf-soft: #76a06c;
    --agri-soil: #a8733a;
    --agri-card: #ffffff;
    --agri-shadow: 0 10px 24px rgba(32, 59, 31, 0.1);
    --agri-shadow-hover: 0 16px 30px rgba(31, 56, 30, 0.16);
}

html,
body {
    color: var(--agri-ink);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

body {
    background:
        radial-gradient(circle at 88% -8%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 12% 0%, rgba(120, 161, 109, 0.18) 0%, rgba(120, 161, 109, 0) 42%),
        repeating-linear-gradient(135deg, rgba(67, 97, 56, 0.04) 0, rgba(67, 97, 56, 0.04) 2px, transparent 2px, transparent 12px),
        linear-gradient(180deg, #f0f6e7 0%, var(--agri-bg) 56%, #e2ebd8 100%);
}

h1,
h2,
h3,
.title,
.page-title,
.section-title {
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: 0.2px;
}

.page-wrap,
.page-grid,
.main-content {
    animation: agriFadeRise 520ms ease both;
}

.page-card,
.container,
.card,
.stat,
.insight-card,
.weather-card,
.items-table-wrap,
.table-wrap,
.map-wrap,
.form-card,
.panel,
.modal-card {
    background: var(--agri-card);
    border: 1px solid var(--agri-line);
    border-radius: 14px;
    box-shadow: var(--agri-shadow);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.page-card:hover,
.container:hover,
.card:hover,
.stat:hover,
.insight-card:hover,
.weather-card:hover,
.items-table-wrap:hover,
.table-wrap:hover,
.map-wrap:hover,
.form-card:hover,
.panel:hover,
.modal-card:hover {
    border-color: #bdd5b3;
    box-shadow: var(--agri-shadow-hover);
}

button,
.btn,
a.btn,
input,
select,
textarea,
.sidebar a,
.sub-link,
.top-link,
.action-btn {
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:hover,
.btn:hover,
a.btn:hover,
.action-btn:hover {
    transform: translateY(-1px);
}

input,
select,
textarea,
.filter-select,
.input,
.number {
    border-radius: 10px;
    border: 1px solid #c8d9be;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

input:focus,
select:focus,
textarea:focus,
.filter-select:focus,
.input:focus,
.number:focus {
    outline: none;
    border-color: var(--agri-leaf-soft);
    box-shadow: 0 0 0 3px rgba(118, 160, 108, 0.2);
}

table thead th,
.items-table thead th {
    background: linear-gradient(90deg, #2f6031 0%, #3e7737 100%);
}

.alert-success {
    border-color: #bad8bc;
}

.alert-error {
    border-color: #efc0bf;
}

@keyframes agriFadeRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
