/* Estilos gerais */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e2e6e6;
  display: flex;
  height: 100vh;
  color: #333;
}

/* Estilo do Menu Lateral */
.menu-lateral {
  width: 250px;
  height: 100vh;
  background-color: #1e3a8a;
  color: #e2e6e6;
  padding-top: 20px;
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 4px 0 6px rgba(0, 0, 0, 0.1);
}

/* Estilo do título "Menu" no menu lateral */
.menu-lateral h2 {
  color: #e2e6e6; /* Substitua por qualquer cor desejada */
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

.menu-lateral button {
  width: 80%;
  padding: 15px;
  background-color: #e61717;
  border: none;
  color: #fff;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 15px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: start;
  transition: background-color 0.3s, transform 0.2s;
}

.menu-lateral button:hover {
  background-color: #dc2626;
  transform: scale(1.02);
}

.menu-lateral button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Área Principal */
.area-principal {
  margin-left: 250px;
  padding: 20px;
  width: calc(100% - 250px);
  height: 100vh;
  overflow-y: auto;
  background-color: #e2e6e6;
  box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.05);
}

h2 {
  text-align: center; /* Centraliza o texto */
  font-size: 1.8em; /* Ajuste do tamanho da fonte */
  color: #333; /* Cor do texto */
}

/* Topo da Área Principal */
.topo-principal {
  background-color: #1e3a8a;
  color: #fff;
  padding: 12px 20px; /* REDUZIDO: menos altura e largura */
  border-radius: 8px; /* um pouco menos arredondado */
  margin-bottom: 20px; /* menos espaço abaixo */
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  text-align: center;
  font-size: 1.5em; /* fonte um pouco menor */
}

/* Formulários */
form {
  max-width: 1300px; /* Aumentado o tamanho do formulário */
  margin: 0 auto; /* Centraliza na tela */
  padding: 20px; /* Espaço interno */
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
}

form input, form button {
  width: 100%;
  padding: 12px; /* Aumentei um pouco o padding para melhorar a experiência */
  margin-bottom: 15px; /* Deixei o margin-bottom um pouco maior */
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em; /* Mantido o tamanho da fonte original */
  box-sizing: border-box; /* Evita overflow */
}

form input:focus, form button:focus {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

form button {
  background-color: #ef4444;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

form button:hover {
  background-color: #dc2626;
  transform: scale(1.02);
}

/* Tabela de Pedidos */
.tabela-pedidos {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.tabela-pedidos th, .tabela-pedidos td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 1em;
}

.tabela-pedidos th {
  background-color: #f2f2f2;
  font-weight: 600;
  color: #555;
}

.tabela-pedidos tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tabela-pedidos tr:hover {
  background-color: #f1f1f1;
}

/* Botões Gerais */
button, button[type="button"] {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover, button[type="button"]:hover {
  background-color: #45a049;
  transform: scale(1.02);
}

button:focus, button[type="button"]:focus {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Botão de ação especial */
.action-button {
  background-color: #ef4444;
  color: #fff;
  font-size: 0.85em;
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-button:hover {
  background-color: #dc2626;
}

/* Resumo do Pedido */
#resumoPedido {
  padding: 15px;
  border: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1em;
}

#resumoPedido h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

#detalhesPedido {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Duas colunas de tamanho igual */
  gap: 20px; /* Espaço entre as colunas */
}

.grid-item {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

#detalhesPedido ul {
  list-style-type: none;
  padding: 0;
  font-size: 1em;
  color: #555;
}

#detalhesPedido li {
  margin-bottom: 8px;
}

#detalhesPedido li span {
  font-weight: bold;
  color: #333;
}

h4 {
  font-size: 1.2em;
  margin-top: 15px;
  color: #333;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}


/* Estilo de Finalizar Pedido */
#finalizarPedidoBtn {
  padding: 12px 25px;
  background-color: #28a745;
  color: white;
  font-size: 1.2em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#finalizarPedidoBtn:hover {
  background-color: #218838;
  transform: scale(1.02);
}

#finalizarPedidoBtn:focus {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  .area-principal {
    margin-left: 0;
    padding: 15px;
  }

  .menu-lateral {
    width: 100%;
    height: auto;
    padding-bottom: 20px;
    position: relative;
  }

  .menu-lateral h2 {
    font-size: 20px;
  }

  .menu-lateral button {
    width: 100%;
  }
}


/* Container Centralizado para Formulários */
.formulario-container {
  max-width: 500px;
  margin: 0 auto; /* Centraliza horizontalmente */
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Agrupamento por seções no formulário */
form fieldset {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

form legend {
  font-weight: bold;
  padding: 0 10px;
  color: #1e3a8a;
  font-size: 1.1em;
}

/*----------------TELA ORÇAMENTO-------------------*/

/* Lista visual dos produtos adicionados */
/* Estilo da lista de produtos */
.lista-produtos {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow-y: auto;
  max-height: 300px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Estilo da tabela de produtos */
.table-produtos {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.table-produtos th, .table-produtos td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #ddd;
}

.table-produtos th {
  background-color: #007BFF;
  color: white;
  font-weight: 600;
}

.table-produtos td {
  background-color: #f9f9f9;
  color: #333;
}

.table-produtos tr:hover td {
  background-color: #eef4ff;
}

.table-produtos td:last-child {
  text-align: center;
}

/* Estilos para as colunas do cliente e endereço */
.grid-cliente-endereco {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.grid-cliente-endereco .coluna {
  flex: 1;
  min-width: 300px;
}

.coluna input,
.coluna select {
  margin-bottom: 8px;
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* Estilos para a adição de produto e lista de produtos */
.grid-produto-lista {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.grid-produto-lista .coluna {
  flex: 1;
  min-width: 300px;
}

.grid-produto-lista .coluna select,
.grid-produto-lista .coluna input {
  margin-bottom: 8px;
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
}

.grid-produto-lista .coluna button {
  padding: 8px 12px;
  background-color: #d61515;
  color: white;
  border: none;
  cursor: pointer;
}

.grid-produto-lista .coluna button:hover {
  background-color: #b31313;
}

/* Estilos para os campos de finalização do orçamento */
textarea {
  width: 100%;
  height: 100px;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

select {
  padding: 8px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

