﻿:root {
  --bg: #0f1724;
  --bg-soft: #111f31;
  --surface: #ffffff;
  --surface-muted: #f3f8ff;
  --text: #0f1d2e;
  --text-soft: #5f6f84;
  --primary: #0f7bff;
  --primary-strong: #005dd1;
  --accent: #05b9a8;
  --line: #dbe7f6;
  --success: #1f9d58;
  --danger: #c0392b;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 20px 40px rgba(6, 18, 41, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(27, 110, 232, 0.26), transparent 42%),
    radial-gradient(circle at 84% 14%, rgba(5, 185, 168, 0.22), transparent 34%),
    linear-gradient(155deg, #0c1422 0%, #111f33 48%, #0f1b2d 100%);
}

h1,
h2,
h3,
strong {
  font-family: "Sora", sans-serif;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at top, black 20%, transparent 75%);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 28px 0 38px;
}

.topbar {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f8fcff;
  background: rgba(9, 25, 49, 0.84);
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(5, 185, 168, 0.18);
}

.hero-content {
  margin-top: 44px;
}

.hero-copy {
  padding: 46px;
  border-radius: 28px;
  color: #edf4ff;
  background: linear-gradient(130deg, #0c1b31 0%, #17345d 56%, #0f7bff 100%);
  box-shadow: var(--shadow);
  animation: rise 0.7s ease;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9ec6ff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.lead {
  max-width: 66ch;
  margin: 16px 0 0;
  color: #d1e2fa;
  line-height: 1.65;
}

.hero-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics article {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.hero-metrics strong {
  font-size: 1.45rem;
  display: block;
}

.hero-metrics span {
  color: #c9dcf8;
  font-size: 0.9rem;
}

.panel {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px rgba(10, 31, 66, 0.08);
}

.filtros {
  margin: -18px auto 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group label {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

select,
input,
textarea,
button {
  font: inherit;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select[multiple] {
  min-height: 170px;
}

select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 123, 255, 0.17);
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 24px 0 14px;
}

.results-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
}

.results-head p {
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  padding-bottom: 24px;
}

.card {
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d8e8ff;
  box-shadow: 0 8px 22px rgba(6, 35, 70, 0.08);
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  animation: rise 0.4s ease both;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #9ec7ff;
  box-shadow: 0 12px 28px rgba(0, 69, 150, 0.14);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 8px 0;
  line-height: 1.45;
  color: #32445c;
}

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 7px 11px;
  background: #e8f2ff;
  color: #0c4b97;
  font-size: 0.82rem;
  font-weight: 700;
}

.estado-vazio {
  text-align: center;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #6f7f95;
  border: 1px dashed #bed4f3;
  background: #f8fbff;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 24, 0.68);
  justify-content: center;
  align-items: center;
  z-index: 50;
  padding: 18px;
}

.modal-content {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  position: relative;
}

.modal-content h3 {
  margin: 12px 0 8px;
}

.modal-local {
  color: var(--text-soft);
}

.fechar {
  border: 0;
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 1.7rem;
  color: #6380a6;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0f7bff, #005dd1);
}

.btn-ghost {
  color: #10315f;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #d6e7ff;
}

.btn-whats {
  margin-top: 14px;
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #27d56f, #1c9f51);
}

footer {
  text-align: center;
  color: #5a6f8a;
  padding: 20px 10px 30px;
}

.page-cadastro {
  display: flex;
}

.cadastro-page {
  padding: 26px 0 46px;
}

.cadastro-panel {
  margin-top: 18px;
  padding: 28px;
}

.cadastro-header h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

.cadastro-header p {
  color: var(--text-soft);
}

.cadastro-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  color: #4c627f;
}

.field-help {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #37506f;
  font-weight: 600;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.msg {
  margin-top: 14px;
  font-weight: 700;
}

.hidden {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-copy {
    padding: 30px;
  }

  .filtros {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .results-head {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .hero-copy {
    padding: 24px;
  }

  .cadastro-panel {
    padding: 20px;
  }
}

.top-actions {
  display: flex;
  gap: 10px;
}

.admin-page {
  padding: 26px 0 46px;
}

.admin-login,
.admin-header {
  margin-top: 18px;
  padding: 24px;
}

.admin-login h1,
.admin-header h2 {
  margin: 0;
}

.admin-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats article {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.admin-stats strong {
  font-size: 1.8rem;
  color: #123868;
}

.admin-stats span {
  color: var(--text-soft);
  font-weight: 700;
}

.admin-filtros {
  margin-top: 12px;
  grid-template-columns: 280px 1fr;
}

.admin-search {
  grid-column: auto;
}

.admin-card {
  cursor: default;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-badge.aprovado {
  background: #def8ea;
  color: #176c3f;
}

.status-badge.pendente {
  background: #fff0d8;
  color: #9a6400;
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #d74d4d, #b92f2f);
}

.modal-edit {
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .top-actions {
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-filtros {
    grid-template-columns: 1fr;
  }
}
