body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f8f5;
  color: #1c2b22;
}

main {
  max-width: 700px;
  margin: 70px auto;
  padding: 30px;
  text-align: center;
}

h1,
h2,
h3 {
  color: #1f6b3b;
}

button {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background-color: #f6b73c;
  color: #1c2b22;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #e6a51f;
}

.auth-section,
.dashboard-card {
  margin: 25px auto;
  padding: 28px;
  text-align: left;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(28, 43, 34, 0.1);
}

.auth-section {
  max-width: 420px;
}

.auth-section h2,
.dashboard-card h2 {
  margin-top: 0;
  font-size: 22px;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: bold;
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #c8d2ca;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

.auth-section button,
.dashboard-card form button {
  width: 100%;
  margin-top: 22px;
}

#message,
#businessMessage,
#leadMessageStatus,
#productMessage {
  min-height: 24px;
  font-weight: bold;
  color: #1f6b3b;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.dashboard-label {
  margin: 0;
  color: #1f6b3b;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.dashboard-header h1 {
  margin: 8px 0;
}

.dashboard-header #userEmail {
  margin: 0;
}

.logout-button,
.dashboard-card form .logout-button {
  width: auto;
  margin-top: 0;
  background-color: #d94841;
  color: #ffffff;
}

.logout-button:hover {
  background-color: #bd352f;
}

.leads-list,
.products-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.lead-card,
.product-card {
  padding: 18px;
  border: 1px solid #dfe7e1;
  border-radius: 8px;
  background-color: #f9fcfa;
}

.lead-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.lead-card h3,
.product-card h3 {
  margin: 0 0 10px;
}

.lead-card p,
.product-card p {
  margin: 10px 0;
}

.lead-status,
.product-category {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: #dff3e5;
  color: #1f6b3b;
  font-size: 13px;
  font-weight: bold;
}

.form-actions,
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-card .form-actions button,
.card-actions button {
  width: auto;
  margin-top: 0;
}

.secondary-button {
  background-color: #e2e8e4;
}

.secondary-button:hover {
  background-color: #cdd8d0;
}

.edit-button {
  background-color: #e6a51f;
}

.delete-button {
  background-color: #d94841;
  color: #ffffff;
}

.delete-button:hover {
  background-color: #bd352f;
}

.hidden {
  display: none;
}

.empty-state {
  padding: 20px;
  text-align: center;
  color: #607066;
  background-color: #f9fcfa;
  border-radius: 8px;
}

@media (max-width: 600px) {
  main {
    margin: 35px auto;
    padding: 18px;
  }

  .dashboard-header,
  .lead-card-header,
  .form-actions,
  .card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-card .form-actions button,
  .card-actions button {
    width: 100%;
  }
}