

/* Geral dos Cards */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 0.5rem;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Cabeçalho do Card */
.card-header {
  background-color: #007bff;
  color: #fff;
  padding: 0.4rem;
  text-align: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 0.85rem;
}
.header-top {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  height: 1.2em !important;
  line-height: 1.2em !important;
}

/* Corpo do Card */
.card-body {
  padding: 0.4rem;
  text-align: center;
}

/* Fixed Card: Altura fixa para os sensores – 260px nos desktops, 230px no mobile */
.fixed-card {
  height: 250px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 576px) {
  .fixed-card {
    height: 250px !important;
  }
}
.fixed-card .card-body {
  flex-grow: 1;
  overflow: hidden;
}

/* Informações complementares */
.sensor-details {
  font-size: 0.7rem;
  padding: 0.1rem;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 0.3rem;
}
.sensor-mac {
  text-align: left;
}
.sensor-battery {
  text-align: right;
}
.sensor-battery i {
  font-size: 1.2rem;
}

/* Parâmetros */
.param-value {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.param-value i {
  margin-right: 0.3rem;
}
.limit-section {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  color: #555;
}

/* Rodapé do Card */
.card-footer {
  padding: 0.4rem;
  text-align: center;
  font-size: 0.75rem;
}
.badge {
  font-size: 0.75rem;
  padding: 0.3em 0.5em;
}

/* Status */
.status-ok {
  color: #007bff;
}
.status-warning {
  color: #ffc107;
}
.status-critical {
  color: #dc3545;
}

/* Ícones de bateria */
.battery-high {
  color: #28a745;
}
.battery-medium {
  color: #ffc107;
}
.battery-low {
  color: #dc3545;
}

/* Espaçamento dos sensor items */
.sensor-item .card {
  margin-bottom: 0.5rem;
}

/* Accordion Customizado */
.accordion-button {
  font-size: 0.9rem;
}
