body {
    font-family: Arial, sans-serif;
    background: #f2f7f1;
    padding: 30px;
}

form {
    background: white;
    max-width: 500px;
    margin: auto;
    padding: 25px;
    border-radius: 10px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #28743b;
}

h2 {
    text-align: center;
}

label {
    display: block;
    margin-top: 12px;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
}

button {
    width: auto;
    min-width: 110px;
    padding: 10px 18px;
    margin-top: 12px;
    background: #28743b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
}


/* Farmer Login Page */

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 70px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.auth-container form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.auth-container form input + input {
    margin-top: 12px;
}

.auth-container h1 {
    text-align: center;
    color: #28743b;
}

.auth-container h2 {
    text-align: center;
}

.auth-container label {
    display: block;
    margin-top: 15px;
}

.auth-container input {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    box-sizing: border-box;
}

.auth-container button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    background: #267a35;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.auth-container button:hover {
    background: #195c27;
}

.auth-container p {
    text-align: center;
    margin-top: 18px;
}

.auth-container a {
    color: #267a35;
}


/* Farmer Dashboard */

.dashboard-header {
    background: #267a35;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    margin: 0;
}

.dashboard-header h1,
.dashboard-header h2,
.dashboard-header h3,
.dashboard-header h4,
.dashboard-header h5,
.dashboard-header h6 {
    color: white;
}

.dashboard-header button {
    padding: 10px 20px;
    background: white;
    color: #267a35;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dashboard-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
}

.welcome-section {
    margin-bottom: 30px;
}

.profile-section {
    background: #f1f8f1;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: white;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    color: #28743b;
}

.dashboard-card button {
    background: #267a35;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


/* Procurement Centres */

.centres-container {
    max-width: 1100px;
    margin: 35px auto;
    padding: 20px;
}

.centres-container h2 {
    color: #28743b;
}

.centres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.centre-card {
    background: white;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.centre-card h3 {
    color: #28743b;
}

.centre-card p {
    margin: 12px 0;
}

.centre-card button {
    background: #267a35;
    color: white;
    border: none;
    padding: 11px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 12px;
}

.centre-card button:hover {
    background: #195c27;
}


.booking-container {
    max-width: 550px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.booking-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.booking-container label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.booking-container input,
.booking-container select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.booking-container button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    background: #287a3e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#selectedCentre {
    background: #f0f7f1;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}


#bookingsList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

#bookingsList .centre-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#bookingsList .centre-card h3 {
    color: #28743b;
    margin-bottom: 15px;
}

#bookingsList .centre-card p {
    margin: 10px 0;
}


/* Available Time Slots */

#availableSlots {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0 25px;
}

button.slot-card {
    background: #E8F5E9;
    border: 2px solid #287a3e;
    border-radius: 10px;
    padding: 15px;
    min-width: 180px;
    cursor: pointer;
    text-align: center;
    color: #287a3e;
    transition: 0.2s;
}

.slot-card:hover {
    background: #eaf5ec;
}

.slot-card p {
    margin: 8px 0 0;
}

/* .slot-card.selected-slot {
    background: #287a3e;
    color: white;
} */

.slot-card.disabled-slot {
    background: #eeeeee;
    border-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    opacity: 0.7;
}
.slot-card.selected-slot {
    background-color: #287a3e !important;
    color: white !important;
    border: 2px solid #1b572c !important;
    outline: 3px solid #a5d6ad;
}

.slot-card.selected-slot p,
.slot-card.selected-slot strong {
    color: white !important;
}

button:disabled {
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #bbbbbb;
    cursor: not-allowed;
    opacity: 0.7;
}
#bookingConfirmation {
    background: #E8F5E9;
    border: 2px solid #2E7D32;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: #1B5E20;
}

#bookingConfirmation h3 {
    color: #28743b;
    margin-bottom: 15px;
}

#confirmationDetails p {
    margin: 10px 0;
}
.booking-filters {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    padding: 6px;
    background: #F1F5F1;
    border-radius: 12px;
    width: fit-content;
}

.filter-btn {
    background: transparent;
    color: #45634A;
    border: none;
    padding: 11px 24px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #E0EDE1;
}

.filter-btn.active {
    background: #287A3E;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
    .booking-filters {
        width: 100%;
        gap: 5px;
    }

    .filter-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 14px;
    }
}


/* =================================
   AGRICONNECT LANDING PAGE
================================= */

.landing-page {
    padding: 0;
    margin: 0;
    background: #f3f8f2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

.landing-header {
    background: #1f5c32;
    color: white;
    text-align: center;
    padding: 30px 15px;
}

.landing-header h1 {
    color: white;
    font-size: 32px;
    margin: 0 0 8px;
}

.landing-header p {
    color: #dcebdc;
    margin: 0;
}

/* Main Section */

.landing-main {
    flex: 1;
    padding: 45px 20px;
}

.landing-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.landing-welcome h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.landing-welcome p {
    color: #637467;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Portal Cards */

.portal-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    max-width: 1100px;
    margin: auto;
    flex-wrap: wrap;
}

.portal-card {
    background: white;
    width: 320px;
    padding: 30px 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #28743b;
    transition: 0.3s;
    box-sizing: border-box;
}

.portal-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}

.portal-icon {
    font-size: 48px;
    margin-bottom: 18px;
}

.portal-card h2 {
    margin-bottom: 15px;
}

.portal-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #68766b;
    min-height: 72px;
    margin-bottom: 25px;
}

/* Portal Buttons */

.portal-card .portal-button {
    display: inline-block;
    width: 100%;
    padding: 12px 15px;
    background: #28743b;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    box-sizing: border-box;
    transition: 0.2s;
}

.portal-card .portal-button:hover {
    background: #1f5c32;
}

/* Different Portal Colours */

.portal-card.admin {
    border-top-color: #3876a8;
}

.portal-card.admin .portal-button {
    background: #3876a8;
}

.portal-card.admin .portal-button:hover {
    background: #285b85;
}

.portal-card.staff {
    border-top-color: #a47b24;
}

.portal-card.staff .portal-button {
    background: #a47b24;
}

.portal-card.staff .portal-button:hover {
    background: #805f1b;
}

/* Footer */

.landing-footer {
    background: #1f5c32;
    color: white;
    text-align: center;
    padding: 17px;
    font-size: 13px;
}

.landing-footer p {
    margin: 0;
}

/* Responsive Design */

@media (max-width: 768px) {
    .landing-main {
        padding: 30px 15px;
    }

    .portal-container {
        flex-direction: column;
        align-items: center;
    }

    .portal-card {
        width: 100%;
        max-width: 380px;
    }

    .landing-welcome h2 {
        font-size: 25px;
    }
}

/* Farmer Sales Report */

.sales-report-page {
    min-height: 100vh;
    padding: 38px 24px 64px;
    background-color: #eef3ec;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 39px,
        rgba(40, 116, 59, 0.025) 40px
    );
    color: #26352b;
}

.sales-report-container {
    max-width: 1120px;
    margin: 0 auto;
}

.sales-report-container .back-home {
    display: inline-block;
    margin-bottom: 24px;
    color: #41634b;
    font-weight: 600;
    text-decoration: none;
}

.sales-report-container .back-home:hover {
    color: #1f5c32;
    text-decoration: underline;
}

.sales-report-container > h1 {
    margin: 0 0 8px;
    color: #1f472c;
    font-size: 34px;
    text-align: left;
}

.sales-subtitle {
    margin: 0 0 28px;
    color: #66736a;
    font-size: 16px;
    line-height: 1.5;
}

.sales-filter,
.sales-breakdown,
.sales-transactions {
    padding: 24px;
    background: #fff;
    border: 1px solid #dce5dc;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(32, 63, 39, 0.045);
}

.sales-filter {
    margin-bottom: 18px;
}

.sales-filter h3,
.sales-breakdown h2,
.sales-transactions h2 {
    margin: 0 0 18px;
    color: #244b30;
    text-align: left;
}

.sales-filter h3 {
    font-size: 18px;
}

.sales-date-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 16px;
}

.sales-date-fields label {
    margin: 0 0 7px;
    color: #526357;
    font-size: 14px;
    font-weight: 600;
}

.sales-date-fields input {
    min-height: 44px;
    margin: 0;
    border: 1px solid #cbd6cc;
    border-radius: 5px;
    color: #26352b;
    font: inherit;
}

.sales-date-fields input:focus {
    border-color: #28743b;
    outline: 3px solid rgba(40, 116, 59, 0.14);
}

.sales-date-fields button {
    min-height: 44px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
}

.sales-date-fields button:hover {
    background: #1f5c32;
}

#reportMessage {
    min-height: 20px;
    margin: 12px 0 0;
    color: #526357;
    font-size: 14px;
}

.sales-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.sales-summary-card {
    min-height: 132px;
    padding: 22px 24px;
    background: #1f5c32;
    border-radius: 8px;
    box-sizing: border-box;
}

.sales-summary-card:nth-child(2) {
    background: #fff;
    border: 1px solid #dce5dc;
    border-top: 3px solid #bd8738;
}

.sales-summary-card h3 {
    margin: 0 0 14px;
    color: #e4eee5;
    font-size: 15px;
    font-weight: 600;
}

.sales-summary-card:nth-child(2) h3 {
    color: #59665c;
}

.sales-summary-card p {
    margin: 0;
    color: white;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.sales-summary-card:nth-child(2) p {
    color: #26352b;
}

.sales-breakdown,
.sales-transactions {
    margin-top: 18px;
}

.sales-breakdown h2,
.sales-transactions h2 {
    font-size: 20px;
}

#cropBreakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

#cropBreakdown > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px;
    background: #f5f8f4;
    border-radius: 5px;
    color: #66736a;
}

.crop-report-card {
    padding: 16px;
    background: #f6f8f4;
    border: 1px solid #e1e8df;
    border-left: 3px solid #28743b;
    border-radius: 5px;
}

.crop-report-card h3 {
    margin: 0 0 12px;
    color: #244b30;
    font-size: 17px;
}

.crop-report-card p {
    margin: 7px 0 0;
    color: #59665c;
    font-size: 14px;
}

.table-responsive {
    overflow-x: auto;
}

.sales-transactions table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    text-align: left;
}

.sales-transactions th {
    padding: 13px 15px;
    background: #1f5c32;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.sales-transactions th:first-child {
    border-radius: 5px 0 0;
}

.sales-transactions th:last-child {
    border-radius: 0 5px 0 0;
}

.sales-transactions td {
    padding: 14px 15px;
    border-bottom: 1px solid #e5ebe5;
    color: #39483d;
    font-size: 14px;
}

.sales-transactions tbody tr:nth-child(even) {
    background: #f7f9f6;
}

.sales-transactions tbody tr:hover {
    background: #edf4ed;
}

.sales-transactions tbody td[colspan] {
    padding: 22px 15px;
    color: #66736a;
    text-align: center;
}

@media (max-width: 680px) {
    .sales-report-page {
        padding: 26px 16px 40px;
    }

    .sales-report-container > h1 {
        font-size: 29px;
    }

    .sales-filter,
    .sales-breakdown,
    .sales-transactions {
        padding: 18px;
    }

    .sales-date-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sales-date-fields button {
        width: 100%;
    }
}

@media (max-width: 440px) {
    .sales-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sales-summary-card {
        min-height: 116px;
    }
}
