.content-container {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.chart-content {
  margin-bottom: 20px;
}

.card-array-tab > .nav-tabs-custom {
  box-shadow: none !important;
}

.report-title {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 8px 8px 0 0;
}

.report-heading {
  font-size: 20px;
  font-weight: bold;
  color: #1f1e1e;
}

.icon-container {
  font-size: 60px;
  color: #343a40;
}

.icon {
  font-size: 60px;
  color: #333333;
}

.item-title {
  font-size: 12px;
  color: #343a40;
  margin: 0;
}

.item-value {
  font-size: 14px;
  color: #a3a3a3;
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.bold {
  color: #242323;
}

.custom-tooltip {
  position: relative;
  cursor: pointer;
  font-size: 10px;
  margin-left: auto;
  margin-right: 5px;
  z-index: 999;
  white-space: nowrap;
  overflow: visible !important;
}

.custom-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 8px;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Show tooltip */
.custom-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.item-unit {
  font-size: 12px;
  color: #969696;
  margin: 0;
  margin-left: 2px;
}

.vr-custom {
  width: 1px;
  height: 90px;
  background-color: #dddddd;
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 1px;
}

.text-container {
  margin-left: 20px;
  margin-top: 16%;
}

.tooltip-icon {
  font-size: 14px;
  color: #888;
  cursor: pointer;
}

.data-card {
  margin: 10px 0;
  transition: transform 0.2s ease;
}
.data-card:hover {
  transform: scale(1.1);
  z-index: 1;
}

.color-bar-container {
  width: 100%;
  height: 6px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}

.color-bar {
  height: 100%;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.legend-container {
  margin-top: 15px;
}

.legend-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
}

.legend-color-bar {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  margin-right: 8px;
}

.legend-label {
  font-size: 14px;
  color: #333;
}

/* Scope everything to this shortcode */
.airq-report .card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.airq-report .icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
}
.airq-report .icon-container i {
  /* big on desktop, shrinks on phones */
  font-size: clamp(28px, 6vw, 60px);
}

/* Remove rigid spacing that was breaking on phones */
.airq-report .text-container {
  margin: 0;
}

/* Typography */
.airq-report .item-title {
  font-size: 12px;
  color: #343a40;
  margin: 0 0 2px 0;
}
.airq-report .item-value {
  font-size: 14px;
  color: #242323;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.airq-report .item-unit {
  font-size: 12px;
  color: #969696;
}

/* Tooltip stays the same but scoped */
.airq-report .custom-tooltip {
  position: relative;
  cursor: pointer;
  font-size: 10px;
  margin-left: auto;
  z-index: 999;
  white-space: nowrap;
}
.airq-report .custom-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 8px;
  background: #333;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  z-index: 9999;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}
.airq-report .custom-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Hover zoom only on non-touch (md+) to avoid jank */
.airq-report .data-card {
  transition: transform 0.2s ease;
}

.airq-report .legend-list {
  display: flex !important; /* back to flex */
  flex-wrap: wrap; /* allow wrapping when needed */
  gap: 12px 24px; /* nice spacing between items */
  padding: 0;
  margin: 0;
  list-style: none;
}

.airq-report .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.airq-report .legend-label {
  white-space: nowrap; /* prevent "Muito mau" from breaking */
}

@media (min-width: 768px) {
  .airq-report .data-card:hover {
    transform: scale(1.05);
    z-index: 1;
  }
}

/* Tighter phone tweaks */
@media (max-width: 575.98px) {
  .airq-report .sensor-info-container {
    font-size: 12px;
  }
  .airq-report .item-value {
    font-size: 13px;
  }
  .airq-report .custom-tooltip::after {
    font-size: 11px;
    max-width: 220px;
  }
  .airq-report .legend-item {
    flex: 0 0 calc(50% - 24px); /* two columns */
    justify-content: flex-start;
  }
}
