:root {
    --bg: #0a0a0a;
    --bg-panel: #141414;
    --bg-input: #101010;
    --border: #2b2b2b;
    --border-soft: #3a3a3a;
    --text: #e8e8e8;
    --text-muted: #8a8a8a;
    --magenta: #ff2ecf;
    --magenta-bright: #ff7ae8;
    --magenta-dim: #a3158f;
    --cyan: #26e8f5;
    --cyan-bright: #8ff8ff;
    --error: #ff4d6d;
    --error-bg: #201213;
    --error-border: #5c2530;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--cyan);
}

a:hover {
    color: var(--magenta-bright);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--magenta);
    text-decoration: none;
    text-shadow: 0 0 12px rgba(255, 46, 207, 0.45);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1rem;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-user {
    margin-left: 1rem;
    color: var(--cyan);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem;
}

#graph {
    width: 100%;
    height: 80vh;
    background: var(--bg-panel) url('/static/img/graph-bg.jpg') center / cover no-repeat;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 100%;
    margin: 0;
}

.container:has(#graph) {
    max-width: none;
    padding: 1rem;
}

h1, h2 {
    color: var(--text);
}

.error {
    color: var(--error);
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form input,
.form textarea,
.form select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(38, 232, 245, 0.15);
}

.form button {
    align-self: flex-start;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    background: var(--magenta);
    color: #0a0510;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.form button:hover {
    background: var(--magenta-bright);
}

.description {
    white-space: pre-wrap;
}

.owner {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.graph-tooltip {
    position: fixed;
    z-index: 1000;
    max-width: 260px;
    font-size: 0.85rem;
    line-height: 1.4;
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    color: var(--text);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
}

.graph-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.graph-tooltip strong {
    color: var(--magenta-bright);
}

.graph-tooltip em {
    color: var(--cyan);
    font-style: normal;
}

.graph-tooltip hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.4rem 0;
}
