/* Hub Pessoas - Component Styles */
/* Tailwind utility classes are used inline in templates via Play CDN */
/* This file provides component-class overrides and extras that cannot rely
   on @apply (since we use the Tailwind Play CDN there is no build step). */

body {
  font-family: 'Open Sans', system-ui, sans-serif;
}

/* ---------- Cards & buttons (Phase 03 base) ---------- */
.card {
  border-radius: 0.5rem;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  background-color: #038242;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  border: 0;
  transition: background-color 150ms ease;
  cursor: pointer;
}
.btn-primary:hover:not(:disabled) { background-color: #026935; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #404040;
  text-decoration: none;
  transition: background-color 150ms ease;
  cursor: pointer;
}
.btn-secondary:hover { background-color: #fafafa; }

.input {
  display: block;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #171717;
}
.input::placeholder { color: #a3a3a3; }
.input:focus {
  outline: none;
  border-color: #038242;
  box-shadow: 0 0 0 1px #038242;
}

.label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #525252;
}

/* ---------- Phase 05: Status badges ---------- */
.badge-status-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid #d6e9c6;
  background-color: #dff0d8;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #026935;
}

.badge-status-attention {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid #fde68a;
  background-color: #fffbeb;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
}

.badge-status-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid #fecaca;
  background-color: #fef2f2;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b91c1c;
}

.badge-status-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid #d4d4d4;
  background-color: #f5f5f5;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #525252;
}

.badge-status-large {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  gap: 0.5rem !important;
}

/* ---------- Legal disclaimer ---------- */
.disclaimer-legal {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #fde68a;
  background-color: #fffbeb;
  padding: 1rem;
}

/* ---------- Cache indicators ---------- */
.cache-indicator-hit {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #026935;
}

.cache-indicator-miss {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #737373;
}

/* ---------- Result items ---------- */
.result-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.result-item-label { color: #525252; }
.result-item-value {
  font-weight: 600;
  color: #171717;
  text-align: right;
}
