:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #eaeaea;
    --text-secondary: #a0a0a0;
    --accent-blue: #4cc9f0;
    --accent-green: #2ecc71;
    --accent-purple: #9b59b6;
    --accent-orange: #e67e22;
    --border-color: #2a2a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stats span {
    padding: 5px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab.active {
    background: var(--accent-blue);
    color: var(--bg-primary);
}

.view {
    display: none;
}

.view.active {
    display: block;
}

#graph {
    width: 100%;
    height: 600px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.column {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    min-height: 400px;
}

.column h2 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tasks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-card {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-blue);
    cursor: pointer;
    transition: transform 0.2s;
}

.task-card:hover {
    transform: translateX(2px);
}

.task-card .id {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.task-card .description {
    font-size: 0.9rem;
}

.task-card .claimed-by {
    font-size: 0.8rem;
    color: var(--accent-green);
    margin-top: 8px;
}

.audit-timeline {
    max-height: 600px;
    overflow-y: auto;
}

.audit-event {
    background: var(--bg-secondary);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-purple);
}

.audit-event .timestamp {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.audit-event .event-type {
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 5px;
}

.audit-event .agent {
    font-size: 0.85rem;
    color: var(--accent-blue);
}

/* D3.js Graph Styles */
.node circle {
    stroke: #fff;
    stroke-width: 1.5px;
}

.node text {
    font-size: 10px;
    fill: var(--text-primary);
    pointer-events: none;
}

.link {
    stroke-opacity: 0.6;
}

.node.agent circle {
    fill: var(--accent-green);
}

.node.discovery circle {
    fill: var(--accent-blue);
}

.node.event circle {
    fill: var(--accent-purple);
}

.node.agent circle {
    r: 8;
}

.node.discovery circle {
    r: 5;
}

.node.event circle {
    r: 4;
}
