body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-title-anchor {
    text-decoration: none;
}

.nav-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c5282;
}

.nav-ele-div {
    display: flex;
    align-items: center;
}

.nav-ele {
    margin-left: 20px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-ele:hover,
.nav-ele.active {
    color: #2c5282;
}

a.nav-ele[href="account.html"] {
     color: black;
     font-weight: bold;
}
.nav-ele.account-btn {
    color: black;
    font-weight: bold;
}

.cart-icon {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    cursor: default;
}
.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}


.page-container {
    max-width: 1100px; 
    margin: 30px auto; 
    padding: 0 20px;
}

.content-section {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    margin-bottom: 25px;
}

.content-section h2 {
    color: #2c5282;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    font-size: 1.8em;
}

.content-section h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #3a5a84;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-size: 1.4em;
}

.content-section p {
    margin-bottom: 15px;
    color: #4a5568;
}

.content-section ul {
    list-style: disc;
    margin-left: 25px; 
    margin-bottom: 15px;
    padding-left: 0;
}
.content-section li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.info {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}
.info h2 { 
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px; 
    color: #2c5282;
    font-size: 2em;
}

.info-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px 0;
}

.info-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    background-color: #fff;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.info-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block; 
}
.info-card img[alt]:after {
    content: attr(alt);
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #eee;
    color: #aaa;
    text-align: center;
    padding-top: 80px; 
    font-size: 0.9em;
}


.info-card h4 {
    margin: 15px 10px 8px 10px; 
    color: #333;
    font-size: 1.2em; 
}

.info-card p {
    margin: 0 15px 15px 15px;
    color: #555;
    font-size: 0.95em;
    flex-grow: 1;
    line-height: 1.5;
}

.know-more-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 10px auto 0 auto;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.know-more-btn:hover {
    background-color: #0056b3;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Slightly smaller min */
    gap: 25px; 
    padding: 20px 0;
}

.product-card {
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 80%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px; 
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-card h4 {
    margin-top: 10px;
    margin-bottom: 8px; 
    color: #333;
    font-weight: 600;
}

.product-card p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-card .price {
    font-weight: bold;
    color: #008000;
    margin-bottom: 15px;
    font-size: 1.15em;
}

.product-card button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
    font-weight: 600;
}

.product-card button:hover {
    background-color: #218838;
}

.info-section {
    margin-bottom: 30px;
}

#surveySection {
    border: 1px solid #ccc;
    padding: 25px; 
    margin-top: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}
#surveySection h4 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #333;
}
#surveySection label {
    display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.95em;
}
#surveySection input[type="text"],
#surveySection input[type="number"],
#surveySection select,
#surveySection textarea {
    width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 1em;
}
#surveySection textarea {
    min-height: 80px; resize: vertical;
}
#surveySection button {
    padding: 10px 15px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: 600; width: 100%; font-size: 1.05em;
}
#surveySection button:hover {
   background-color: #0056b3;
}
.info-section > button {
    padding: 10px 18px; 
    background-color: #5a67d8; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 1em;
}
.info-section > button:hover {
    background-color: #4c51bf;
}


.soil-details, .soil-management, .soil-test-upload, .soil-data {
    margin-bottom: 30px;
}
.grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 20px;
}
.grid > div {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
}
.grid h4 {
    margin-top: 0; margin-bottom: 10px; color: #333; font-size: 1.1em;
}
.upload-button {
    padding: 10px 20px; background-color: #17a2b8; color: white; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-block; margin-top: 15px; transition: background-color 0.3s ease; font-weight: 600; font-size: 1em;
}
.upload-button:hover {
    background-color: #138496;
}

.chart-container {
    position: relative;
    height: 45vh;
    min-height: 350px;
    width: 100%;
    margin-top: 25px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.form-container {
    max-width: 650px;
    margin: 25px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.form-container h3 {
    text-align: center; margin-bottom: 25px; color: #333; font-size: 1.3em;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block; margin-bottom: 6px; font-weight: bold; font-size: 0.95em;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 1em;
}
.form-group input[type="file"] {
     padding: 8px;
}
.form-group button {
    padding: 12px 20px; background-color: #28a745; color: white; border: none; border-radius: 5px; cursor: pointer; width: 100%; font-size: 1.1em; font-weight: 600; margin-top: 10px; /* Space above button */
}
 .form-group button:hover {
    background-color: #218838;
 }

.bidding-table-container {
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.bidding-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0; 
    background-color: #fff;
}
.bidding-table th, .bidding-table td {
    border: none; 
    border-bottom: 1px solid #eee; 
    padding: 12px 15px; 
    text-align: left;
    vertical-align: middle;
    white-space: nowrap; 
}
.bidding-table th {
    background-color: #f7f7f7; 
    font-weight: 600;
    color: #444;
    white-space: normal; 
}
.bidding-table tr:last-child td {
    border-bottom: none; 
}

.bidding-table tr:hover {
    background-color: #eef8ff;
}
.bidding-table td.bid-amount {
    font-weight: bold;
    color: #008000;
    font-size: 1.05em;
}
.bidding-table button {
    padding: 6px 12px;
     background-color: #007bff;
     color: white;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-size: 0.9em;
     font-weight: 600;
     transition: background-color 0.2s ease;
}
.bidding-table button:hover {
     background-color: #0056b3;
}

.place-bid {
    margin-top: 30px;
}
.place-bid .form-container {
    max-width: 550px;
    margin: 20px auto; padding: 25px; border: 1px solid #ccc; border-radius: 8px; background-color: #f9f9f9;
}
 .place-bid .form-container label {
    display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.95em;
}
 .place-bid .form-container input[type="text"],
 .place-bid .form-container input[type="number"] {
    width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 1em;
}
.place-bid .form-container input[readonly] {
    background-color: #e9ecef; cursor: not-allowed;
}

.place-bid .form-container button {
    padding: 12px 18px; background-color: #28a745; color: white; border: none; border-radius: 5px; cursor: pointer; width: 100%; font-weight: 600; font-size: 1.1em; margin-top: 5px;
}
.place-bid .form-container button:hover {
    background-color: #218838;
}
#bidStatus {
     margin-top: 15px; text-align: center; font-weight: bold; min-height: 1.2em; font-size: 0.95em;
}

.current-weather {
    text-align: center; margin-bottom: 35px;
}
.weather-card {
    background-color: #fff;
    background-image: linear-gradient(to bottom right, #e3f2fd, #bbdefb); 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px 30px;
    display: inline-block;
    border: 1px solid #b3e5fc;
    min-width: 300px;
}
.weather-card h4 {
    font-size: 1.7em; font-weight: 600; margin-bottom: 12px; color: #0d47a1;
}
.weather-card p {
    font-size: 1.1em; margin-bottom: 10px; color: #333;
}
.weather-card span.font-semibold {
    font-weight: 600; color: #01579b;
}

.weather-forecast {
    margin-bottom: 35px;
}
.weather-forecast h3 {
    text-align: center;
}
.weather-forecast > p {
     text-align: center; margin-bottom: 25px; color: #555;
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.forecast-day-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}
.forecast-day-card:hover {
    transform: translateY(-3px);
}
.forecast-day-card .day-label {
    font-weight: bold; margin-bottom: 5px; font-size: 1em;
}
.forecast-day-card .text-sm {
    font-size: 0.9em; color: #555;
}
.forecast-day-card .text-gray-600 {
    color: #666; font-size: 0.85em;
}
.forecast-day-card img {
    width: 55px;
    height: 55px;
    margin: 8px auto;
    display: block;
}

.weather-trends {
    margin-bottom: 25px;
}

.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #e9ecef;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column; align-items: flex-start; padding: 15px;
    }
    .nav-ele-div {
        margin-top: 10px; flex-wrap: wrap; justify-content: flex-start; width: 100%;
    }
    .nav-ele {
        margin-left: 0; margin-right: 15px; margin-bottom: 8px;
    }
    .page-container {
        padding: 0 15px; margin-top: 20px; margin-bottom: 20px;
    }
    .content-section {
        padding: 20px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .bidding-table-container {
         width: 100%;
         overflow-x: auto;
         -webkit-overflow-scrolling: touch;
    }
    .bidding-table {
        min-width: 600px;
    }
     .bidding-table th, .bidding-table td {
        white-space: nowrap;
        padding: 10px;
    }
    .weather-forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 15px;
    }
    .chart-container {
        height: 55vh;
    }
    .info-gallery {
        gap: 20px;
    }
    .product-gallery {
        gap: 20px;
    }
}


