.event-tooltip {
  position: fixed;
  z-index: 9999;
  padding: 1rem;
  background-color: rgb(255, 255, 255);
  color: rgb(17, 24, 39);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 2px solid rgb(30, 119, 89);
  min-width: 16rem;
  max-width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
  transform: translate(-50%, -100%);
  margin-top: -0.75rem;
  width: max-content;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .event-tooltip {
    padding: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.4;
    min-width: 16rem;
    max-width: calc(100vw - 1.5rem);
    margin-top: -0.5rem;
    border-width: 3px;
  }
  
  .event-tooltip::after {
    border-width: 8px;
  }
  
  .tooltip-close-btn {
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 2px;
  }
  
  .dark .tooltip-close-btn {
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .tooltip-close-btn svg {
    width: 16px;
    height: 16px;
  }
}

.event-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgb(30, 119, 89) transparent transparent transparent;
}

.dark .event-tooltip {
  background-color: rgb(31, 41, 55);
  color: rgb(229, 231, 235);
  border: 2px solid rgb(30, 119, 89);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

.dark .event-tooltip::after {
  border-color: rgb(30, 119, 89) transparent transparent transparent;
}

/* Animation */
.event-tooltip {
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

.event-tooltip.visible {
  opacity: 1;
}
