/* Loom Dashboard — Minimal CSS */
:root {
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --bg-nav: #1a1a2e;
    --text: #212529;
    --text-muted: #6c757d;
    --text-nav: #e0e0e0;
    --border: #dee2e6;
    --blue: #0d6efd;
    --green: #198754;
    --red: #dc3545;
    --orange: #fd7e14;
    --gray: #6c757d;
    --purple: #6f42c1;
    --yellow: #ffc107;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --bg-card: #1e1e1e;
        --bg-nav: #0d0d1a;
        --text: #e0e0e0;
        --text-muted: #999;
        --border: #333;
    }
}

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

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

nav {
    background: var(--bg-nav);
    color: var(--text-nav);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav .brand { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.5px; }
nav a { color: var(--text-nav); text-decoration: none; font-size: 0.9rem; opacity: 0.8; }
nav a:hover, nav a.active { opacity: 1; }

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

h1 { font-size: 1.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }

/* Kanban Board */
.board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    min-height: 400px;
}

.column {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    min-height: 300px;
}

.column-header {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-header .count {
    background: var(--border);
    border-radius: 10px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.card .task-id { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }
.card .task-title { font-size: 0.9rem; margin: 0.25rem 0; }

.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.badge-p0 { background: var(--red); color: white; }
.badge-p1 { background: var(--orange); color: white; }
.badge-p2 { background: var(--gray); color: white; }

.status-pending { border-left: 3px solid var(--gray); }
.status-claimed { border-left: 3px solid var(--blue); }
.status-done { border-left: 3px solid var(--green); }
.status-failed { border-left: 3px solid var(--red); }
.status-blocked { border-left: 3px solid var(--orange); }

/* Task Detail */
.detail-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.detail-panel dt { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; }
.detail-panel dd { margin-bottom: 0.75rem; }

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.project-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }

.progress-bar {
    background: var(--border);
    border-radius: 4px;
    height: 8px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress-fill {
    background: var(--green);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

/* Graph */
.graph-container { background: var(--bg-card); border-radius: 8px; padding: 1rem; border: 1px solid var(--border); }

/* Stats */
.stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    text-align: center;
    min-width: 100px;
}

.stat .value { font-size: 1.5rem; font-weight: 700; }
.stat .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* Responsive */
@media (max-width: 900px) {
    .board { grid-template-columns: 1fr; }
}
