* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}


body {
  margin: 0;
  min-height: 100vh;
  background-image: url("../img/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 25, 0.85);
  z-index: -1;
}

.logo {
  width: 160px;
  margin-bottom: 20px;
}

/* ===== HOME FULL SCREEN ===== */

body.home {
  display: block;
  padding: 0;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-top {
  width: 140px;
}

.btn-login {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid #4aa3ff;
  border-radius: 8px;
  color: #4aa3ff;
  cursor: pointer;
}

.btn-login:hover {
  background: #4aa3ff;
  color: #fff;
}

.home-content {
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.home-content h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.home-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
  opacity: 0.95;
}

.home-actions {
  margin-top: 30px;
}

.btn-primary {
  padding: 14px 32px;
  background: #0077ff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}

.btn-primary:hover {
  background: #005fd1;
}


.card {
  width: 420px;
  background: rgba(10, 20, 30, 0.9);
  padding: 32px;
  border-radius: 12px;
  color: #fff;

  /* 👇 ISSO CENTRALIZA O CONTEÚDO */
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: none;
  background: #1b2a3a;
  color: #fff;
}

button {
  width: 100%;
  padding: 12px;
  background: #0077ff;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

a {
  color: #4aa3ff;
  text-decoration: none;
  font-size: 14px;
}

/* ===== PAINEL ADMIN / DASHBOARD ===== */

body.painel {
  display: block;
  background-image: url("../img/background.png");
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOPO */

.topo {
  width: 100%;
  padding: 20px 40px;
  background: rgba(10, 20, 30, 0.95);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topo nav a {
  margin-left: 20px;
  color: #4aa3ff;
  font-weight: 500;
}

.topo nav a:hover {
  text-decoration: underline;
}

/* CONTEÚDO */

.conteudo {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;

  padding: 40px 20px;
  color: #fff;
}


/* ===== CARDS INTERNOS ===== */

.card-painel {
  background: rgba(10, 20, 30, 0.9);
  padding: 28px;
  border-radius: 12px;
  margin-bottom: 25px;
}


/* ===== TABELAS ===== */

.tabela {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.tabela th {
  background: #132233;
  padding: 12px;
  text-align: left;
  font-size: 14px;
}

.tabela td {
  padding: 12px;
  border-bottom: 1px solid #223344;
  font-size: 14px;
}

.tabela tr:hover {
  background: rgba(0, 119, 255, 0.05);
}


/* ===== BOTÕES ===== */

.btn-small {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: none;
}

.btn-edit {
  background: #0077ff;
  color: #fff;
}

.btn-danger {
  background: #d33;
  color: #fff;
}

.btn-warning {
  background: #f5a623;
  color: #000;
}


/* ===== FORM ADMIN ===== */

.form-painel {
  max-width: 600px;
}

.form-painel label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 14px;
  opacity: 0.9;
}

.form-painel input,
.form-painel select {
  width: 100%;
  padding: 10px;
  background: #1b2a3a;
  border: none;
  border-radius: 8px;
  color: #fff;
}


/* ===== MODAL ===== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);

  display: none;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-box {
  background: rgba(10, 20, 30, 0.95);
  padding: 25px;
  border-radius: 12px;
  width: 400px;
  color: #fff;
}
