#visualization-container {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 800px;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.node {
    cursor: pointer;
}

.node circle {
    stroke-width: 2px;
}

.node.parent circle {
    fill: #4285f4;
    stroke: #2a56c6;
}

.node.mutation circle {
    fill: #fbbc05;
    stroke: #d58802;
}

.node.highlighted circle {
    stroke: #ea4335;
    stroke-width: 3px;
}

.link {
    fill: none;
    stroke-width: 2px;
}

.link.mutation {
    stroke: #fbbc05;
    stroke-dasharray: 5;
}

.link.evolution {
    stroke: #4285f4;
    marker-end: url(#arrow);
}

.link.highlighted {
    stroke-width: 3px;
}

.link.evolution.highlighted {
    stroke: #1a73e8;  /* Slightly darker blue when highlighted */
}

.tooltip {
    position: absolute;
    padding: 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    max-width: 350px;
    z-index: 1000;
}

.tooltip h4 {
    margin: 0 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.tooltip table {
    margin-top: 5px;
    border-collapse: collapse;
    width: 100%;
}

.tooltip table th {
    text-align: left;
    font-weight: normal;
    color: #666;
    padding: 2px 5px;
}

.tooltip table td {
    padding: 2px 5px;
}

.tooltip .token-list {
    margin-top: 5px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 5px;
}

.tooltip .token {
    display: inline-block;
    margin: 2px;
    padding: 2px 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 0.8em;
}

.tooltip .token.changed {
    background-color: #fceff1;
    border: 1px solid #fad2d7;
}

.controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.controls button {
    margin: 0 5px;
    padding: 5px 10px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.controls button:hover {
    background: #2a56c6;
}

.legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 50%;
}

.iteration-group {
    stroke: #ccc;
    stroke-width: 1;
    stroke-dasharray: 5;
    fill: none;
}

.iteration-label {
    font-size: 12px;
    fill: #666;
}

.node.selected circle {
    stroke: #34a853;
    stroke-width: 3px;
    fill-opacity: 1;
}

.node.hidden, .link.hidden {
    display: none;
} 