/* Common styles */
.legend-bullet {
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin-right: 10px;
}

/* Animation keyframes optimization */
@keyframes flashing {
  0%, 100% {
    stroke-opacity: 1;
    fill-opacity: 1;
  }

  20%, 80% {
    stroke-opacity: 0.5;
    fill-opacity: 0.5;
  }
}

@keyframes click-once {
  0%, 20% {
    stroke-width: 0;
  }

  60% {
    stroke-width: 2;
  }
}

/* Color classes */
.color0 {
  background-color: var(--tekhelet);
}

.color1 {
  background-color: var(--medium-slate-blue);
}

.color2 {
  background-color: var(--selective-yellow);
}

.color3 {
  background-color: var(--tangerine);
}

.color4 {
  background-color: var(--persimmon);
}

/* Components */
.center-title {
  font-size: 16px;
  fill: black;
}

#donutChartContainer circle:hover, path:hover {
  cursor: pointer;
}

.circle-flash {
  animation: flashing 0.5s linear infinite;
  transform-origin: center;
}

.circle-leaf-click {
  animation: click-once 0.5s linear backwards;
}


/* Legend */
.legend, .legend-title {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;

}

#legend {
  top: -20px;
  position: relative;
}

.legend:hover {
  background-color: #f5f2f2;
  cursor: pointer;
}

.legend.leaf:hover {
  cursor: default;
}

.legend-title {
  padding: 10px;
  margin: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Breadcrumb */
.breadcrumb {
  text-align: center;
  display: inline-table;
  overflow: hidden;
  width: 100%;
  height: 2.5em;
  top: -20px;
  position: relative;
}

.breadcrumb div {
  text-decoration: none;
  outline: none;
  display: block;
  display: inline-flex;
  float: left;
  font-size: 12px;
  line-height: 36px;
  position: relative;
}

.breadcrumb div:after {
  content: '/';
  padding: 0 .5rem;
  display: inline-block;
}

.breadcrumb div .legend-bullet {
  margin: 12px 5px 0 0;
}

.breadcrumb div:hover {
  cursor: pointer;
}

.breadcrumb .active {
  font-weight: 600;
  cursor: default;
}

.breadcrumb div:last-child:after {
  content: none;
}

.breadcrumb-item{
  cursor: pointer;
}

/* Filter container */
.filter-container {
  position: relative;
  width: 200px;
}

.filter-input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  margin-bottom: 20px;
}

.filter-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.filter-input::placeholder {
  color: #999;
}

.clear-button {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

.clear-button:hover {
  color: #777;
}
