/* Location: /css/irrigation.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --sidebar-bg: #111827; /* Darker slate for the sidebar */
    --primary-agri: #10b981; /* Signature AgriTech Green */
    --accent-blue: #3b82f6;
    --text-muted: #6b7280;
    --bg-main: #f9fafb;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: #111827;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.main-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: #ffffff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.logo-area h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.logo-area h2 span {
    color: var(--primary-agri);
}

.nav-menu {
    margin-top: 3rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.nav-link:hover, .nav-link.active {
    background-color: #1f2937;
    color: #ffffff;
}

.nav-link.active i {
    color: var(--primary-agri);
}

/* Main Content Styling */
.content-body {
    flex: 1;
    padding: 2.5rem 3rem;
}

.weather-widget-pro {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1);
    margin-bottom: 2.5rem;
}

.temp-box h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
}

.metric {
    text-align: right;
}

.metric span {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Card Styling */
.card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: var(--card-shadow);
}

.form-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Button & Slider */
.btn-submit-pro {
    width: 100%;
    background-color: var(--sidebar-bg);
    color: #ffffff;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-pro:hover {
    background-color: var(--primary-agri);
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: #f9fafb;
}

/* Results Section */
.schedule-flex {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
}

.day-block {
    flex: 1;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
}

.day-block.active {
    background-color: #ecfdf5;
    border-color: var(--primary-agri);
}/* --- Water Management Advisor Overrides --- */
body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 24%),
        #f5f7fb;
    color: #0f172a;
}

.advisor-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.main-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.mini-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(22, 163, 74, 0.25));
    color: #dbeafe;
    font-size: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-area h2 {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.logo-area h2 span {
    color: #7dd3fc;
}

.logo-area p {
    margin: 0.15rem 0 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.88rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    color: rgba(226, 232, 240, 0.72);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.nav-link.active i {
    color: #7dd3fc;
}

.sidebar-note {
    margin-top: auto;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.18);
    color: #bbf7d0;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
}

.sidebar-note p {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.6;
    font-size: 0.95rem;
}

.content-body {
    padding: 2rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1.2rem;
    align-items: stretch;
}

.hero-copy,
.hero-metrics,
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-radius: 28px;
}

.hero-copy {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.92));
}

.eyebrow,
.card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0.85rem 0 0.9rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.hero-copy p {
    margin: 0;
    max-width: 68ch;
    color: #64748b;
    font-size: 1.04rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.btn-primary,
.btn-secondary,
.ghost-btn {
    border: none;
    border-radius: 16px;
    padding: 0.95rem 1.15rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #fff;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.btn-secondary,
.ghost-btn {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.btn-secondary.wide,
.btn-primary.wide {
    width: 100%;
    justify-content: center;
}

.hero-metrics {
    padding: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.metric-card {
    padding: 1.35rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 250, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-card.highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 118, 110, 0.12));
    border-color: rgba(37, 99, 235, 0.18);
}

.metric-label,
.metric-card small {
    color: #64748b;
}

.metric-card strong {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #0f172a;
}

.top-grid,
.advisor-grid,
.results-panel {
    display: grid;
    gap: 1rem;
}

.top-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.advisor-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.card {
    padding: 1.5rem;
}

.card-header.compact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header h2 {
    margin: 0.4rem 0 0;
    font-size: 1.25rem;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.status-chip {
    align-self: flex-start;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 700;
}

.weather-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weather-icon-shell {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 118, 110, 0.14));
    color: #0f766e;
    font-size: 2rem;
}

.weather-summary h3 {
    margin: 0;
    font-size: 2rem;
    color: #0f172a;
}

.weather-summary p {
    margin: 0.2rem 0 0;
    color: #64748b;
}

.weather-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.metric {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.metric span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

.metric strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.insight-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.insight-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #64748b;
    line-height: 1.6;
}

.insight-list i {
    margin-top: 0.25rem;
    color: #16a34a;
}

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

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field span {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 600;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field input:focus,
.input-field select:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.range-field input[type="range"] {
    appearance: none;
    height: 8px;
    padding: 0;
    background: linear-gradient(90deg, #2563eb, #0f766e);
    border: none;
    border-radius: 999px;
}

.range-field input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2563eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.form-footer {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.summary-card .summary-copy {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: #0f172a;
    line-height: 1.65;
    min-height: 88px;
}

.summary-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.summary-grid article {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-grid article span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.summary-grid article strong {
    color: #0f172a;
    font-size: 1.15rem;
}

.results-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.calendar-card,
.alerts-card {
    min-height: 100%;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
}

.plan-day {
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 250, 0.86));
    border: 1px solid rgba(148, 163, 184, 0.18);
    min-height: 165px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-day.skip {
    background: linear-gradient(180deg, rgba(254, 249, 195, 0.5), rgba(255, 255, 255, 0.92));
    border-color: rgba(245, 158, 11, 0.22);
}

.plan-day.water {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.85), rgba(255, 255, 255, 0.95));
    border-color: rgba(37, 99, 235, 0.16);
}

.plan-day strong {
    font-size: 1.1rem;
    color: #0f172a;
}

.plan-day small,
.plan-day span {
    color: #64748b;
}

.day-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.day-pill {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
}

.day-pill.rain {
    background: #f59e0b;
}

.day-pill.heat {
    background: #dc2626;
}

.tracker-list {
    display: grid;
    gap: 1rem;
}

.tracker-row {
    display: grid;
    gap: 0.55rem;
}

.tracker-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
}

.tracker-labels strong {
    color: #0f172a;
}

.tracker-labels span {
    color: #64748b;
}

.tracker-bar {
    width: 100%;
    height: 14px;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.tracker-fill {
    height: 100%;
    border-radius: inherit;
    width: 0;
    transition: width 0.45s ease;
}

.tracker-fill.baseline {
    background: linear-gradient(90deg, #94a3b8, #64748b);
}

.tracker-fill.advisor {
    background: linear-gradient(90deg, #2563eb, #0f766e);
}

.tracker-note {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f172a;
    line-height: 1.6;
}

.alert-list {
    display: grid;
    gap: 0.8rem;
}

.alert-item {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.88);
    display: grid;
    gap: 0.3rem;
}

.alert-item strong {
    color: #0f172a;
}

.alert-item span {
    color: #64748b;
    line-height: 1.55;
}

.alert-item.info { border-left: 4px solid #2563eb; }
.alert-item.warning { border-left: 4px solid #f59e0b; }
.alert-item.danger { border-left: 4px solid #dc2626; }
.alert-item.success { border-left: 4px solid #16a34a; }

.sms-preview {
    margin: 0;
    white-space: pre-wrap;
    background: #0f172a;
    color: #dbeafe;
    padding: 1rem;
    border-radius: 18px;
    line-height: 1.6;
    min-height: 170px;
    font-family: 'Outfit', sans-serif;
}

.hidden {
    display: none !important;
}

@media (max-width: 1200px) {
    .advisor-shell {
        grid-template-columns: 1fr;
    }

    .main-sidebar {
        position: static;
        height: auto;
    }

    .hero-panel,
    .top-grid,
    .advisor-grid,
    .results-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .content-body {
        padding: 1rem 1rem 2rem;
    }

    .hero-copy,
    .card,
    .hero-metrics {
        border-radius: 22px;
    }

    .form-grid,
    .summary-grid,
    .weather-metrics {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .footer-actions,
    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .ghost-btn {
        width: 100%;
        justify-content: center;
    }
}
