body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background-color: #004080;
  color: white;
  padding: 1rem;
  text-align: center;
}

main {
  padding: 1rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

button {
  padding: 0.75rem 1.25rem;
  background-color: #0074d9;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

input, select {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

#install-btn {
  background-color: #2ecc40;
}

.nap-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.nap-box span {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.nap-box button {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  margin-top: 0.3rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nap-box button:hover {
  background-color: #0056b3;
}

.nap-box ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.nap-box li {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

ul.clientes {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

ul.clientes.visible {
  max-height: 500px;
}

install-block {
  text-align: center;
  padding: 1rem;
}

.error-message {
  background-color: #ffdddd;
  border-left: 6px solid #f44336;
  color: #a94442;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: bold;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 600px) {
  h1, h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  main {
    padding: 0.5rem;
  }

  button {
    font-size: 1rem;
    width: 100%;
  }

  .nap-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .nap-box ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    width: 100%;
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #004080;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.bottom-nav button {
  background: none;
  border: none;
  color: white;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.bottom-nav svg {
  margin-bottom: 0.2rem;
  transition: fill 0.3s ease;
}

.bottom-nav button:hover svg {
  fill: #ffcc00;
}

.bottom-nav button.active {
  color: #ffcc00;
}

.bottom-nav button.active svg {
  fill: #ffcc00;
}
