.graph-info {
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    text-align: center;
    margin-bottom: 10px;
}

body.dark-theme .graph-info {
    background-color: #333;
    color: #f0f0f0;
    border-color: #555;
}

#graph-container {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    position: relative;
}
.highlight-path {
    color: #007bff;
    font-weight: bold;
}
.highlight-loop {
    color: #dc3545;
    font-weight: bold;
}
.highlight-target {
    color: #ff00ff;
    font-weight: bold;
}
.highlight-avoid {
    color: #6c757d;
    font-weight: bold;
}
.highlight-start {
    color: #00ffff;
    font-weight: bold;
}
.highlight-intermediate {
    color: #333;
    font-weight: normal;
}

.vis-tooltip {
    background-color: #fff !important;
    border: 2px solid #000 !important;
    border-radius: 6px !important;
    padding: 10px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    max-width: 300px;
    font-size: 14px;
    color: #333;
}

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

.vis-tooltip ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.vis-tooltip li {
    padding: 3px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vis-tooltip .pokemon-name {
    font-weight: bold;
    margin-right: 10px;
}

.vis-tooltip .spawn-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip-footer {
    margin-top: 8px;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    padding-top: 5px;
    margin-bottom: 0;
}

.vis-tooltip .rarity-tag {
    font-weight: bold;
    font-size: 0.85em;
    padding: 1px 4px;
    border-radius: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: white;
}

.rarity-COMMON {
    background-color: #6890f0;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}
.rarity-UNCOMMON {
    background-color: #78c850;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}
.rarity-RARE {
    background-color: #f8d030;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}
.rarity-SUPER_RARE {
    background-color: #f08030;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}
.rarity-ULTRA_RARE {
    background-color: #a890f0;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}
.rarity-BOSS {
    background-color: #c03028;
    border: 1px solid #f8d030;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}
.rarity-BOSS_RARE {
    background-color: #c03028;
    border: 1px solid #a890f0;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}
.rarity-BOSS_SUPER_RARE {
    background-color: #c03028;
    border: 1px solid #a890f0;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}
.rarity-BOSS_ULTRA_RARE {
    background-color: #a8a878;
    border: 1px solid #a890f0;
    border-radius: 8px;
    padding: 2px 4px;
    color: white;
    font-weight: bold;
}

body.dark-theme .highlight-path {
    color: #58a6ff;
}
body.dark-theme .highlight-loop {
    color: #ff7b72;
}
body.dark-theme .highlight-target {
    color: #f781ff;
}
body.dark-theme .highlight-avoid {
    color: #8b949e;
}
body.dark-theme .highlight-start {
    color: #39c5fe;
}
body.dark-theme .highlight-intermediate {
    color: #adbac7;
}

body.dark-theme .vis-tooltip {
    background-color: #252525 !important;
    border: 2px solid #555 !important;
    color: #e0e0e0;
}

body.dark-theme .vis-tooltip h4 {
    color: #e0e0e0;
    border-bottom: 1px solid #444;
}

body.dark-theme .tooltip-footer {
    border-top-color: #444;
}
