/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonte e corpo */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
  background-image: url(../img/bg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 100vh;
}

.content_login {

    width: 30%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 35px 40px;
    border-radius: 15px;
    border: solid 0.5px rgba(255, 255, 255, 0.2);
}
.container_login {
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn_login {
      background-color: #043E81;
    width: 100%;
    margin-top: 15px;
    border-radius: 5px;
}

/* Sidebar (Menu fixo à esquerda) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  background-color: #007BFF;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 15px;
  position: relative; /* para posicionar dropdowns */
}

.sidebar a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.sidebar a:hover {
  background-color: #0056b3;
}

/* Garante que o item do menu pai esteja posicionado relativamente */
.sidebar ul li.submenu {
  position: relative;
}

/* Estilo do submenu: ele ficará oculto por padrão, aparecerá abaixo do pai e terá 100% da largura do pai */
.sidebar ul li.submenu ul {
  display: none;
  position: absolute;
  top: 100%;       /* Aparece logo abaixo do item pai */
  left: 0;         /* Alinha a esquerda com o pai */
  width: 100%;     /* Mesma largura do item pai */
  background-color: #0056b3; /* Cor de fundo para diferenciar (pode ajustar) */
  padding: 0;
  margin: 0;
  list-style: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* Exibe o submenu quando o mouse passar sobre o item pai */
.sidebar ul li.submenu:hover ul {
  display: block;
}

/* Estilo para os links dos itens do submenu */
.sidebar ul li.submenu ul li a {
  padding: 8px 12px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
}

/* Altera o fundo do submenu quando o item for hover */
.sidebar ul li.submenu ul li a:hover {
  background-color: #003f7f;
}

/* Conteúdo principal ajustado */
.content {
  margin-left: 250px; /* Espaço para a sidebar + um gap */
  padding: 20px;
}

/* Outras regras já existentes */
h1, h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

p {
  margin-bottom: 16px;
}

.message {
  font-size: 0.9em;
  color: #555;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin-bottom: 10px;
}

.btn:hover {
  background-color: #0056b3;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  /* margin-bottom: 16px; */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

label {
  margin-bottom: 8px;
  display: block;
  font-weight: bold;
}

.error {
  color: #e74c3c;
  margin-bottom: 16px;
}

.success {
  color: #27ae60;
  margin-bottom: 16px;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
 /* Container da tabela com sombra e bordas arredondadas */
 .table-container {
  /* background-color: #fff; */
  border-radius: 8px;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
  overflow-x: auto;
  margin-top: 20px 0;
}
.table-container table td input[type="text"] {
  width: 100%;
  min-width: 200px; /* Ajuste o valor conforme necessário */
}
.input-nome {
  width: 100%;
  min-width: 250px;
}

/* Estilos para a tabela */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: left;
}

th {
  background-color: #007BFF;
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #0056b3;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

/* Ajuste dos botões dentro da tabela */
td a.btn {
  padding: 6px 10px;
  font-size: 0.9em;
}

/* Estilo para o container do resumo */
#resumo-container {
  background: #fff;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

/* Títulos e subtítulos */
#resumo-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

#resumo-container h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #34495e;
}

/* Parágrafos e blocos de informação */
#resumo-container p {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

/* Separador entre seções */
#resumo-container hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #eee;
}

/* Seção do frete */
.frete-section {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  text-align: center;
}

.frete-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 16px;
}

.frete-section input[type="number"] {
  width: 150px;
  padding: 8px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

/* Botões */
button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Modal - ajustes para centralizar e espaçar o conteúdo */
#modalResultado {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: none;
  opacity: 0;
}

#resultadoContainer p {
  margin-bottom: 12px;
}


/*btn excluir comodo dentro de editar orçamento*/
.btn-excluir-comodo {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 6px 10px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn-excluir-comodo:hover {
  background-color: #e60000;
}

.status-toggle {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* CSS provisório */
#tela-inicial input {
    background: #fff;
    padding: 8px 10px;
    color: #000;
}
#comodo-container input {
        background: #fff;
    padding: 8px 10px;
    color: #000;
}

.produtoSelecionado, .tamanhoSelecionado, .produtoMolduraSelecionado, .produtoMetalonSelecionado {
    background: #fff;
    padding: 8px 10px;
    color: #000;
}
