.swimming-fish {
    user-select: none;
    pointer-events: auto; /* Required for click to remove */
    transform-origin: center center;
    transition: transform 0.5s ease-in-out;
}

.swimming-fish:hover {
    filter: drop-shadow(2px 4px 6px rgba(255,255,255,0.5)) !important;
}

.fish-facing-left img {
    transform: scaleX(-1);
}

.fish-controls::-webkit-scrollbar {
    height: 8px;
}
.fish-controls::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.add-fish-btn:hover {
    transform: scale(1.1) !important;
}

.aq-nav {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.aq-nav:hover {
    opacity: 1;
}

/* Global Tooltip appended to body */
.aquarium-global-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 999999;
    
    /* Allow dynamic width but force break on very long strings */
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all; /* Fixed long strings pushing layout */
}

.aquarium-global-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fish-tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.8) transparent transparent transparent;
}

.fish-tooltip-title {
    font-weight: bold;
    margin-bottom: 5px;
    word-wrap: break-word;
    word-break: break-all; /* Fixed long strings pushing layout */
}

.fish-tooltip-desc {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-all; /* Fixed long strings pushing layout */
}

/* Ensure wrapper doesn't clip tooltips */
.aquarium-wrapper {
    position: relative;
    z-index: 10;
}