body {
    background-color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

svg {
    font: 12px sans-serif;
    font-weight: bold;
    margin: 10px;
}

.axis,
.frame {
    shape-rendering: crispEdges;
}

.axis line {
    stroke: #ddd;
}

.axis path {
    display: none;
}

.cell text {
    font-weight: bold;
    text-transform: capitalize;
    fill: black;
}

.frame {
    fill: none;
    stroke: #aaa;
}

circle {
    fill-opacity: 0.7;
    stroke-width: 2;
    transition: all 0.4s ease;
    stroke: none;
}

circle:hover {
    fill-opacity: 1;
    stroke: black;
    transform: scale(1.2);
    animation: pulse 1.5s infinite;
}

circle.hidden {
    fill: #ccc !important;
}

.extent {
    fill: #000;
    fill-opacity: 0.125;
    stroke: #fff;
}

.bar rect {
    transition: all 0.4s ease;
    fill: url(#bar-gradient); 
}

.bar rect:hover {
    fill: #ff9933;
    filter: url(#glow);
    transform: scaleY(1.1);
}

.legend rect {
    transition: all 0.4s ease;
}

.legend text {
    cursor: pointer;
}

.tooltip {
    position: absolute;
    text-align: center;
    width: auto;
    height: auto;
    padding: 8px;
    background: lightsteelblue;
    border: 1px solid #999;
    border-radius: 5px;
    pointer-events: none;
    font-size: 12px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    transition: visibility 0.4s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1.2);
    }
}
