/* RESET BASE */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;

  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* =========================
   TOPO
========================= */
.topo {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: #2f7d5b;
  color: white;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 20px;
  box-sizing: border-box;
}

.topo-esquerda {
  display: flex;
  align-items: center;
}

.logo {
  width: 45px;
  margin-right: 15px;
}

.topo-direita {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topo-direita button {
  background: white;
  color: #2f7d5b;
  border-radius: 4px;
  padding: 6px 10px;
}

.topo-direita button:hover {
  background: #e0e0e0;
}

/* =========================
   BARRA
========================= */
.barra-topo {
  position: fixed;
  top: 55px;
  left: 0;
  width: 100%;
  z-index: 999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 20px;
  background: white;
  border-bottom: 1px solid #ddd;
}

/* =========================
   CONTEÚDO
========================= */
.conteudo {
  flex: 1;
  margin-top: 130px;
  padding: 20px;
  padding-bottom: 70px; /* espaço pro rodapé */
}

/* =========================
   LOGIN
========================= */
.login-box {
  background: white;
  padding: 30px;
  max-width: 320px;
  margin: 120px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.login-box input {
  width: 90%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-box button {
  width: 100%;
  background: #2f7d5b;
  color: white;
  justify-content: center;
}

.login-box button:hover {
  background: #25664a;
}

/* =========================
   BUSCA
========================= */
.busca-box {
  position: relative;
}

.busca-box input {
  padding: 10px 35px 10px 12px;
  width: 320px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.limpar {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
}

/* =========================
   BOTÕES
========================= */
button {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;
  border: none;
  border-radius: 6px;

  cursor: pointer;
}

button img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain;
}

/* =========================
   TABELA
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

th {
  background: #f0f0f0;
  cursor: pointer;
}

.info-extra {
  font-size: 12px;
  color: #666;
}
.status {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.status.livre { background: #4caf50; color: white; }
.status.externo { background: #2196f3; color: white; }
.status.satelite { background: #ff9800; color: white; }
.status.inativo { background: #9e9e9e; color: white; }

td:nth-child(3) { background: #e3f2fd; }
td:nth-child(4) { background: #fff3e0; }

/* =========================
   MENU AÇÕES
========================= */
.acoes {
  display: flex;
  justify-content: flex-start;
  position: relative;
}

.btn-menu {
  background: transparent;
  font-size: 18px;
  margin: 0;
}

.menu-acoes {
  position: absolute;
  left: 20px;   /* unidade corrigida */
  top: 10px;    /* distância ajustada */
  
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;

  display: flex;
  flex-direction: column;
  z-index: 1000; /* garante que fique acima da tabela */
  min-width: 120px; /* largura mínima */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* sombra para destacar */
}

.menu-acoes button {
  background: none;
  color: #333;
  text-align: left;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
}

.menu-acoes button:hover {
  background: #eee;
}

.hidden {
  display: none !important;
}

/* =========================
   MODAL
========================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);

  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  width: 400px; /* largura maior */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-transform: uppercase;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  color: #2f7d5b;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.modal-content input:focus {
  border-color: #2f7d5b;
  outline: none;
  box-shadow: 0 0 4px rgba(47, 125, 91, 0.5);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.modal-actions button {
  background: #2f7d5b;
  color: white;
  border-radius: 6px;
  padding: 8px 14px;
}

.modal-actions button:hover {
  background: #25664a;
}

/* =========================
   TOAST
========================= */
.toast {
  position: fixed;
  bottom: 80px;
  right: 20px;

  background: #2f7d5b;
  color: white;
  padding: 10px;

  border-radius: 6px;
  display: none;
}

.toast.show {
  opacity: 1;
}

/* =========================
   RODAPÉ
========================= */
.rodape {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: #eee;
  text-align: left;
  padding: 8px;

  font-size: 12px;
  color: #666;

  border-top: 1px solid #ccc;
}

.rodape a {
  color: #2f7d5b;
  text-decoration: none;
  font-weight: bold;
}

.rodape a:hover {
  text-decoration: underline;
}

.cards {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.card {
  flex: 1;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-align: center;
  text-decoration: none; /* remove sublinhado do link */
  color: inherit;        /* mantém cor padrão do texto */
  transition: transform 0.2s, box-shadow 0.2s;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #333;
}

.card p {
  font-size: 1.5em;
  font-weight: bold;
  color: #0078d7; /* azul destaque */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
}

input {
  text-transform: uppercase;
}