/* Dynamic Legend Styles */

.legend-container {
  min-height: 80px;
}

/* Dynamic Legend Component */
.dynamic-legend-container {
  /*background: rgba(0, 0, 0, 0.2);*/
  border-radius: 6px;
  padding: 0;
  padding-bottom: 5px;
  animation: fadeIn 0.3s ease;
}

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

.legend-title {
  font-size: 13px;
  font-weight: 600;
  color: black;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.legend-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
  animation: slideIn 0.3s ease forwards;
  animation-delay: calc(var(--index) * 50ms);
  opacity: 0;
}

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

.legend-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.legend-color-box {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.legend-label {
  font-size: 12px;
  color: black;
  line-height: 1.3;
}

/* Placeholder state */
.legend-placeholder {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.legend-message {
  font-size: 12px;
  font-style: italic;
  margin-top: 5px;
}

/* Empty state */
.legend-empty {
  text-align: center;
  padding: 15px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-style: italic;
}