/* ---------- RESET BÁSICO ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, sans-serif;
}

body {
  background: #1f1f2e; /* fundo pastel escuro */
  color: #f0f0f0;
  min-height: 100vh;
}

/* ---------- LOGIN ---------- */
#login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100vh;
}

#login-section h2 {
  color: #f5e1d6;
  margin-bottom: 1rem;
}

#login-section input {
  width: 20rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  color: #333;
  font-size: 1rem;
}

#login-section button {
  padding: 0.5rem 3rem;
  background: #8ab4f8;
  border: none;
  border-radius: 10px;
  color: #1f1f2e;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.2rem;
}

#login-section button:hover {
  background: #7aa3e8;
}

/* ---------- PAINEL ADMIN ---------- */
.voltar {
  position: absolute;
  right: 10rem;
  top: 8rem;
  background-color: rgb(196, 74, 74);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  a {
    text-decoration: none;
    color: aliceblue;
    font-weight: 600;
  }
}
#admin-section {
  padding: 2rem;
  text-align: start;
}

#admin-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f5e1d6;
}

#abrirPrompt {
  padding: 0.7rem 1rem;
  margin-bottom: 2rem;
  background: #8ab4f8;
  border: none;
  border-radius: 10px;
  color: #1f1f2e;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#abrirPrompt:hover {
  background: #7aa3e8;
}

.card-produto {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 1px solid #dbdbdb;
  font-size: 1.2rem;
  button {
    font-size: 1.2rem;
    padding: 0.5rem;
    width: 100px;
    border-radius: 10px;
    background-color: #b8b8b8;
  }
}

/* -------------------prompt------------------- */
.prompt {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.prompt.hidden {
  display: none;
}
.prompt-box {
  font-size: 3.5vh;
  background: rgb(77, 77, 77);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}
#abrirPrompt {
  margin: 2vw;
}
.prompt-box input,
.prompt-box select {
  flex-direction: column;
  flex-wrap: nowrap;
  width: 15rem;
  margin: 0.7rem;
  padding: 5px;
}
.prompt-box label {
  font-size: 1rem;
}

.botoes {
  display: flex;
  justify-content: end;
  gap: 1rem;
  button {
    padding: 0.5rem 1rem;
  }
}
/* ------------------- RESPONSIVO PARA CELULAR ------------------- */
/* ------------------- RESPONSIVO PARA CELULAR ------------------- */
/* ------------------- RESPONSIVO PARA CELULAR ------------------- */
/* ------------------- RESPONSIVO PARA CELULAR ------------------- */
/* ------------------- RESPONSIVO PARA CELULAR ------------------- */
@media (max-width: 500px) {
  /* ---------- LOGIN ---------- */
  #login-section {
    margin-top: 4rem;
    gap: 1rem;
    height: 100%;
  }
  .voltar {
    margin-top: -4.7rem;
    margin-right: -9rem;
  }

  #admin-section {
    overflow-x: hidden;
    padding: 1rem;
    text-align: start;
  }

  #admin-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0rem;
    color: #f5e1d6;
  }

  #abrirPrompt {
    padding: 0.5rem 0.5rem;
    margin-bottom: 0rem;
    background: #8ab4f8;
    border: none;
    border-radius: 10px;
    color: #1f1f2e;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
  }

  #abrirPrompt:hover {
    background: #7aa3e8;
  }

  .card-produto {
    margin-left: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ffffff;
    font-size: 0.8rem;
    height: 260px;
    width: 120px;
    button {
      font-size: 0.8rem;
      padding: 0.3rem;
      border-radius: 10px;
      background-color: #b8b8b8;
    }
  }
  .produtos-container {
    display: flex;
    flex-wrap: wrap;
    width: 120%;
    margin-top: 1rem;
    margin-left: -1rem;
  }

  /* -------------------prompt------------------- */
  .prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }
  .prompt.hidden {
    display: none;
  }
  .prompt-box {
    font-size: 3.5vh;
    background: rgb(77, 77, 77);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
  }
  #abrirPrompt {
    margin: 2vw;
  }
  .prompt-box input,
  .prompt-box select {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 13rem;
    padding: 5px;
  }
  .prompt-box label {
    font-size: 1rem;
  }

  .botoes {
    display: flex;
    justify-content: end;
    gap: 1rem;
    button {
      padding: 0.5rem 1rem;
    }
  }
}
