body {
  font-family: Arial;
  margin: 0;
}

/* ---------- LAYOUT PRINCIPAL ---------- */
#app {
  display: flex !important;
  flex-direction: row !important;
  /* height: 100vh !important; */
  border: 3px solid gray;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  min-height: 100vh;         
  border-right: 2px solid #ddd;
  padding: 20px;
  background-color: #f8f8f8;
}
.sidebar h2 {
  text-align: center;
  margin-bottom: 20px;
}

#btnNuevo {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  cursor: pointer;
}
/* CONTENIDO */
.content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;    
}

/* ---------- FORM ---------- */
.crearPresupuesto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.crearPresupuesto input {
  width: 300px;
  padding: 10px;
}

.crearPresupuesto button {
  width: 200px;
  padding: 8px;
}

/* ---------- TABLA ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
}

th {
  background-color: #f2f2f2;
  padding: 12px;
  border: 1px solid #ccc;
}

td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: center;
}

td input {
  width: 90%;
  padding: 6px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ccc;
}

td button {
  padding: 5px 10px;
  border-color: rgb(128, 124, 124);
  border-radius: 6px;
  border-width: 1px;
}

#agregarItem {
  align-self: center;
  margin-top: 30px;
  border-radius: 6px;
  border: 1px solid rgb(128, 124, 124);
}

/* ---------- LISTA ---------- */
.lista {
  list-style: none;
  padding: 0;
}

.lista li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
  transition: 0.2s;
  cursor: pointer;
}

.lista li:hover {
  background-color: #e0f2fe;
}

.lista li input {
  width: 100%;
  padding: 5px;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
}

.lista li button {
  background: #ccc;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border: 1px solid rgb(128, 124, 124);
  border-radius: 6px;
}

.lista li button:hover {
  transform: scale(1.2);
}

.lista li.activo {
  background-color: #dbeafe;   /* azul suave */
  border: 1px solid #3b82f6;
}


#btnLogout {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: #ef4444;
  color: white;
  border: none;
  cursor: pointer;
}

#btnLogout:hover {
  background: #dc2626;
}

/* ---------- PANTALLA INICIO ---------- */
.pantallaInicio {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.pantallaInicio h1 {
  font-size: 2.5em;
}

.pantallaInicio input {
  width: 250px;
  padding: 10px;
}

.pantallaInicio button {
  padding: 10px 20px;
}

.centerText {
  text-align: center;
  margin-top: 0; 
}