@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Header */
.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
}

.listaOS__titulo {
  font-size: 24px;
  color: #003bfc;
  font-weight: 600;
}

/* Filtro */
.filtro {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}

.filtro__input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

/* Botão filtro */
.btnFiltro {
  background-color: #003bfc;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btnFiltro:hover {
  background-color: #002bb8;
}

/* Lista de OS */
.ordem__servico__lista {
  margin: 1rem auto;
  width: 90%;
}

.listaOS__ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow-y: auto;
  max-height: 250px;
}

.listaOS__li {
  padding: 0.75rem 1rem;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.listaOS__li:hover {
  background-color: #cfdffe;
}

/* Formulário de edição */
.formulario__edicao {
  background-color: #f1f4fb;
  padding: 1rem;
  margin: 1rem auto;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.formulario__edicao__lbl {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.formulario__edicao__input {
  width: 250px;
  padding: 0.5rem;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
}

/* Botão salvar */
.btnSalvar {
  margin-top: 10px;
  background-color: #003bfc;
  color: white;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btnSalvar:hover {
  background-color: #002bb8;
}

/* Alertas */
.alertaEdicao,
.alertaEdicaoErro {
  position: relative;
  background-color: #fff8dc;
  border: 1px solid #aaa;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1rem auto;
  font-weight: 500;
}

.alertaEdicao__fechar {
  margin-top: 1rem;
  background-color: #e72b2b;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.alertaEdicao__fechar:hover {
  background-color: #c61d1d;
}

/* Responsividade */
@media (max-width: 768px) {
  .header,
  .filtro,
  .formulario__edicao {
    flex-direction: column;
    align-items: flex-start;
  }

  .filtro {
    width: 100%;
  }

  .formulario__edicao__input {
    width: 100%;
  }

  .listaOS__ul {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .listaOS__li {
    font-size: 14px;
  }

  .formulario__edicao__input {
    font-size: 14px;
  }

  .btnSalvar,
  .btnFiltro {
    width: 100%;
    padding: 0.75rem;
  }
}
