/* ===== Estilo padrão para input[type=file] ===== */
input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid #aaffaa;
  background: #fff;
  color: #008;
  font-size: 1rem;
  font-family: inherit;
  margin-top: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
}
input[type="file"]:focus {
  outline: 2px solid #00F;
  border-color: #ffd23f;
  background: #f9f9f9;
}
/* =====================================================
   3RSoft Cripto Painel - estilo.css (versão 2025 atualizada)
   ===================================================== */
:root {
  --bg-dark: #009739;
  --bg-panel: #000080;
  --bg-card: #FFCC29;
  --text-light: #fff;
  --accent: #FFCC29;
  --primary: #000080;
  --secondary: #009739;
  --radius: 10px;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Fundo aleatório fixo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.75; /* esmaece a imagem */
  z-index: -1;
  pointer-events: none;
}

/* Overlay escuro adicional */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 14, 26, 0.85), rgba(18, 18, 43, 0.85));
  z-index: -1;
  pointer-events: none;
}

/* ---------- LINKS ---------- */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
a:hover { color: #fff; }

/* ---------- HEADER ---------- */
.site-header {
  background: linear-gradient(90deg, #009739 0%, #FFCC29 100%);
  color: #000080;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 2px solid #FFCC29;
  position: relative;
  z-index: 10000;
}
.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-site {
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #fff; /* texto branco */
  text-decoration: none; /* sem underline */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* sombra ao redor */
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo-site:hover {
  transform: scale(1.05); /* efeito de zoom */
  color: #FFCC29; /* amarelo Brasil no hover */
}


/* ---------- MAIN ---------- */
.site-container {
  width: 90%;
  max-width: 1300px;
  margin: 2rem auto;
}

/* ---------- BANNER ---------- */
.banner-home {
  background: linear-gradient(135deg, #008000 0%, #000080 100%);
  padding: 1.6rem;
  text-align: center;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.banner-home h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e9b10a;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-home p {
  font-size: 1.2rem;
  color: #e6e6e6;
}

/* ---------- FORMULÁRIOS ---------- */

.form-contato,
.form-conversor,
form:not(.filtros-container form) {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 100%;
  margin: 20px auto 0 !important;
  padding: 25px;
  border-radius: 12px;
  background: #000080;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  color: var(--text-light);
}

.form-contato h3,
form h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e9b10a;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #aaffaa;
  background: #fff;
  color: #008;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #aaffaa;
    background: #fff;
    color: #008;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

input[type="date"]:focus {
  outline: 2px solid #00F;
  border-color: 1px solid #aaffaa;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5);
}

input::placeholder,
textarea::placeholder {
  color: #005;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #00F;
  border-color: #008;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

textarea {
  resize: vertical;
  min-height: 100px;
  border-color: 1px solid #aaffaa;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

button[type="submit"],
.btn-primary {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  background: #0000dd;
  color: #eee;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button[type="submit"]:hover,
.btn-primary:hover {
  background: #0000ff;
  color:#fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

button[type="submit"]:active,
.btn-primary:active {
  background: #0000ff;
  color:#fff;
}

.inputbusca::placeholder {
    color: #005;
}

/* ---------- RODAPÉ ---------- */
/* ---------- FOOTER ---------- */
.site-footer {
  background: #000080;
  padding: 3rem 1rem 1rem;
  color: var(--text-light);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
  margin-top: 3rem;
}

.container-footer {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-banner {
  text-align: center;
  margin-bottom: 2rem;
}
.footer-banner h2 {
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.footer-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
}

.footer-col {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s;
}

.footer-col:hover {
  transform: translateY(-5px);
}

.footer-col h3 {
  color: #e9b10a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col p,
.footer-col a {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: none;
}

.footer-col a:hover {
  color: #e9b10a;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e9b10a;
  transform: scale(1.05);
  padding-left: 5px;
}

/* Formulário Newsletter */
.form-newsletter {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.form-newsletter input {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius);
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
}
.form-newsletter button {
  background: var(--accent);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s;
}
.form-newsletter button:hover {
  background: rgb(22, 67, 216);
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  position: relative;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: none; }

/* --- CORREÇÃO: Não sobrescrever tudo para branco em .form-box e filhos --- */
body {
  color: #ffffff !important;
}

/* Corrige .form-box e seus conteúdos para manter o visual original */
.form-box {
  background: #008000;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  padding: 32px 28px 24px 28px;
  width: 100%;
  max-width: 100%;
  margin: 40px auto 0 auto;
  position: relative;
}

.form-box h2 {
  color: #ffd23f;
  margin-bottom: 18px;
  font-size: 1.4rem;
  text-align: center;
}

.form-box .form-group {
  position: relative;
  margin-bottom: 18px;
}

.form-box input[type="email"],
.form-box input[type="password"],
.form-box input[type="text"] {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: 8px;
  border: 1px solid #aaffaa;
  background: #ffffff;
  color: #008;
  font-size: 1rem;
  transition: border 0.2s;
  box-sizing: border-box;
}

.form-box input[type="email"]:focus,
.form-box input[type="password"]:focus,
.form-box input[type="text"]:focus {
  border-color: #fff;
  outline: true;
}

.form-box .form-group i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #555555;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.form-box .btn,
.form-box button[type="submit"] {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  /* background: #e9b10a;
     color: #000; */
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  display: block;
}

.form-box a.btn {
    /* background: #23234a;
      color: #ffd23f;
      border: 1px solid #ffd23f; */
  padding: 8px 18px;
  margin: 0 4px;
  border-radius: 8px;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.form-box a.btn:hover {
    /* background: #3fa9ff;
      color: #fff; */
  text-decoration: none;
}

.form-box .alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 1rem;
  text-align: center;
}

.form-box .alert-error {
  background: #ffeded;
  color: #b30000;
  border: 1px solid #ffb3b3;
}

.form-box .alert-success {
  background: #eaffea;
  color: #1a7f1a;
  border: 1px solid #aaffaa;
}

/* Links dentro do .form-box */
.form-box a:not(.btn) {
  color: #ffd23f;
  text-decoration: underline;
  transition: color 0.2s;
}

.form-box a:not(.btn):hover {
  color: #3fa9ff;
}

.sobre {
    background: rgba(255,255,255,0.65);
    border-radius: 18px;
    padding: 20px;
    margin: 0px auto;
    color: #181818;
}

.sobre * {
    color: #181818 !important;
}

#editor{
  background-color: #ffffff !important;
  height: 400px !important;
  color: #000;
}

/* ==============================
   HEADER E MENU
============================== */

/* Desktop */
.site-header {
  height: 64px;
  display: flex;
  align-items: center; /* centraliza verticalmente */
  position: relative;
  z-index: 12000;
  padding: 0 16px;
}

.container-header {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%; /* ocupa 100% da altura do header */
}

/* Menu desktop */
.nav-site {
  display: flex !important;
  align-items: center;
  height: 100%;
}

.menu-principal {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-principal li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* Menu links desktop */
@media (min-width: 901px) {
  .menu-principal li a:hover {
    color: #ffd23f; /* amarelo */
  }
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffd23f;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 13000;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  padding: 0;
}

/* ==============================
   MOBILE
============================== */
@media (max-width: 900px) {

  /* exibir botão hamburguer */
  .menu-toggle { display: flex; }

  /* painel lateral */
  .nav-site {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 85vw;
    max-width: 340px;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 13000;
    background: linear-gradient(180deg, #23234a, #1b1b34);
    padding-top: 64px; /* igual altura do header */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* quando ativo */
  .nav-site.ativo {
    transform: translateX(0);
  }

  /* menu principal vertical */
  .menu-principal {
    flex-direction: column;
    gap: 0;
  }

  .menu-principal li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }

  .menu-principal li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    color: #e6e6e6;
    font-weight: 600;
  }

  /* submenus */
  .submenu {
    display: none;
    padding-left: 20px;
    background: transparent;
    border: none;
    margin: 0;
  }

  .dropdown.open > .submenu {
    display: block;
  }

  /* seta */
  .dropdown > a::after {
    content: "\f0da"; /* Font Awesome chevron */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 0.85rem;
    color: #ffd23f;
    transition: transform .22s;
  }

  .dropdown.open > a::after {
    transform: rotate(180deg);
  }

  body.menu-open { overflow: hidden; }
}

/* wrapper que controla largura e scroll */
.table-wrapper {
  max-width: 100%;
  width: 100%;
  overflow-x: auto;            /* scroll horizontal quando precisar */
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 0 0;
  border-radius: 10px;
}

/* Wrapper com scroll + bordas arredondadas */
.admin-tabela {
    max-width: 100%;
    margin: 20px auto 0;
    overflow-x: auto;
    border-radius: 10px;
    background: transparent; /* fundo é da tabela */
}

/* Tabela interna */
.admin-tabela table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;        /* fundo da tabela */
    border-radius: 10px;
    overflow: hidden;        /* mantém arredondamento inferior */
    min-width: 700px;
}

/* Cabeçalho */
.admin-tabela thead tr {
    background: #d0d0d0;  /* cinza mais escuro */
}

/* Header arredondado (2 cantos de cima) */
.admin-tabela thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}
.admin-tabela thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.admin-tabela th {
    padding: 6px 8px;
    font-weight: 600;
    color: #000;
    text-align: left;
    white-space: nowrap;
}

/* Linhas alternadas */
.admin-tabela tbody tr:nth-child(odd) {
    background: #f7f7f7;
}
.admin-tabela tbody tr:nth-child(even) {
    background: #eaeaea;
}

/* Células */
.admin-tabela td {
    padding: 6px 8px;
    border-bottom: 1px solid #ccc;
    color: #000;
}

/* Remove última borda e arredonda cantos de baixo */
.admin-tabela tbody tr:last-child td {
    border-bottom: none;
}

.admin-tabela tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}
.admin-tabela tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/* Coluna ações */
.admin-tabela td.acoes,
.admin-tabela th.acoes {
    white-space: nowrap;
}

.pagination {
    display: flex;
    flex-wrap: wrap;            /* permite quebrar linha */
    justify-content: center;    /* centraliza em todas as linhas */
    gap: 6px;                   /* espaçamento entre botões */
    margin: 24px 0;
}

/* Estilo padrão das páginas */
.pagination .page-link {
    padding: 7px 14px;
    border-radius: 6px;
    background: #000080;
    color: #ffd23f;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;        /* mantém cada botão inteiro */
}

/* Página ativa */
.pagination .page-link.active {
    background: #ffd23f;
    color: #000080;
}

