html, body { height: 100%; }
body { display: flex; flex-direction: column; font-family: Arial, Helvetica, sans-serif; }
.container { flex: 1; }
.card-soft { border: 1px solid #dce7df; border-radius: 16px; }
.stat-card { border-left: 6px solid #198754; }
.hero { background: linear-gradient(135deg, #ffffff 0%, #eef8f0 100%); border: 1px solid #d9e8dd; border-radius: 20px; padding: 24px; }
.small-note { color: #6b7280; font-size: 0.92rem; }
.team-card { border-radius: 20px; box-shadow: 0 10px 26px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid #e7eef1; background: #fff; height: 100%; }
.team-banner { height: 90px; background: linear-gradient(135deg, #198754, #4db07a); }
.team-avatar { width: 94px; height: 94px; border-radius: 50%; border: 5px solid #fff; margin-top: -47px; background: #fff; object-fit: cover; }
.member-details { background: #f8fbff; border: 1px solid #e7eefc; border-radius: 14px; padding: 14px 16px; text-align: left; font-size: 14px; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf2f7; }
.detail-row:last-child { border-bottom: none; }
.table thead th { white-space: nowrap; }

.farm-hero {
    background: linear-gradient(135deg, #198754, #4caf50);
    color: white;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.15);
}

.farm-hero h2 {
    margin: 0 0 6px 0;
    font-weight: 800;
}

.farm-hero p {
    margin: 0;
    opacity: 0.95;
}

.farm-card {
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    height: 100%;
}

.farm-card h5 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}

.farm-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.farm-card small {
    font-size: 13px;
}

.card {
    border-radius: 16px;
    border: none;
}
/* FARM ELITE UI */

.farm-hero {
    background: linear-gradient(135deg, #198754, #4caf50);
    color: white;
    padding: 20px;
    border-radius: 15px;
}

.farm-card {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.farm-card h3 {
    font-size: 28px;
    font-weight: bold;
}

.card {
    border-radius: 15px;
}

/* ===== PREMIUM FARM DASHBOARD ===== */

.farm-dashboard-wrap {
    padding-top: 8px;
}

.dashboard-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid #dcfce7;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.03rem;
    color: #64748b;
    max-width: 760px;
    margin-bottom: 0;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-chip {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.hero-summary-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}

.summary-line:last-child {
    border-bottom: none;
}

.summary-line span {
    color: #64748b;
    font-weight: 600;
}

.summary-line strong {
    color: #0f172a;
}

.metric-card {
    position: relative;
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    min-height: 180px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

.metric-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.metric-blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.metric-cyan {
    background: linear-gradient(135deg, #06b6d4, #38bdf8);
}

.metric-gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1f2937;
}

.metric-red {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.metric-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 15px;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.metric-value-sm {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.metric-note {
    font-size: 13px;
    opacity: 0.92;
}

.premium-panel {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.panel-header {
    margin-bottom: 14px;
}

.panel-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.panel-subtitle {
    color: #64748b;
    margin-bottom: 0;
}

.chart-wrap {
    position: relative;
    height: 420px;
    margin-top: 10px;
}

.recommendation-text {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

.insight-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px 16px;
}

.insight-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.insight-row:last-child {
    border-bottom: none;
}

.insight-row span {
    color: #64748b;
    font-weight: 600;
}

.insight-row strong {
    color: #0f172a;
}

.recommendation-badge {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    color: #166534;
    font-weight: 800;
    border: 1px solid #bbf7d0;
}

/* improve existing generic cards */
.card {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 22px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .metric-value-sm {
        font-size: 1.45rem;
    }

    .chart-wrap {
        height: 300px;
    }

    .summary-line,
    .insight-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.form-control,
.form-select {
    border-radius: 12px;
    min-height: 44px;
}

.btn {
    border-radius: 12px;
}

.table td,
.table th {
    vertical-align: middle;
}

.alert {
    border-radius: 14px;
}

.navbar .badge {
    font-size: 12px;
}

.table td .btn,
.table th .btn {
    border-radius: 10px;
}

.table td .form-select {
    min-width: 120px;
}