:root {
    --bg-color: #0f1014;
    --text-color: #e0e0e0;
    --accent-color: #c5a065; /* Gold/Bronze */
    --node-bg-female: #7e3e3e; /* Deep Red */
    --node-bg-male: #2d4a66; /* Note Navy */
    --link-color: #555;
    --font-main: 'Zen Old Mincho', serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden; /* Prevent scroll bars if SVG fits */
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    text-align: center;
    padding: 1rem;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(15,16,20,0.9), rgba(15,16,20,0));
}

header h1 {
    font-size: 2rem;
    margin: 0;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(197, 160, 101, 0.3);
}

header h2 {
    font-size: 1rem;
    font-weight: normal;
    margin: 0.5rem 0 0;
    opacity: 0.8;
}

#chart-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

footer {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.5;
    position: absolute;
    bottom: 0;
    width: 100%;
    pointer-events: none;
}

/* SVG Styles */
svg {
    width: 100%;
    height: 100%;
}

.link {
    stroke: var(--link-color);
    stroke-opacity: 0.6;
    stroke-width: 1.5px;
    fill: none;
}

.node circle {
    stroke: #fff;
    stroke-width: 1.5px;
    cursor: grab;
    transition: all 0.3s ease;
}

.node circle:hover {
    stroke: var(--accent-color);
    stroke-width: 3px;
    filter: drop-shadow(0 0 8px var(--accent-color));
}

.node text {
    font-family: var(--font-main);
    pointer-events: none;
    text-anchor: middle;
    fill: #fff;
}

.node-name {
    font-weight: bold;
    font-size: 14px;
}

.node-role {
    font-size: 10px;
    opacity: 0.8;
}

.link-label {
    font-size: 10px;
    fill: #aaa;
    background-color: var(--bg-color); /* This doesn't work on text, use paint-order or rect background */
}

.link-label-rect {
    fill: var(--bg-color);
    opacity: 0.8;
}

/* Tooltip (optional) */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: none;
    font-size: 12px;
    border: 1px solid var(--accent-color);
    opacity: 0;
    transition: opacity 0.2s;
}
