/* Dark Mode Theme Variables */
:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --panel-bg: #1e1e1e;
    --border-color: #333;
    --link-color: #4fc3f7;
    --link-hover-color: #81d4fa;
    --header-bg: #1e1e1e;
    --header-text: #ffffff;
    --node-bg: #2c2c2c;
    --node-selected-bg: #0288d1;
    --node-hover-bg: #4fc3f7;
    --node-border: #4fc3f7;
    --graph-bg: #252525;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    font-size: 1.8rem;
}

.dashboard-container {
    display: flex;
    height: calc(100vh - 80px - 40px);
    min-height: 500px;
}

.graph-panel {
    flex: 0 0 30%;
    max-width: 400px;
    min-width: 250px;
    padding: 1.5rem;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.left-panel {
    border-right: none;
}

.right-panel {
    border-left: none;
}

.graph-panel h2 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--link-hover-color);
}

.graph-note {
    font-size: 0.9em;
    text-align: center;
    margin-top: 1rem;
    color: #aaa;
}

#jin-graph, #app-graph {
    background-color: var(--graph-bg);
    flex: 1;
    min-height: 200px;
    width: 100%;
}

#jin-graph svg, #app-graph svg {
    width: 100%;
    height: 100%;
}

.node rect {
    fill: var(--node-bg);
    stroke: var(--node-border);
    stroke-width: 2px;
}

.node.selected rect {
    fill: var(--node-selected-bg);
}

.node.hovered rect {
    fill: var(--node-hover-bg);
}

.node text {
    fill: var(--text-color);
    font-family: sans-serif;
    font-size: 12px;
}

.link {
    stroke: var(--border-color);
    stroke-width: 2px;
}

.content-panel {
    flex: 1;
    padding: 0;
    background-color: var(--bg-color);
    overflow: hidden;
}

#content-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: var(--bg-color);
}

footer {
    background-color: var(--header-bg);
    color: var(--header-text);
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    position: relative;
}