body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('/assets/index.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  position: relative;
  min-height: 100vh;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  height: 200vh;
  width: 200vw;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 7, 7, 0.7);
  padding: 10px 20px;
}

.navbar a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  text-align: center;
  padding: 40px 20px;
}

.weather-card {
  margin-top: 20px;
  padding: 15px;
  background: rgba(32, 30, 30, 0.027);
  border: 1px solid #ccc;
  border-radius: 10px;
  display: inline-block;
}

.search-bar {
  text-align: center;
  margin: 30px;
}

.search-bar input {
  width: 60%;
  padding: 10px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
}

.crop-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.crop-card {
  background: rgba(10, 2, 2, 0.76);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.crop-card h3 {
  margin-top: 0;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.7);
  position: relative;
  bottom: 0;
  width: 100%;
}


.tips-link {
  text-align: center;
  margin: 20px 0;
}

.btn-tips {
  background-color: #2e7d32;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.btn-tips:hover {
  background-color: #1b5e20;
}

.weather-card {
  background: #fff;
  color: #333;
  padding: 15px;
  margin: 20px auto;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.weather-card h3 {
  margin-top: 0;
  font-size: 20px;
  color: #2e7d32;
}

/* Style for region selector */
#regionSelect {
  display: block;
  margin: 16px auto 8px auto;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #2e7d32;
  background: #fff;
  color: #2e7d32;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
  outline: none;
  transition: border-color 0.3s;
}

#regionSelect:focus {
  border-color: #1b5e20;
}

/* Weather card for selected region */
.weather-card {
  background: #fff;
  color: #333;
  padding: 18px 20px;
  margin: 20px auto;
  max-width: 400px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.12);
}

.weather-card h4 {
  margin-top: 0;
  font-size: 22px;
  color: #2e7d32;
  font-weight: 600;
}

.weather-card p {
  font-size: 18px;
  margin: 8px 0 0 0;
  color: #444;
}

.crop-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.crop-card {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.crop-card:hover {
  background: #e0ffe0;
  transform: scale(1.03);
}

.crop-name {
  font-weight: bold;
  color: #2e7d32;
}

.market {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  margin: 20px auto;
  max-width: 600px;
}

.market-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1e293b;
}

.market-header .subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 18px;
}

.market-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
  outline: none;
}

.upload-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(2, 132, 199, 0.25);
}


