body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

body.dark-mode {
  background-color: #1f2937;
}

.map-container {
  text-align: center;
  margin: 20px;
}

.map-container svg {
  width: 100%;
  height: 100%;
}

.legend {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: -30px;
}

.legend div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 5px;
  color: #1f2937;
  transition: color 0.3s ease;
}

body.dark-mode .legend div {
  color: #e5e7eb;
}

.legend-color {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: -5px;
}

/* Mobile responsive legend */
@media (max-width: 640px) {
  .legend {
    margin-top: 10px;
    gap: 8px;
    margin-bottom: -15px;
    padding: 0 8px;
  }

  .legend div {
    gap: 6px;
    margin-left: 0;
    font-size: 11px;
  }

  .legend-color {
    width: 14px;
    height: 14px;
    margin-right: -3px;
  }
}

/* Tablet responsive legend */
@media (min-width: 641px) and (max-width: 768px) {
  .legend {
    margin-top: 15px;
    gap: 12px;
    margin-bottom: -20px;
  }

  .legend div {
    gap: 10px;
    font-size: 12px;
  }

  .legend-color {
    width: 16px;
    height: 16px;
    margin-right: -4px;
  }
}

/* Custom classes for status badges with softer colors */
.legend .no-regulation {
    background-color: #C97C7C; /* Softer Red for No Regulation */
}

.legend .draft-regulation {
    background-color: #F2D99D; /* Softer Yellow for Draft Regulation Proposed */
}

.legend .in-progress {
    background-color: #A9C3F5; /* Softer Blue for In Progress */
}

.legend .regulation-enacted {
    background-color: #B1D8B7; /* Softer Green for Regulation Enacted */
}

.legend .state-level {
  background-color: #FFC0CB; /* Soft pink */
  border: 2px solid #D46A8E; /* Darker pink border for contrast */
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.country-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

.map-container {
    position: relative;
}