/* ===== Vortex Tradutor — tema Vortex HUB ===== */

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

html, body {
  min-height: 100vh;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a1a;
  color: #e0e0ff;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Fundo espacial ---------- */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.nebula-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  top: -150px;
  left: -150px;
}

.nebula-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  bottom: -100px;
  right: -100px;
}

.nebula-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08), transparent 70%);
  top: 50%;
  left: 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.oculto { display: none !important; }

/* ---------- Header fixo (modo web, padrão do HUB) ---------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  padding: 12px 25px;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: #8888aa;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-link:hover { color: #7c3aed; }

.nav-logo-btn {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.1);
}

.nav-logo-btn:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.35));
  border-color: #7c3aed;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 16px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid #7c3aed;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-small:hover { background: #7c3aed; }

@keyframes pulse-entrar {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 87, 51, 0.4); }
  50% { box-shadow: 0 0 20px rgba(255, 87, 51, 0.6), 0 0 30px rgba(255, 87, 51, 0.2); }
}

.nav-btn-entrar {
  background: #ff5733;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  animation: pulse-entrar 2s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn-entrar:hover {
  background: #ff451a;
  color: #fff;
  transform: translateY(-1px);
}

.nav-user {
  color: #ccccee;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.nav-btn {
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  font-family: inherit;
}

.nav-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171 !important;
}

.nav-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5 !important;
}

/* ---------- Hero (modo web) ---------- */
.hero {
  margin-top: 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(135deg, #7c3aed, #3b82f6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  animation: float 4s ease-in-out infinite;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: #8888aa;
  margin-bottom: 2.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ---------- Rodapé (modo web) ---------- */
.footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #444466;
  letter-spacing: 2px;
  text-align: center;
  padding-bottom: 1.5rem;
}

.btn-topo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-topo.principal {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  border: none;
}

.btn-topo.principal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.btn-topo.secundario {
  background: rgba(255, 255, 255, 0.06);
  color: #e0e0ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-topo.secundario:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.5);
}

.btn-topo.fantasma {
  background: transparent;
  color: rgba(224, 224, 255, 0.6);
  border: none;
}

.btn-topo.fantasma:hover { color: #e0e0ff; }

.btn-topo.icone {
  padding: 8px 12px;
  font-size: 1.05rem;
  line-height: 1;
}

/* ---------- Cabeçalho (desktop) ---------- */
header { margin-bottom: 20px; }

.cabecalho-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #3b82f6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gear {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0e0ff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-gear:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.5);
}

.sub {
  color: rgba(224, 224, 255, 0.55);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ---------- Layout ---------- */
.corpo {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.coluna-principal {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Painéis de vidro ---------- */
.caixa,
.barras,
.sidebar-fila,
.modal {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.caixa { padding: 20px; }

.caixa h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #c4b5fd;
}

/* ---------- Seletor de idiomas ---------- */
.barras {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.barra-idioma {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  max-width: 260px;
  min-width: 150px;
}

.barra-idioma label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(224, 224, 255, 0.5);
}

select,
input[type="text"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e0e0ff;
  padding: 9px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

select:focus,
input[type="text"]:focus {
  border-color: #7c3aed;
}

select option {
  background: #12122a;
  color: #e0e0ff;
}

#trocar {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: #e0e0ff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}

#trocar:hover {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  transform: rotate(180deg);
}

/* ---------- Área de texto ---------- */
.painel-texto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

textarea {
  width: 100%;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f0f0ff;
  padding: 14px;
  font-size: 0.98rem;
  line-height: 1.55;
  resize: vertical;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

textarea:focus { border-color: #7c3aed; }

textarea[readonly] {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.15);
}

.rodape-caixa {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

#contador {
  font-size: 0.82rem;
  color: rgba(224, 224, 255, 0.45);
  margin-right: auto;
}

button.principal,
button.secundario {
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

button.principal {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border: none;
  color: #fff;
}

button.principal:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

button.principal:disabled {
  opacity: 0.55;
  cursor: wait;
}

button.secundario {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0e0ff;
}

button.secundario:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.5);
}

button.pequeno {
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* ---------- Status ---------- */
.status {
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.status.ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.status.erro {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.status.aviso {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

/* ---------- Arquivos / upload ---------- */
.arquivos .dica {
  font-size: 0.88rem;
  color: rgba(224, 224, 255, 0.55);
  margin-bottom: 12px;
}

.zona-upload-wrap { position: relative; }

.zona-upload {
  border: 2px dashed rgba(124, 58, 237, 0.4);
  border-radius: 16px;
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(124, 58, 237, 0.04);
}

.zona-upload:hover,
.zona-upload.sobre {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.zona-upload p {
  color: rgba(224, 224, 255, 0.65);
  font-size: 0.95rem;
}

.nome-arquivo {
  margin-top: 8px !important;
  color: #c4b5fd !important;
  word-break: break-all;
}

.faixa-bloqueio {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(10, 10, 26, 0.72);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(124, 58, 237, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.cadeado { font-size: 1.6rem; }

.faixa-titulo {
  font-size: 1.08rem;
  font-weight: 700;
  color: #e0e0ff;
}

.faixa-bloqueio .faixa-texto {
  font-size: 0.85rem;
  color: rgba(224, 224, 255, 0.55);
  max-width: 380px;
}

.faixa-bloqueio .btn-topo { margin-top: 6px; }

/* ---------- Progresso ---------- */
.progresso {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.progresso-cabecalho {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(224, 224, 255, 0.75);
  margin-bottom: 8px;
}

.progresso-trilho,
.fila-trilho {
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.progresso-barra,
.fila-barra {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #3b82f6, #ec4899);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.progresso-barra.erro,
.fila-barra.erro { background: #ef4444; }

/* ---------- Fila lateral ---------- */
.sidebar-fila {
  width: 300px;
  flex-shrink: 0;
  padding: 16px;
}

.fila-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fila-cabecalho h3 {
  font-size: 0.98rem;
  color: #c4b5fd;
}

.fila-contador {
  font-size: 0.8rem;
  color: rgba(224, 224, 255, 0.5);
}

.fila-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fila-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.fila-item.concluido { border-color: rgba(34, 197, 94, 0.4); }
.fila-item.com-erro { border-color: rgba(239, 68, 68, 0.4); }

.fila-item-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fila-nome {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fila-remover {
  background: transparent;
  border: none;
  color: rgba(224, 224, 255, 0.45);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.fila-remover:hover:not(:disabled) {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.fila-remover:disabled { opacity: 0.3; cursor: default; }

.fila-barra { transition: width 0.4s ease; }

.fila-rotulo {
  display: block;
  font-size: 0.78rem;
  color: rgba(224, 224, 255, 0.6);
  margin-top: 7px;
}

/* ---------- Modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.7);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  background: #101024;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal h2 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.campo { margin-bottom: 16px; }

.campo label {
  display: block;
  font-size: 0.85rem;
  color: rgba(224, 224, 255, 0.65);
  margin-bottom: 6px;
}

.campo select,
.campo input[type="text"] { width: 100%; }

.linha-caminho {
  display: flex;
  gap: 8px;
}

.linha-caminho input[type="text"] { flex: 1; }

.campo.par {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.campo.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: rgba(224, 224, 255, 0.75);
  cursor: pointer;
}

.campo.checkbox input { accent-color: #7c3aed; }

.dica-modal {
  font-size: 0.78rem;
  color: rgba(224, 224, 255, 0.4);
  margin-bottom: 14px;
  word-break: break-all;
}

.rodape-modal {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .painel-texto { grid-template-columns: 1fr; }
  .corpo { flex-direction: column; }
  .sidebar-fila { width: 100%; }
  .hero { margin-top: 5rem; }
  .hero h1 { font-size: 2.4rem; }
  .top-nav { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
}
