/* ========== Base layout ========== */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  color: #072952;
}

/* ========== Navbar ========== */
nav,
.navbar {
  background: #072952;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.nav-right {
  display: flex;
  gap: 20px;
}

.nav-right a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.nav-right a:hover {
  text-decoration: underline;
}

/* ========== Main container ========== */
.container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
  color: #072952;
}

/* ========== Forms (index + edit) ========== */
.form-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.form-block label {
  font-weight: 600;
  font-size: 14px;
  color: #072952;
}

.form-block input {
  padding: 9px 10px;
  font-size: 14px;
  border: 1px solid #ccd2dd;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  width: 100%;
}

.form-block input:focus {
  outline: none;
  border-color: #072952;
  box-shadow: 0 0 0 2px rgba(7, 41, 82, 0.15);
}

/* Harvest preview text */
.harvest-preview {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #0a7a28;
}

/* ========== Buttons ========== */
.btn {
  flex: 1;
  text-align: center;
  margin-top: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  border: none;
  cursor: pointer;
  background: #072952;
  color: white;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #094072;
}

/* Delete button */
.btn-danger {
  background: #c62828;
  color: white;
}

.btn-danger:hover {
  background: #e53935;
}

/* ========== Links under forms ========== */
.link {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: #072952;
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ========== Dashboard plant cards ========== */
.plant-card {
  background: #f0f4f8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.plant-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #072952;
}

.plant-card p {
  margin: 4px 0;
  font-size: 14px;
}

/* View button on dashboard */
.view-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 18px;
  background: #072952;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

.view-btn:hover {
  background: #094072;
}

/* ========== Plant details page buttons ========== */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}

/* ========== Empty state on dashboard ========== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #fffbe6;
  border: 1px solid #f2c12e;
  border-radius: 8px;
}

.empty-state h3 {
  margin-bottom: 10px;
}

.empty-state p {
  margin-bottom: 14px;
  font-size: 14px;
}

.btn-primary {
  background: #072952;
  color: white;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  font-size: 14px;
}

.btn-primary:hover {
  background: #094072;
}

/* ========== Responsive tweak ========== */
@media (max-width: 480px) {
  .container {
    margin: 20px 10px;
    padding: 16px;
  }

  .actions {
    flex-direction: column;
  }

  .nav-left {
    font-size: 14px;
  }

  .nav-right {
    gap: 12px;
  }
}

/* ========== Harvest badge ========== */
.harvest-badge {
  background: #ffcc00;
  color: #072952;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
}