/* Toast/Notificación */
.toast {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(-40px);
  background: #2ecc40;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(44,110,73,0.13);
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
/* Waste Types & Comments Admin Cards */
.waste-type-card {
  background: #fff;
  border: 1px solid #e0e8e0;
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(44,110,73,0.04);
  position: relative;
}
.waste-status.active { color: #2ecc40; font-weight: bold; }
.waste-status.inactive { color: #c0392b; font-weight: bold; }
.waste-actions button {
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  background: #eaf4ea;
  color: #2c6e49;
  border: 1px solid #2ecc40;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.waste-actions button:hover {
  background: #2ecc40;
  color: #fff;
}
.waste-instr { font-size: 0.95rem; color: #888; margin-top: 0.3rem; }

.comment-card {
  background: #fff;
  border: 1px solid #e0e8e0;
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(44,110,73,0.04);
}
.comment-status {
  font-size: 0.95rem;
  color: #2c6e49;
  margin-left: 0.5rem;
}
.comment-card.nuevo { border-left: 4px solid #2ecc40; }
.comment-card.leído { border-left: 4px solid #f1c40f; }
.comment-card.respondido { border-left: 4px solid #2980b9; }
.comment-actions button {
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  background: #eaf4ea;
  color: #2c6e49;
  border: 1px solid #2ecc40;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-actions button:hover {
  background: #2ecc40;
  color: #fff;
}
/* Admin Page Styles */
.admin-section {
  background: #f7faf7;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(44,110,73,0.07);
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  max-width: 700px;
  width: 100%;
}

.admin-section h2 {
  color: #2c6e49;
  margin-bottom: 1.2rem;
}

.admin-form {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(44,110,73,0.06);
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form h3 {
  margin-bottom: 0.7rem;
  color: #2c6e49;
}

.admin-user {
  font-weight: bold;
  color: #2c6e49;
  margin-right: 1rem;
}

@media (max-width: 700px) {
  .admin-section {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
  }
  .admin-form {
    padding: 0.7rem 0.2rem;
  }
}
/* Login Page Styles */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(44,110,73,0.08);
  padding: 2rem 2.5rem;
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form h2 {
  margin-bottom: 1rem;
  color: #2c6e49;
  text-align: center;
}

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

.login-form input[type="text"],
.login-form input[type="password"] {
  padding: 0.6rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 1rem;
}

.login-form button[type="submit"] {
  background: #2ecc40;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.7rem 0;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.login-form button[type="submit"]:hover {
  background: #27ae38;
}

.back-link {
  display: block;
  margin-top: 0.7rem;
  text-align: center;
  color: #2c6e49;
  text-decoration: underline;
  font-size: 0.95rem;
}

.login-error {
  color: #c0392b;
  font-size: 0.98rem;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .login-form {
    padding: 1.2rem 0.7rem;
    max-width: 98vw;
  }
}
/* Header Flexbox Layout y botón login */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.login-btn {
  background: #2ecc40;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 1rem;
}
.login-btn:hover {
  background: #27ae38;
}

@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .main-nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
  }
  .login-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f3f7f0;
  color: #333;
}

header {
  background: #2c6e49;
  color: white;
  padding: 1rem;
  text-align: center;
}

header nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

header nav a:hover {
  text-decoration: underline;
}

.hero {
  padding: 2rem;
  text-align: center;
  background: #eaf4ea;
}

button {
  background: #2c6e49;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background: #3c915e;
}

section {
  padding: 2rem;
}

.accordion .acc-content {
  display: none;
  padding: 10px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #ccc;
}

form {
  display: grid;
  gap: 10px;
  max-width: 400px;
}

input, textarea {
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #2c6e49;
  color: white;
  margin-top: 2rem;
}

/* ===== React widget ===== */
#react { background: #f7faf7; border-top: 1px solid #e0e8e0; }
.react-card {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dfe7df;
  border-radius: 8px;
  padding: 1rem;
}
.react-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 220px;
  margin-bottom: 12px;
}
.react-controls input,
.react-controls select {
  padding: 8px;
  border: 1px solid #bfc9bf;
  border-radius: 6px;
  font-size: 14px;
}
.react-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.react-item {
  border: 1px solid #e2e8e2;
  background: #fbfdfb;
  border-radius: 6px;
  padding: 10px;
}
.react-item .badge {
  display: inline-block;
  font-size: 12px;
  background: #e8f4ec;
  color: #2c6e49;
  border: 1px solid #cfe5d7;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}
.react-sub { color: #4b5a4b; margin-top: 4px; font-size: 14px; }
.react-empty { color: #6b786b; font-style: italic; text-align: center; }

/* Responsive */
@media (max-width: 640px) {
  .react-controls { grid-template-columns: 1fr; }
}