:root {
    --bg-color: white;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --node-root: #ff7b72;
    /* Redish */
    --node-cat: #79c0ff;
    /* Blueish */
    --node-sub: #d2a8ff;
    /* Purpleish */
    --node-leaf: #56d364;
    /* Greenish */
    --link-color: #30363d;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    position: relative;
}

#container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    width: 100%;
    height: 100%;
}

#controls {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(22, 27, 34, 0.85);
    border: 1px solid #30363d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

#controls label {
    font-size: 12px;
    color: var(--text-secondary);
}

#controls input[type="date"] {
    background: #0d1117;
    color: var(--text-primary);
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12px;
    font-family: inherit;
}

/* Tooltip Customization */
#tooltip {
    background: rgba(22, 27, 34, 0.95) !important;
    border: 1px solid #30363d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    color: var(--text-primary) !important;
    backdrop-filter: blur(4px);
    padding: 8px 12px !important;
    line-height: 1.5;
}

#tooltip strong {
    color: var(--accent-color);
    font-size: 13px;
}

/* Text Labels */
text {
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    fill: var(--text-secondary) !important;
}

/* Links */
line {
    stroke: var(--link-color) !important;
    stroke-opacity: 0.6 !important;
}
