body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-size: var(--font-size);
}

.sidebar {
    background-color: var(--card);
    height: 100vh;
    box-shadow: 2px 0 10px var(--border);
    overflow-y: auto;
}

.graph-container {
    height: 70vh;
    background-color: var(--card);
    margin: 15px;
    border-radius: var(--radius);
    box-shadow: 0 2px 5px var(--border);
}

.node-editor {
    background-color: var(--card);
    margin: 15px;
    border-radius: var(--radius);
    box-shadow: 0 2px 5px var(--border);
}

.response-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background-color: var(--accent);
    border-radius: var(--radius);
    color: var(--accent-foreground);
}

.response-item .flex-grow-1 {
    flex-grow: 1;
    margin-right: 10px;
}

/* D3.js specific styles */
.node {
    cursor: pointer;
}

.terminal-node {
    fill: var(--accent); /* Light accent background for terminal nodes */
}

.node circle {
    fill: var(--primary);
    stroke: var(--ring);
    stroke-width: 2px;
    filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.2));
}

.node rect {
    fill: var(--card);
    stroke: var(--ring);
    stroke-width: 1px;
    rx: 5;
    ry: 5;
    filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.2));
}

.node text {
    font-size: 12px;
    fill: var(--foreground);
}

.node.selected circle {
    fill: var(--accent);
    stroke: var(--primary);
}

.node.selected rect {
    stroke: var(--primary);
    stroke-width: 2px;
}

.link {
    fill: none;
    stroke: var(--muted-foreground);
    stroke-width: 2px;
    stroke-dasharray: none;
}

.link-label {
    font-size: 10px;
    fill: var(--foreground);
    font-weight: bold;
    text-shadow: 0 0 3px var(--background);
    pointer-events: none;
}

/* Add styling for the vertical tree layout */
.node text {
    text-anchor: middle;
    dominant-baseline: middle;
    font-family: Arial, sans-serif;
    pointer-events: none;
}
