* {
  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;
  --blue: #2563eb;
  --danger: #ef4444;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  padding: 18px;
}

.app {
  max-width: 980px;
  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.75);
  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: 20px;
  padding: 24px;
  margin-top: 58px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-fly {
  width: 95px;
  height: 95px;
  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: 30px;
  letter-spacing: 2px;
  font-weight: 900;
}

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

.painel {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.novo-usuario-painel {
  margin-bottom: 18px;
}

.senha-painel {
  margin-bottom: 18px;
}

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

.painel-topo span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.btn-acao {
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: white;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.status {
  min-height: 38px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status.erro {
  color: #b91c1c;
}

.status.sucesso {
  color: #15803d;
}

.tabela-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
  font-weight: 800;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  word-break: break-all;
}

select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: white;
  color: var(--text);
  font-weight: 800;
}

.status-toggle {
  min-height: 38px;
  border: none;
  border-radius: 10px;
  padding: 0 12px;
  color: white;
  background: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.status-toggle.inativo {
  background: var(--danger);
}

.novo-usuario-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
  gap: 12px;
  padding: 18px;
  align-items: end;
}

.novo-usuario-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.senha-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  padding: 18px;
  align-items: end;
}

.senha-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.novo-usuario-form input,
.novo-usuario-form select,
.senha-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--text);
  background: white;
  font-weight: 800;
}

.novo-usuario-form button {
  min-width: 130px;
}

.btn-reset-senha {
  min-height: 38px;
  border: none;
  border-radius: 10px;
  padding: 0 12px;
  background: #2563eb;
  color: white;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.btn-reset-senha:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

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

  .btn-acao {
    width: 100%;
  }

  .novo-usuario-form {
    grid-template-columns: 1fr;
  }

  .senha-form {
    grid-template-columns: 1fr;
  }
}

/* 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 {
  border-color: rgba(255, 255, 255, 0.45);
  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);
}

.topo::after {
  background: rgba(255, 255, 255, 0.14);
}

.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 {
  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));
}

.novo-usuario-form input,
.novo-usuario-form select,
.senha-form input {
  border-color: #e5e7eb;
}

th {
  background: #0f766e;
  color: #ffffff;
}

tbody tr:nth-child(even) {
  background: #f3f8fb;
}

tbody tr:hover {
  background: #eef9f7;
}

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

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

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

  .app {
    width: 100%;
  }
}

/* POLIMENTO VISUAL 1.0.1 */

:root {
  --bg-dark: #07111f;
  --bg-dark-2: #0b2238;
  --surface-soft: #f8fafc;
  --surface-glass: rgba(255, 255, 255, 0.94);
  --green-strong: #15803d;
  --focus: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

body {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.24), transparent 30rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.24), transparent 32rem),
    linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2) 48%, #eef2f7 48%);
  background-attachment: fixed;
}

.app {
  padding-bottom: 26px;
}

.topo,
.painel {
  border: 1px solid rgba(219, 228, 239, 0.9);
}

.topo {
  position: relative;
  overflow: hidden;
}

.topo::after {
  content: "";
  position: absolute;
  inset: auto -18% -60% 52%;
  height: 220px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-18deg);
}

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

.painel {
  background: var(--surface-glass);
}

.painel-topo {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.btn-acao,
.status-toggle,
.usuario-box button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: var(--blue);
}

th {
  background: #f8fafc;
}

tbody tr:nth-child(even) {
  background: var(--surface-soft);
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at top, rgba(20, 184, 166, 0.26), transparent 20rem),
      linear-gradient(180deg, #07111f 0, #0b2238 190px, #eef2f7 190px);
  }

  .painel {
    border-radius: 18px;
  }

  .tabela-wrapper {
    padding: 0 12px 12px;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
  }

  td {
    border-top: 0;
    padding: 10px 12px;
  }
}
