/* frontend/public/css/style.css */

/* Reset simples */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #e7f8e9; /* verde bem claro */
  color: #222222;
}

/* Barra superior */
.topbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #35a843; /* verde Normatel */
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.topbar .logo {
  height: 36px;
  margin-right: 12px;
}

.topbar-title {
  display: flex;
  flex-direction: column;
}

.topbar-title span:first-child {
  font-size: 14px;
  opacity: 0.9;
}

.topbar-title span:last-child {
  font-size: 18px;
  font-weight: 600;
}

/* Container principal */
.container {
  max-width: 640px;
  margin: 16px auto;
  padding: 16px;
}

/* Cartões */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-header h2,
.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #006633;
}

.tag-predio {
  background: #e7f8e9;
  color: #006633;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* Textos */
.info-label {
  font-weight: 600;
  font-size: 14px;
}

.info-value {
  font-size: 15px;
}

/* Status da troca */
.status-row {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-ok {
  background: #e6f4ea;
  color: #1e7b34;
}

.status-alerta {
  background: #fff4e5;
  color: #c25d00;
}

.status-atrasado {
  background: #fdecea;
  color: #b3261e;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.05s ease;
}

.btn-primary {
  background: #35a843;
  color: #ffffff;
}

.btn-primary:hover {
  background: #2b8a37;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #006633;
  border: 1px solid #35a843;
}

.btn-outline:hover {
  background: #e7f8e9;
}

/* Link laudos anteriores */
.link-historico {
  text-align: center;
  margin-top: 8px;
}

.link-historico a {
  color: #006633;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.link-historico a:hover {
  text-decoration: underline;
}

/* Rodapé pequeno */
.footer {
  text-align: center;
  font-size: 11px;
  color: #777777;
  margin-top: 8px;
  margin-bottom: 12px;
}
