/* Custom styles for Finnish Bird & Fish Explorer */
body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

/* Custom transition for tab selection */
.tab-transition {
  transition: all 0.3s ease;
}

.tab-active {
  position: relative;
}

.tab-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
}

/* Custom animation for species cards */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.species-card {
  animation: fadeIn 0.5s ease forwards;
}

/* Custom map styling */
.finland-map-container {
  position: relative;
  overflow: hidden;
}

.finland-map {
  transition: all 0.3s ease;
}

.map-marker {
  transition: all 0.3s ease;
  transform-origin: center;
}

.map-marker:hover {
  transform: scale(1.5);
}

/* Custom styling for audio player */
.audio-player {
  height: 40px;
  width: 100%;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.6), rgba(20, 184, 166, 0.6));
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.audio-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(59, 130, 246, 0.9);
  transition: width 0.1s linear;
}

.audio-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 15px;
  height: 100%;
}

/* Custom tooltip styling */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

/* Dark mode transition */
.dark-mode-transition {
  transition: background-color 0.3s ease, color 0.3s ease;
}