:root {
    --google-blue: #1a73e8; /* Updated to a more modern Google blue */
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;
    --google-gray: #5f6368;
    --bg-color: #ffffff;
    --text-color: #202124;
    --border-color: #dadce0;
    --hover-bg: #f1f3f4;
}

body {
    font-family: 'Roboto', 'Google Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Material Icons Helper */
.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Login Page Styling */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 48px 40px 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.login-logo {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
}

.form-floating > .form-control {
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.form-floating > .form-control:focus {
    border-color: var(--google-blue);
    box-shadow: none; 
    /* Google inputs usually just change border color, sometimes a small glow */
}

.btn-google-submit {
    background-color: var(--google-blue);
    color: white;
    font-weight: 500;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    width: 100%;
    margin-top: 20px;
}

.btn-google-submit:hover {
    background-color: #1765cc;
    color: white;
    box-shadow: 0 1px 3px 1px rgba(66,64,67,0.15), 0 1px 2px 0 rgba(60,64,67,0.3);
}

/* Dashboard Layout */
#wrapper {
    display: flex;
    width: 100%;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -250px;
    transition: margin .25s ease-out;
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    width: 250px;
    position: fixed;
    z-index: 1000;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    color: var(--google-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

#sidebar-wrapper .list-group {
    width: 250px;
}

#page-content-wrapper {
    width: 100%;
    transition: margin .25s ease-out;
    min-height: 100vh;
}

body.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
        position: sticky;
        top: 0;
        height: 100vh;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.toggled #sidebar-wrapper {
        margin-left: -250px;
    }
}

.list-group-item {
    border: none;
    padding: 12px 24px;
    color: var(--google-gray);
    font-weight: 500;
    border-radius: 0 24px 24px 0;
    margin-right: 10px;
}

.list-group-item:hover {
    background-color: var(--hover-bg);
    color: var(--google-blue);
}

.list-group-item.active {
    background-color: #e8f0fe;
    color: var(--google-blue);
    border: none;
}

.list-group-item .material-icons-outlined {
    vertical-align: middle;
    margin-right: 16px;
    font-size: 20px;
}

/* Topbar */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
}

.navbar-brand {
    color: var(--google-gray);
    font-size: 22px;
}

/* Cards */
.card-google {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.card-google:hover {
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.stat-card-title {
    color: var(--google-gray);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.stat-card-value {
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 400;
}

/* Grid View for Farmers */
.farmer-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
