* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

.header-card {
  text-align: center;
  padding-bottom: 1.25rem;
}

.icon-main {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.meta-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.callout {
  background: #f1f5f9;
  border-left: 4px solid #3b82f6;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  margin-top: 1rem;
  text-align: left;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.callout-text {
  font-size: 0.825rem;
  color: #334155;
  line-height: 1.45;
  font-weight: 500;
}

.doc-card {
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agua-card {
  border-top: 4px solid #0284c7;
}

.energia-card {
  border-top: 4px solid #d97706;
}

.doc-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  width: fit-content;
}

.badge-agua {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-energia {
  background-color: #fef3c7;
  color: #b45309;
}

.doc-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-agua {
  background-color: #0284c7;
  color: #ffffff;
}

.btn-agua:hover {
  background-color: #0369a1;
}

.btn-energia {
  background-color: #d97706;
  color: #ffffff;
}

.btn-energia:hover {
  background-color: #b45309;
}

.footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Estado de Carregamento e Indisponível */
.status-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e2e8f0;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loading-text {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}

.unavailable-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.unavailable-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.5rem;
}

.unavailable-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}
