/* Reset básico */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #0f172a; /* fundo escuro */
  color: #f1f5f9;
}

/* Dashboard geral */
.dashboard {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  box-shadow: 2px 0 12px rgba(0,0,0,0.5);
}

.sidebar-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #38bdf8;
}

/* Conteúdo principal */
.content {
  flex: 1;
  padding: 30px 20px;
  margin-left: 250px;
}

/* Container central */
form {
  max-width: 500px;
  margin: 30px auto;
  padding: 25px 20px;
  background: #1e293b; /* fundo cartão */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

/* Cards */
.card {
  background: #1e293b; /* fundo escuro */
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 25px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.card-header {
  background: #0f172a;
  border-bottom: 1px solid #334155;
  padding: 15px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card-header h4 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #38bdf8; /* azul neon */
  margin-bottom: 0;
  text-align: center;
}

/* Inputs */
input.form-control {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 1rem;
  padding: 12px;
  margin-bottom: 15px;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

input.form-control:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 12px rgba(56,189,248,0.5);
}

/* Botões gerais */
button.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Botões Próximo / Requests com gradiente animado */
button.btn-primary {
  background: linear-gradient(45deg, #3b82f6, #06b6d4, #3b82f6);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
}

button.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(6,182,212,0.6);
}

/* Botão Secundário (Voltar / etc) */
button.btn-secondary {
  background: #64748b;
}

button.btn-secondary:hover {
  background: #475569;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(71,85,105,0.5);
}

/* Animação gradiente */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Botão Voltar fixo */
button#goBackBtn {
  display: block;
  margin: 20px auto 0 auto;
  background: #ef4444; /* vermelho chamativo */
  border-radius: 12px;
  padding: 12px 25px;
  font-weight: bold;
  color: white;
  transition: all 0.3s ease;
}

button#goBackBtn:hover {
  background: #b91c1c;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(185,28,28,0.6);
}

/* Respostas de formulário */
#addKeyResponse,
#addRequestsResponse,
#removeKeyResponse {
  font-weight: 500;
  color: #38bdf8;
  min-height: 20px;
  text-align: center;
}

/* Rodapé/Títulos secundários */
h2 {
  margin-top: 40px;
  padding: 15px;
  border-radius: 12px;
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  font-size: 1rem;
}

/* Responsividade */
@media (max-width: 1024px) {
  .content {
    padding: 20px 15px;
  }
}

@media (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    box-shadow: none;
    padding: 15px;
  }

  .content {
    margin-left: 0;
    padding: 20px 10px;
  }

  form, .card {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px 15px;
    background: #1e293b !important; /* garante fundo escuro */
  }

  .card-header h4 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 0.9rem;
    padding: 10px;
  }

  button.btn {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .sidebar-header h2 {
    font-size: 1.2rem;
  }

  .card-header h4 {
    font-size: 1rem;
  }

  h2 {
    font-size: 0.85rem;
  }

  input.form-control {
    font-size: 0.9rem;
    padding: 10px;
  }

  button.btn {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  form, .card {
    padding: 15px 12px;
    background: #1e293b !important; /* reforça fundo escuro no mobile */
  }
}
