
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1600px;
    padding-top: 30px;
    padding-left: 400px;
    padding-right: 400px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);

}

.logo {
    text-align: center;
}

.login-form h1 {
    text-align: center;
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 0.3em;
    letter-spacing: 1px;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 1.8em;
    font-size: 1em;
}

.input-group {
    margin-bottom: 1em;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 11px 10px;
    border-radius: 8px;
    border: 1.5px solid #e4e4e4;
    font-size: 1em;
    outline: none;
    transition: border-color .3s;
}

.input-group input:focus {
    border-color: #667eea;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.3em;
    font-size: .93em;
}

.options .forgot {
    color: #667eea;
    text-decoration: none;
    transition: text-decoration .2s;
}

.options .forgot:hover {
    text-decoration: underline;
}

.login-btn {
    width: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1.06em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: bacground .2s, transform .1s;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5468c8, #764ba2);
    transform: translateY(-2px);
}

.register-link {
    display: block;
    text-align: center;
    margin-top: 2em;
    color: #555;
    font-size: 0.95em;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.align {
    text-align: center;
}


/* Profile layout adjustments */
.profile-main {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(118, 75, 162, 0.07);
    padding: 28px 24px;
    min-width: 290px;
    max-width: 325px;
    flex: 1 1 325px;
}

.profile-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 56px;
    color: #fff;
    border: 6px solid #efeefe;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.09);
}

.profile-info {
    text-align: center;
    margin-bottom: 16px;
}

.profile-info h2 {
    margin: 0 0 7px 0;
    font-size: 1.4em;
    color: #333;
}

.profile-info .village-badge {
    display: inline-block;
    padding: 3px 14px;
    font-size: 13px;
    border-radius: 13px;
    background: #ede5ff;
    color: #764ba2;
    margin-top: 6px;
    margin-bottom: 5px;
}

.profile-bio {
    font-size: 1em;
    color: #555;
    background: #f6f7fd;
    border-radius: 10px;
    padding: 14px 14px 10px 14px;
    margin-bottom: 16px;
    text-align: center;
}

.profile-contacts,
.profile-address {
    font-size: 0.97em;
    color: #555;
    padding: 9px 5px;
}

.profile-label {
    font-weight: 600;
    color: #667eea;
}

.profile-edit-btn {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 1.02em;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .09s;
    margin-bottom: 6px;
}

.profile-edit-btn:hover {
    background: linear-gradient(135deg, #5468c8, #764ba2);
    transform: translateY(-2px);
}

.logout-btn {
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    border: none;
    font-size: 1.0em;
    color: #667eea;
    background: #f5f5f7;
    border: 1.2px solid #e4e4e4;
    margin-bottom: 4px;
}

.logout-btn:hover {
    background: #eaeaff;
}

/* Timeline styles */
.profile-content {
    flex: 2 1 400px;
    min-width: 350px;
    margin-top: 10px;
}

.timeline-header {
    color: #767676;
    font-size: 1.19em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e4e4;
    margin-bottom: 18px;
}

.timeline-post {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 2px 12px rgba(118, 75, 162, 0.06);
    padding: 20px 18px 16px 18px;
    margin-bottom: 24px;
    font-size: 1em;
}

.timeline-post .post-author {
    font-weight: 600;
    color: #667eea;
}

.timeline-post .post-time {
    float: right;
    color: #a0a0a0;
    font-size: 0.92em;
}

.timeline-post .post-content {
    margin: 12px 0 0 0;
    color: #444;
    line-height: 1.65;
}

@media (max-width: 800px) {
    .profile-main {
        flex-direction: column;
        gap: 0;
    }

    .profile-sidebar,
    .profile-content {
        max-width: 100%;
        min-width: unset;
    }
}

.weather-main {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(102, 126, 234, 0.06);
    padding: 34px 22px 28px 22px;
    margin: 32px auto 0 auto;
    max-width: 750px;
    width: 100%;
}

.weather-header {
    text-align: center;
    margin-bottom: 22px;
}

.weather-header h1 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 4px;
}

.location-row {
    color: #764ba2;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 18px;
    text-align: center;
}

.forecast-table {
    width: 100%;
    border-collapse: collapse;
    background: #f9f8ff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.forecast-table thead th {
    background: #667eea;
    color: #fff;
    font-weight: 500;
    padding: 10px 8px;
    font-size: 1em;
}

.forecast-table tbody td {
    padding: 10px 7px;
    color: #444;
    font-size: .96em;
    border-bottom: 1px solid #ede5ff;
    text-align: center;
}

.forecast-table tbody tr:last-child td {
    border-bottom: none;
}

.today-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ede5ff;
    border-radius: 8px;
    padding: 16px 14px;
    margin-bottom: 24px;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.06);
}

.today-temp {
    font-size: 2.3em;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 2px;
}

.today-desc {
    font-size: 1.1em;
    color: #555;
    margin-top: 6px;
}

.today-icon {
    font-size: 3em;
    margin-right: 18px;
}

.hourly-title {
    font-size: 1.09em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
    margin-top: 20px;
    text-align: center;
}

.hourly-table {
    width: 100%;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.98em;
    margin-bottom: 18px;
    background: #f3f2fa;
}

.hourly-table th,
.hourly-table td {
    padding: 7px 7px;
    text-align: center;
    border-bottom: 1px solid #e3e0ef;
    min-width: 75px;
}

.hourly-table th {
    background: #764ba2;
    color: #fff;
}

@media(max-width:800px) {
    .weather-main {
        padding: 15px 6px;
    }

    .today-weather {
        flex-direction: column;
        gap: 12px;
    }

    .today-temp {
        font-size: 1.4em;
    }

    .today-weather .today-icon {
        font-size: 2em;
    }

    .forecast-table thead,
    .forecast-table tbody {
        font-size: 0.98em;
    }
}

@media(max-width:600px) {
    .weather-main {
        margin-top: 12px;
    }

    .today-weather {
        padding: 10px 3px;
    }
}


.job-portal-main {
    background: #fff;
    border-radius: 16px;
    padding: 38px 24px 20px 24px;
    margin: 35px auto 0 auto;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 2px 14px rgba(102, 126, 234, 0.08);
}

.job-segments {
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
    gap: 6px;
}

.job-tab {
    flex: 1;
    padding: 12px 0;
    font-weight: 600;
    background: #ede5ff;
    color: #764ba2;
    border: none;
    border-radius: 7px 7px 0 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: background .2s, color .2s;
    outline: none;
}

.job-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.job-form-section {
    display: none;
    animation: fadeIn 0.45s;
}

.job-form-section.active {
    display: block;
}

.job-title {
    color: #667eea;
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 3px;
}

.job-desc {
    text-align: center;
    color: #888;
    font-size: 1em;
    margin-bottom: 1.7em;
}

.input-group textarea {
    width: 100%;
    padding: 11px 10px;
    border-radius: 8px;
    border: 1.5px solid #e4e4e4;
    font-size: 1em;
    outline: none;
    transition: border-color .3s;
    resize: vertical;
    min-height: 65px;
    max-height: 220px;
}

.input-group textarea:focus {
    border-color: #667eea;
}

.job-submit-btn {
    margin-top: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ecomm-main {
    background: #fff;
    border-radius: 16px;
    padding: 38px 18px 20px 18px;
    margin: 35px auto 0 auto;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 2px 14px rgba(102, 126, 234, 0.08);
}

.ecomm-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
    gap: 6px;
}

.ecomm-tab {
    flex: 1;
    padding: 12px 0;
    font-weight: 600;
    background: #ede5ff;
    color: #764ba2;
    border: none;
    border-radius: 7px 7px 0 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: background .2s, color .2s;
    outline: none;
}

.ecomm-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.ecomm-section {
    display: none;
    animation: fadeIn 0.4s;
    padding-right: 40px;
}

.ecomm-section.active {
    display: block;
}

.ecomm-title {
    color: #667eea;
    text-align: center;
    font-size: 1.7em;
    margin-bottom: 3px;
}

.ecomm-desc {
    text-align: center;
    color: #888;
    font-size: 1em;
    margin-bottom: 1.7em;
}

.input-group textarea {
    width: 100%;
    padding: 11px 10px;
    border-radius: 8px;
    border: 1.5px solid #e4e4e4;
    font-size: 1em;
    outline: none;
    transition: border-color .3s;
    resize: vertical;
    min-height: 60px;
    max-height: 180px;
}

.input-group textarea:focus {
    border-color: #667eea;
}

.crop-list-table {
    width: 100%;
    background: #fafaff;
    border-collapse: collapse;
    border-radius: 10px;
    margin-bottom: 20px;
}

.crop-list-table th {
    background: #667eea;
    color: #fff;
    font-weight: 500;
    padding: 8px 6px;
    font-size: 1em;
}

.crop-list-table td {
    padding: 9px 6px;
    border-bottom: 1px solid #ede5ff;
    color: #444;
    text-align: center;
    font-size: .97em;
}

.crop-list-table tr:last-child td {
    border-bottom: none;
}

.buy-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
    transition: background .2s;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #5468c8, #764ba2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: unset;
    }
}

@media(max-width:700px) {
    .ecomm-main {
        padding: 12px 3px;
    }

    .crop-list-table th,
    .crop-list-table td {
        font-size: .93em;
        padding: 6px 2px;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 16px;
        max-width: 98%;
    }

    .login-form h1 {
        font-size: 1.35rem;
    }
}