:root {
  --bg: #fbfdfa;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #10b981; /* verde */
  --accent-600: #059669;
  --accent-300: #6ee7b7;
  --glass: rgba(255,255,255,0.6);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html,body{height:100%;background:linear-gradient(180deg,#f7fdf7 0%,var(--bg) 60%);margin:0}
.container { max-width: 780px; margin: 28px auto; padding: 0 20px; }

/* Header / hero */
.header {
  display:flex;align-items:center;gap:12px;margin-bottom:18px;
}
.logo {
  width:56px;height:56px;border-radius:12px;background:linear-gradient(135deg,var(--accent),var(--accent-600));
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:20px;box-shadow:0 6px 18px rgba(16,185,129,0.18);
}
.title { font-size:20px;margin:0 }
.tagline { color:var(--muted); font-size:13px; margin:0 }

.card { border: 1px solid rgba(15,23,42,0.06); border-radius: 14px; padding: 18px; margin: 14px 0; background: var(--card); box-shadow: 0 6px 18px rgba(2,6,23,0.04); }
.city-name { font-size: 18px; font-weight: 700; color: var(--accent-600); margin: 0 0 4px 0; }
.row { display:flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

button { padding: 10px 14px; border-radius: 10px; border: none; background: var(--accent); color: #fff; cursor:pointer; font-weight:600; box-shadow: 0 6px 18px rgba(16,185,129,0.12); transition: transform .08s ease, box-shadow .12s ease; }
button:hover{ transform: translateY(-1px); box-shadow: 0 10px 26px rgba(16,185,129,0.14);}
button.secondary { background: transparent; color: #0b0b0b; border:1px solid rgba(0,0,0,0.06); box-shadow:none }
select { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid rgba(15,23,42,0.06); }
.muted { color:var(--muted); }

/* Calendar */
.day { display:flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(15,23,42,0.04); align-items:center }
.badge { background: linear-gradient(90deg,#f8fafc,#eefcf4); padding: 6px 10px; border-radius: 999px; color:#064e3b; font-weight:600; }
#loader{font-size:13px;color:var(--muted)}
.badge.small{padding:4px 8px;font-size:13px}

.day .datecol{display:flex;flex-direction:column}
.day .datecol .iso{font-size:12px;color:var(--muted)}
.day .datecol .label{font-weight:600}

/* empty state */
.empty { text-align:center; color:var(--muted); padding: 18px 8px }

/* responsive */
@media (max-width:520px){
  .logo{width:48px;height:48px;font-size:18px}
  .title{font-size:18px}
}

/* small utility */
.center { text-align:center }
.waste-item{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;border-radius:8px;background:transparent;}
.waste-icon{width:20px;height:20px;object-fit:contain;border-radius:4px;box-shadow:0 2px 6px rgba(2,6,23,0.06)}
.waste-name{font-weight:600;color:inherit;font-size:13px}
.badge.small{display:flex;flex-wrap:wrap;gap:6px;align-items:center}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  box-sizing: border-box;
  overflow: auto;
}
.modal[hidden] {
  display: none;
}
.modal-content {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  width: calc(100% - 32px);
  max-width: 340px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: auto;
}
.modal-content h3 {
  margin-top: 0;
  color: var(--accent);
}
.modal-content ol {
  text-align: left;
  padding-left: 20px;
}
.modal-content li {
  margin: 8px 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 20px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 13px;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Consent Banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 16px 20px;
  z-index: 1001;
}
.consent-banner[hidden] {
  display: none;
}
.consent-content {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consent-content p {
  font-size: 13px;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}
.consent-content a {
  color: var(--accent);
  text-decoration: underline;
}
.consent-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.consent-accept {
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.consent-accept:hover {
  background: var(--accent-600);
}
.consent-decline {
  background: transparent;
  color: var(--muted);
  padding: 10px 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}
.consent-decline:hover {
  background: rgba(0,0,0,0.03);
}

@media (min-width: 520px) {
  .consent-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .consent-content p {
    flex: 1;
  }
}

/* Welcome Modal */
.welcome-modal {
  z-index: 1002;
}
.welcome-content {
  text-align: center;
}
.welcome-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.welcome-content h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.welcome-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 16px;
}
.welcome-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.welcome-skip {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

