body {
  font-family: "Roboto", sans-serif;
  background: #030712;
  padding: 20px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-bar img {
  max-width: 200px;
}
#stations-container {
  color: white;
  text-align: center;
  font-size: 20px;
}

.loading {
  text-align: center;
  font-size: 20px;
  color: white;
}

h1 {
  margin-bottom: 30px;
  text-align: center;
  color: white;
}
/* Card da estação */
.station-card {
  background: #0f141e;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.station-title {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 25px;
  border-bottom: 2px solid #4a90e2;
  padding-bottom: 8px;
  color: #4a90e2;
}
/* Grupos dentro do card */
.device-group {
  margin-bottom: 20px;
  background: #1c2029;
  border-radius: 10px;
  padding: 15px;
  box-shadow: inset 0 0 10px rgba(74, 144, 226, 0.1);
}

.footer {
  display: flex;
  align-content: center;
  align-items: center;
}

.device-group h2 {
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid #a3c0f9;
  padding-bottom: 6px;
  user-select: none;
}
/* Grid dos dispositivos */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
/* Card do dispositivo */
.device {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  width: 100px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
}
.device:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.emoji {
  font-size: 36px;
  user-select: none;
}
.name {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.9em;
  color: #333;
  word-break: break-word;
  user-select: text;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: white;
  border-radius: 12px;
  padding: 25px 30px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  font-size: 1em;
  color: #222;
  user-select: text;
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.close-btn:hover {
  color: #000;
}
