/* upload.css - Moderno, responsivo e ajustado para mobile */

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #0a0f1f, #000);
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
  margin: 0;
}

h1 {
  margin-bottom: 25px;
  font-size: 24px;
  text-align: center;
  color: #0ff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}

/* Botões padrão (Enviar) */
button:not(.goBackBtn) {
  margin: 20px 0;
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  outline: none;
  background: #111;
  color: #0ff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #0ff, 0 0 18px rgba(0, 255, 255, 0.6);
  transition: all 0.25s ease;
  width: 10%; /* ocupa toda a largura disponível */
  max-width: 300px; /* mas não passa de 300px */
}

button:not(.goBackBtn):hover {
  background: #0ff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 0 20px #0ff, 0 0 35px rgba(0, 255, 255, 0.8);
}

/* Área de upload */
#dropArea {
  border: 2px dashed #0ff;
  border-radius: 12px;
  padding: 50px 20px 40px;
  text-align: center;
  color: #0ff;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(15, 25, 35, 0.8);
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.3), 0 0 25px rgba(0, 255, 255, 0.2);
  position: relative;
}

/* Ícone de pasta */
#dropArea::before {
  content: "📂";
  display: block;
  font-size: 38px;
  margin-bottom: 10px;
  animation: pulse 1.8s infinite;
}

/* Texto fixo */
#dropArea::after {
  content: "Clique ou arraste arquivos aqui";
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #aaa;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Animação da pasta */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

#dropArea.hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: #ff00ff;
  color: #ff00ff;
  transform: scale(1.03);
  box-shadow: inset 0 0 20px rgba(255, 0, 255, 0.4), 0 0 30px rgba(255, 0, 255, 0.3);
}

/* Resultado */
#result {
  margin-top: 25px;
  font-weight: bold;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.65);
  padding: 15px 18px;
  border-radius: 12px;
  max-width: 350px;
  width: 100%;
  text-align: center;
  color: #0ff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

#result a {
  color: #ff00ff;
  text-decoration: none;
  font-weight: bold;
}

#result a:hover {
  color: #0ff;
}

/* Botão de voltar fixo e independente */
.goBackBtn {
  top: 15px;
  left: 15px;
  background-color: #111 !important;
  color: #0ff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 8px 30px !important;
  font-size: 20px !important;
  cursor: pointer !important;
  box-shadow: 0 0 6px #0ff, 0 0 12px rgba(0, 255, 255, 0.6) !important;
  transition: all 0.25s ease !important;
  z-index: 1000;
}

.goBackBtn:hover {
  background-color: #0ff !important;
  color: #111 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 0 10px #0ff, 0 0 20px rgba(0, 255, 255, 0.8) !important;
}

.goBackBtn i {
  vertical-align: middle;
}

/* Responsividade */
@media (max-width: 480px) {
  body {
    padding: 20px 12px;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  #dropArea {
    padding: 35px 15px 25px;
  }

  #dropArea::before {
    font-size: 28px;
    margin-bottom: 6px;
  }

  #dropArea::after {
    font-size: 11px;
  }

  button:not(.goBackBtn) {
    font-size: 14px;
    padding: 10px 18px;
    width: 100%; /* garante que não saia da tela */
  }

  #result {
    font-size: 13px;
    padding: 10px 12px;
  }

  .goBackBtn {
    top: 10px;
    left: 10px;
    padding: 6px 8px !important;
    font-size: 14px !important;
    box-shadow: 0 0 5px #0ff, 0 0 10px rgba(0, 255, 255, 0.6) !important;
  }
}
