@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #f2f4f0;
  --bg-alt: #e7ece6;
  --surface: #ffffff;
  --text: #1b1f1d;
  --muted: #6b736f;
  --accent: #0f5f4f;
  --accent-soft: #d9efe9;
  --border: #e2e6e0;
  --shadow: 0 20px 40px rgba(17, 20, 18, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, #f9fbf7 0%, transparent 45%),
    radial-gradient(circle at 80% 10%, #e4f4ef 0%, transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: -1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 8vw;
}

.logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.main {
  padding: 10px 8vw 40px;
  animation: fade-in 0.6s ease-out;
}

.site-footer {
  text-align: center;
  padding: 24px 0 40px;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0b4e41;
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: #f5f7f4;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.hero .logo {
  margin: 0 auto;
}

.hero .actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.icon-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #fff;
  text-decoration: none;
}

.icon-btn:hover {
  background: #f7f9f6;
}

.icon {
  width: 18px;
  height: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

.table thead th {
  color: var(--muted);
  font-weight: 500;
}

.table tbody tr:nth-child(odd) {
  background: #fafcf9;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-pendente {
  background: #fff2d6;
  color: #9a5b00;
}

.badge-aprovada {
  background: #dff3e8;
  color: #1f6b4a;
}

.badge-reprovada {
  background: #ffe0e0;
  color: #8f2c2c;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
}

.filter-pill.active {
  background: var(--accent-soft);
  border-color: #bfe2d7;
  color: var(--accent);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
}

.stack {
  display: grid;
  gap: 16px;
}

.muted {
  color: var(--muted);
}

.page-center {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.client-meta img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.detail-actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.detail-actions form {
  display: grid;
  gap: 8px;
}

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

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

@media (max-width: 700px) {
  .client-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
