/* ==============================
   GENERAL STYLES
============================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f8f3;
    color: #26352a;
    line-height: 1.6;
}

a {
    color: #198754;
    text-decoration: none;
    font-weight: bold;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #198754;
    color: white;
    font-size: 16px;
}

button:hover {
    background-color: #146c43;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 15px;
}


/* ==============================
   AUTHENTICATION
============================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.auth-box h1 {
    text-align: center;
    color: #198754;
    margin-bottom: 10px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 10px;
}

.auth-box p {
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

#registerMessage {
    margin-top: 15px;
    font-weight: bold;
}


/* ==============================
   DASHBOARD
============================== */

.dashboard-header {
    background: #198754;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 24px;
}

#logoutButton {
    width: auto;
    margin-top: 0;
    padding: 10px 20px;
    background: #f22f2f;
}

#logoutButton:hover {
    background: #ff0c04;
}

.dashboard-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.welcome-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
    color: #198754;
    margin-bottom: 10px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    color: #198754;
    margin-bottom: 15px;
}

.dashboard-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}


/* ==============================
   SOIL ANALYSIS
============================== */

.soil-result {
    display: none;
    margin-top: 25px;
    padding: 20px;
    background: #e8f5e9;
    border-left: 5px solid #198754;
    border-radius: 5px;
    line-height: 1.8;
}

.soil-result h3 {
    color: #198754;
    margin-bottom: 10px;
}


/* ==============================
   CONTAINER
============================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}


/* ==============================
   MARKET PRICES
============================== */

#marketResults {
    margin-top: 25px;
    overflow-x: auto;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.market-table th,
.market-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.market-table th {
    background: #198754;
    color: white;
}

.market-table tr:nth-child(even) {
    background: #f2f2f2;
}

.price-note {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

#searchInput {
    width: 100%;
    max-width: 450px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.table-container {
    overflow-x: auto;
}

#marketTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#marketTable th,
#marketTable td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

#marketTable th {
    background-color: #2e7d32;
    color: white;
}

#marketTable tr:nth-child(even) {
    background-color: #f2f2f2;
}

#marketTable tr:hover {
    background-color: #e8f5e9;
}

#errorMessage {
    color: red;
}


/* ==============================
   HOMEPAGE HEADER
============================== */

header {
    background: #176b3a;
    color: white;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 25px;
    font-weight: bold;
}

.logo span {
    color: white;
}

.logo small {
    font-size: 13px;
    font-weight: normal;
    align-self: flex-end;
    margin-bottom: 3px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ==============================
   HERO SECTION
============================== */

.hero {
    text-align: center;
    padding: 100px 20px;
    background:
        linear-gradient(
            rgba(0, 70, 30, 0.65),
            rgba(0, 70, 30, 0.65)
        ),
        url("https://images.unsplash.com/photo-1500382017468-9049fed747ef")
        center / cover no-repeat;
    color: white;
}

.hero h2 {
    color: white;
    font-size: 38px;
    margin-bottom: 20px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 18px;
}

.button {
    display: inline-block;
    background: #176b3a;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    margin: 8px;
    border-radius: 6px;
    font-weight: bold;
}

.button:hover {
    background: #0d4525;
}


/* ==============================
   SERVICES
============================== */

.services {
    padding: 50px 6%;
    text-align: center;
}

.services h2 {
    color: #176b3a;
    font-size: 30px;
    margin-bottom: 30px;
}

.service-card {
    display: inline-block;
    vertical-align: top;
    width: 30%;
    min-width: 250px;
    margin: 10px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #176b3a;
}

.service-card a {
    color: #176b3a;
}


/* ==============================
   CONTACT SECTION
============================== */

.contact {
    text-align: center;
    padding: 60px 30px;
    background: #3779297a;
}

.contact h2 {
    color: #dee8e2;
    font-size: 30px;
    margin-bottom: 15px;
}

.contact p {
    font-size: 17px;
}

.contact-info {
    margin: 25px 0;
}


/* ==============================
   FAQ SECTION
============================== */

.faq {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
}

.faq h2 {
    text-align: center;
    color: #176b3a;
    font-size: 30px;
    margin-bottom: 30px;
}

.faq details {
    background: white;
    margin: 12px 0;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq summary {
    color: #176b3a;
    font-weight: bold;
    cursor: pointer;
}

.faq details p {
    margin-top: 15px;
}


/* ==============================
   FOOTER
============================== */

footer {
    background: #123d26;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}


/* ==============================
   MOBILE RESPONSIVE DESIGN
============================== */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-card {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 15px 0;
    }

    .button {
        display: block;
        margin: 10px auto;
        max-width: 300px;
    }

    .dashboard-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-header h1 {
        font-size: 18px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .container {
        width: 95%;
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    input,
    select,
    button {
        max-width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table th,
    table td {
        padding: 8px;
        font-size: 13px;
    }

}
/* ============================= */
/* FARM OVERVIEW DASHBOARD */
/* ============================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background-color: #2e7d32;
    color: white;
}

.dashboard-header .logo {
    font-size: 22px;
    font-weight: bold;
}

.dashboard-header button {
    background-color: white;
    color: #2e7d32;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.dashboard-container {
    max-width: 1200px;
    margin: auto;
    padding: 25px;
}

.welcome-section {
    background-color: #e8f5e9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.welcome-section h1 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    color: #555;
}

.stat-card p {
    font-size: 18px;
    font-weight: bold;
    color: #2e7d32;
}

.dashboard-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.farm-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.farm-overview-grid div {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.farm-overview-grid strong {
    color: #2e7d32;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-action {
    display: block;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.dashboard-action:hover {
    background-color: #e8f5e9;
    transform: translateY(-3px);
}

.dashboard-action span {
    font-size: 30px;
}

.dashboard-action h3 {
    color: #2e7d32;
    margin: 10px 0;
}

.dashboard-action p {
    color: #555;
}

.dashboard-card button {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
}


/* Responsive Design */

@media (max-width: 768px) {

    .dashboard-header {
        padding: 15px;
    }

    .dashboard-header .logo {
        font-size: 16px;
    }

    .dashboard-container {
        padding: 15px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .farm-overview-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

}
/* ============================= */
/* WEATHER SECTION */
/* ============================= */

.weather-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.weather-item {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.weather-item h3 {
    font-size: 15px;
    color: #2e7d32;
}

.weather-item p {
    font-size: 20px;
    font-weight: bold;
}

.weather-source {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {

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

}
/* ============================= */
/* FARMER PROFILE */
/* ============================= */

.profile-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
}

.profile-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-card h1 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.profile-card label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: bold;
}

.profile-card input,
.profile-card select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.profile-card button {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.profile-card button:hover {
    background-color: #1b5e20;
}

.back-button {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
/* ============================= */
/* MOBILE-FRIENDLY DESIGN */
/* ============================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select {
    max-width: 100%;
}


/* Mobile Screens */

@media (max-width: 600px) {

    /* Header */

    .dashboard-header {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    .dashboard-header .logo {
        font-size: 18px;
    }


    /* Dashboard */

    .dashboard-container {
        width: 100%;
        padding: 15px;
    }

    .welcome-section {
        padding: 18px;
    }

    .welcome-section h1 {
        font-size: 24px;
    }


    /* Statistics */

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 18px;
    }


    /* Dashboard Cards */

    .dashboard-card {
        padding: 18px;
    }

    .dashboard-card h2 {
        font-size: 21px;
    }


    /* Farm Overview */

    .farm-overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    /* Services */

    .dashboard-actions {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-action {
        padding: 18px;
    }


    /* Weather */

    .weather-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .weather-item {
        padding: 18px;
    }


    /* Market Table */

    .market-results {
        overflow-x: auto;
    }

    .market-table {
        min-width: 600px;
    }


    /* Profile */

    .profile-container {
        width: 100%;
        padding: 15px;
        margin: 20px auto;
    }

    .profile-card {
        padding: 20px;
    }


    /* Forms */

    input,
    select,
    button {
        font-size: 16px;
    }

}
/* =================================
   PROFESSIONAL HOMEPAGE DESIGN
================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #263238;
    background: #f5f8f3;
    line-height: 1.6;
}

/* HEADER */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 7%;
    background: #14532d;
    color: white;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 24px;
    font-weight: bold;
}

.logo small {
    display: block;
    font-size: 13px;
    font-weight: normal;
    color: #d1fae5;
}

.main-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.main-header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.main-header nav a:hover {
    color: #bbf7d0;
}

/* HERO */

.hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background:
        linear-gradient(
            rgba(20, 83, 45, 0.78),
            rgba(20, 83, 45, 0.78)
        ),
        url("https://images.unsplash.com/photo-1500937386664-56d1dfef3854")
        center/cover;
}

.hero-content {
    max-width: 800px;
    color: white;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* BUTTONS */

.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    background: #22c55e;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.button:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.secondary-button {
    background: white;
    color: #14532d;
}

.secondary-button:hover {
    background: #dcfce7;
}

/* ABOUT */

.about {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px 25px;
    text-align: center;
    background: white;
    border-radius: 12px;
}

.about h2,
.services h2,
.contact h2,
.faq h2 {
    color: #14532d;
    font-size: 30px;
    margin-bottom: 15px;
}

/* SERVICES */

.services {
    padding: 50px 7%;
    text-align: center;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    padding: 30px 22px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #166534;
    font-size: 21px;
}

.service-card a {
    display: inline-block;
    margin-top: 12px;
    color: #15803d;
    font-weight: bold;
    text-decoration: none;
}

.service-card a:hover {
    text-decoration: underline;
}

/* CONTACT */

.contact {
    padding: 50px 20px;
    text-align: center;
    background: #dcfce7;
}

.contact-info {
    margin: 25px 0;
}

/* FAQ */

.faq {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 20px;
}

.faq details {
    margin: 12px 0;
    padding: 18px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
}

.faq summary {
    color: #14532d;
    font-weight: bold;
}

/* FOOTER */

footer {
    padding: 25px;
    text-align: center;
    background: #14532d;
    color: white;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 768px) {

    .main-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .main-header nav {
        justify-content: center;
        gap: 12px;
    }

    .hero {
        min-height: 420px;
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .about h2,
    .services h2,
    .contact h2,
    .faq h2 {
        font-size: 25px;
    }

    .button {
        width: 100%;
        max-width: 280px;
    }

}
/* MOBILE MENU */

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .main-header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-header nav.active {
        display: flex;
    }

}
/* STATISTICS SECTION */

.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 7%;
    background: white;
    text-align: center;
}

.stat-box {
    padding: 25px 15px;
    border-radius: 10px;
    background: #f0fdf4;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.stat-box h2 {
    color: #166534;
    font-size: 25px;
    margin: 0;
}

.stat-box p {
    margin-bottom: 0;
}

/* MOBILE STATISTICS */

@media (max-width: 768px) {

    .statistics {
        grid-template-columns: 1fr 1fr;
        padding: 30px 20px;
    }

}

@media (max-width: 450px) {

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

}
/* HOW AGRISMART WORKS */

.how-it-works {
    padding: 60px 7%;
    text-align: center;
    background: #f0fdf4;
}

.how-it-works h2 {
    color: #14532d;
    font-size: 30px;
    margin-bottom: 10px;
}

.section-intro {
    max-width: 650px;
    margin: 0 auto 35px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: white;
    padding: 25px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 42px;
    height: 42px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.step-card h3 {
    color: #166534;
    font-size: 19px;
}

@media (max-width: 900px) {

    .steps-container {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 500px) {

    .steps-container {
        grid-template-columns: 1fr;
    }

}
/* FARMER BENEFITS */

.benefits {
    padding: 60px 7%;
    text-align: center;
    background: white;
}

.benefits h2 {
    color: #14532d;
    font-size: 30px;
    margin-bottom: 35px;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit-card {
    padding: 25px 18px;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    background: #f0fdf4;
}

.benefit-card h3 {
    color: #166534;
    font-size: 19px;
}

@media (max-width: 900px) {

    .benefits-container {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 500px) {

    .benefits-container {
        grid-template-columns: 1fr;
    }

}
/* =================================
   REGISTRATION PAGE IMPROVEMENTS
================================= */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    background: linear-gradient(
        135deg,
        #dcfce7,
        #f0fdf4
    );
}

.auth-box {
    width: 100%;
    max-width: 480px;
    padding: 35px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.auth-logo {
    text-align: center;
    font-size: 45px;
}

.auth-box h1 {
    text-align: center;
    color: #14532d;
    font-size: 26px;
}

.auth-box h2 {
    text-align: center;
    color: #166534;
    font-size: 22px;
}

.auth-description {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
}

.auth-box label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
    color: #334155;
}

.auth-box input,
.auth-box select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 16px;
    background: white;
}

.auth-box input:focus,
.auth-box select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px #dcfce7;
}

/* PASSWORD WRAPPER */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
}

.password-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

/* AUTH BUTTON */

.auth-button {
    width: 100%;
    margin-top: 25px;
    padding: 13px;
    border: none;
    border-radius: 7px;
    background: #16a34a;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.auth-button:hover {
    background: #15803d;
}

/* AUTH FOOTER */

.auth-footer {
    text-align: center;
    margin-top: 22px;
}

.auth-footer a,
.back-home {
    color: #15803d;
    font-weight: bold;
    text-decoration: none;
}

.auth-footer a:hover,
.back-home:hover {
    text-decoration: underline;
}

.back-home {
    display: block;
    text-align: center;
    margin-top: 20px;
}

/* MOBILE */

@media (max-width: 500px) {

    .auth-box {
        padding: 25px 20px;
    }

    .auth-box h1 {
        font-size: 23px;
    }

    .auth-box h2 {
        font-size: 20px;
    }

}
/* =====================================================
   ADMIN DASHBOARD
===================================================== */

.dashboard-section {
    padding: 60px 20px;
    background: #f5f8f4;
    min-height: calc(100vh - 140px);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-heading {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-heading h1 {
    color: #1b5e20;
    font-size: 36px;
    margin-bottom: 10px;
}

.dashboard-heading p {
    color: #666;
    font-size: 16px;
}


/* =====================================================
   ADMIN STATISTICS
===================================================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.dashboard-stat-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #2e7d32;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    flex-shrink: 0;
}

.dashboard-stat-card h3 {
    margin: 0 0 5px;
    color: #1b5e20;
    font-size: 27px;
}

.dashboard-stat-card p {
    margin: 0;
    color: #777;
    font-size: 14px;
}


/* =====================================================
   ADMIN QUICK ACTIONS
===================================================== */

.admin-actions {
    margin-bottom: 50px;
}

.admin-actions h2,
.admin-information h2 {
    text-align: center;
    color: #1b5e20;
    font-size: 28px;
    margin-bottom: 25px;
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.admin-action-card {
    background: white;
    padding: 30px 25px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #2e7d32;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.admin-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.admin-action-icon {
    display: block;
    font-size: 42px;
    margin-bottom: 15px;
}

.admin-action-card h3 {
    color: #1b5e20;
    margin-bottom: 10px;
    font-size: 19px;
}

.admin-action-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}


/* =====================================================
   ADMIN INFORMATION
===================================================== */

.admin-information {
    margin-bottom: 40px;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.admin-info-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.admin-info-card h3 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 10px;
}

.admin-info-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}


/* =====================================================
   ADMIN MOBILE RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-actions-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .dashboard-section {
        padding: 40px 15px;
    }

    .dashboard-heading h1 {
        font-size: 28px;
    }

    .dashboard-heading p {
        font-size: 14px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-stat-card {
        padding: 20px;
    }

    .dashboard-stat-card h3 {
        font-size: 24px;
    }

    .admin-actions h2,
    .admin-information h2 {
        font-size: 24px;
    }

    .admin-info-grid {
        grid-template-columns: 1fr;
    }

}

/* ========================================
   LANGUAGE SWITCHER (EN / SW)
   ======================================== */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.lang-switch button {
    width: auto;
    margin: 0;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #2e7d32;
    background: #ffffff;
    color: #2e7d32;
    border-radius: 999px;
    cursor: pointer;
}

.lang-switch button.active {
    background: #2e7d32;
    color: #ffffff;
}

.auth-box > .lang-switch {
    display: flex;
    justify-content: center;
    margin: 0 auto 12px;
}
