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

[hidden] {
  display: none !important;
}

:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4ef;
  --green: #0f766e;
  --green-2: #12897f;
  --blue: #2563eb;
  --danger: #ef4444;
  --warning: #facc15;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, #062d36 0 28%, transparent 28%),
    linear-gradient(135deg, #eef2f7 0%, #dbeafe 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  padding: 18px;
}

.app {
  max-width: 1180px;
  margin: auto;
}

.btn-menu {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1001;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.menu-lateral {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: var(--text);
  color: white;
  z-index: 1002;
  padding: 22px;
  box-shadow: 12px 0 30px rgba(0,0,0,0.35);
  transition: 0.3s ease;
}

.menu-lateral.aberto {
  left: 0;
}

.menu-lateral h2 {
  margin-bottom: 24px;
  font-size: 22px;
}

.menu-lateral a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.08);
}

.menu-lateral a:hover {
  background: #16a34a;
}

.usuario-box {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.usuario-box span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
  margin-bottom: 10px;
}

.usuario-box button {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--danger);
  color: white;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.fechar-menu {
  background: none;
  border: none;
  color: white;
  font-size: 34px;
  float: right;
  cursor: pointer;
}

.fundo-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
}

.fundo-menu.aberto {
  display: block;
}

.topo {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  border-radius: 22px;
  padding: 26px;
  margin-top: 58px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-fly {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.75);
  margin-bottom: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.titulo-topo h1 {
  font-size: 32px;
  letter-spacing: 2px;
  font-weight: 900;
}

.titulo-topo p {
  margin-top: 6px;
  color: #dbeafe;
  font-weight: 700;
}

.painel {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(219, 228, 239, 0.95);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.painel-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.painel-topo span,
.passageiro-form label,
.card-info span,
.passageiro-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.painel-topo strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.passageiro-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.passageiro-form input,
.passageiro-form select,
.passageiro-form textarea,
.busca-area input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  margin-top: 8px;
  background: white;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.passageiro-form textarea {
  min-height: 92px;
  padding-top: 14px;
  resize: vertical;
}

.passageiro-form input:focus,
.passageiro-form select:focus,
.passageiro-form textarea:focus,
.busca-area input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.campo-largo {
  grid-column: span 2;
}

.btn-acao {
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--green);
  color: white;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.btn-acao:hover,
.btn-mini:hover {
  transform: translateY(-1px);
}

.btn-acao.secundario {
  background: #e2e8f0;
  color: var(--text);
}

.btn-acao.principal {
  align-self: end;
}

.status {
  padding: 14px 22px;
  color: var(--green);
  font-weight: 900;
}

.status.erro {
  color: #b91c1c;
}

.recorrentes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 22px 24px;
}

.recorrente-card,
.passageiro-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.recorrente-card strong,
.passageiro-card h3 {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.card-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card-info strong {
  color: var(--green);
  font-size: 20px;
}

.busca-area {
  padding: 18px 22px 0;
}

.passageiros-lista {
  display: grid;
  gap: 12px;
  padding: 18px 22px 24px;
}

.passageiro-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 14px;
  align-items: center;
}

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

.passageiro-meta strong {
  display: block;
  margin-top: 3px;
}

.pontos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 34px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
}

.acoes-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.btn-mini {
  min-height: 38px;
  border: none;
  border-radius: 12px;
  padding: 0 12px;
  background: #e2e8f0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.btn-mini.perigo {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 900px) {
  .passageiro-form,
  .recorrentes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .passageiro-card {
    grid-template-columns: 1fr;
  }

  .acoes-card {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    padding: 10px;
  }

  .topo {
    margin-top: 66px;
    padding: 22px 14px;
  }

  .titulo-topo h1 {
    font-size: 26px;
  }

  .painel-topo {
    align-items: flex-start;
    flex-direction: column;
  }

  .passageiro-form,
  .recorrentes-grid,
  .card-info,
  .passageiro-meta {
    grid-template-columns: 1fr;
  }

  .campo-largo {
    grid-column: auto;
  }
}

/* Identidade visual Fly Brasil 2026 */

body {
  background:
    linear-gradient(115deg, rgba(5, 46, 58, 0.96) 0 18%, transparent 18.1%),
    radial-gradient(circle at 88% 6%, rgba(37, 99, 235, 0.20), transparent 28%),
    linear-gradient(180deg, #eef5fb 0%, #f7fafc 42%, #edf2f7 100%);
  background-attachment: fixed;
}

.app {
  width: min(1360px, calc(100vw - 52px));
  max-width: none;
}

.btn-menu {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: #111827;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.menu-lateral {
  background: rgba(255, 255, 255, 0.97);
  color: #111827;
  border-right: 1px solid #e5e7eb;
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.14);
}

.menu-lateral h2,
.fechar-menu {
  color: #111827;
}

.menu-lateral a {
  background: transparent;
  color: #4b5563;
  border: 1px solid transparent;
}

.menu-lateral a:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

.usuario-box {
  border-top-color: #e5e7eb;
}

.usuario-box span {
  color: #6b7280;
}

.topo {
  display: flex;
  min-height: 188px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(37, 99, 235, 0.88));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.topo::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 460px;
  height: 260px;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(-12deg);
}

.topo > * {
  position: relative;
  z-index: 1;
}

.logo-fly {
  background: #ffffff;
  border: 6px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.titulo-topo h1,
.titulo-topo p {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.titulo-topo h1 {
  letter-spacing: 0;
}

.painel,
.recorrente-card,
.passageiro-card {
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.painel-topo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
}

.recorrente-card:nth-child(1),
.passageiro-card:nth-child(3n + 1) {
  border-left: 5px solid #0f766e;
}

.recorrente-card:nth-child(2),
.passageiro-card:nth-child(3n + 2) {
  border-left: 5px solid #2563eb;
}

.recorrente-card:nth-child(3),
.passageiro-card:nth-child(3n + 3) {
  border-left: 5px solid #f59e0b;
}

.passageiro-form input,
.passageiro-form select,
.passageiro-form textarea,
.busca-area input {
  border-color: #e5e7eb;
}

.btn-acao {
  background: #111827;
  box-shadow: none;
}

.btn-acao.secundario,
.btn-mini {
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #111827;
  box-shadow: none;
}

.btn-mini.perigo {
  background: #fff1f2;
  color: #dc2626;
}

@media (max-width: 620px) {
  body {
    background: linear-gradient(180deg, #062b36 0, #0f766e 178px, #eef5fb 178px);
  }

  .app {
    width: 100%;
  }

  .topo {
    min-height: 156px;
    border-radius: 22px;
  }
}
