:root {
    --jira-blue: #0052cc;
    --jira-bg: #f4f5f7;
    --jira-sidebar: #0747a6;
    --jira-text: #172b4d;
    --jira-subtext: #5e6c84;
    --jira-border: #dfe1e6;
    --jira-hover: #ebecf0;
    --status-done: #36b37e;
    --status-fail: #ff5630;
}

* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; transition: background 0.2s; }
body { margin: 0; background-color: white; color: var(--jira-text); display: flex; height: 100vh; overflow: hidden; }

/* --- NAVIGATION --- */
.global-nav { width: 64px; background: var(--jira-sidebar); display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 20px; flex-shrink: 0; }
.global-nav-item { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; font-size: 10px; font-weight: bold; }

nav { width: 260px; background: var(--jira-bg); border-right: 1px solid var(--jira-border); display: flex; flex-direction: column; padding: 24px 0; }
.nav-section { margin-bottom: 24px; }
.nav-section-title { font-size: 11px; font-weight: 700; color: var(--jira-subtext); padding: 0 24px 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-item { padding: 8px 24px; font-size: 14px; cursor: pointer; color: #42526e; display: block; text-decoration: none; border-right: 3px solid transparent; }
.nav-item:hover { background: var(--jira-hover); }
.nav-item.active { background: #e6effc; color: var(--jira-blue); border-right-color: var(--jira-blue); font-weight: 600; }

/* --- LAYOUT --- */
main { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.header-bar { padding: 24px 40px; border-bottom: 1px solid var(--jira-border); flex-shrink: 0; background: white; z-index: 10; }
.view-content { flex-grow: 1; display: none; padding: 24px 40px; overflow-y: auto; background: white; }
.view-content.active { display: block; }

/* --- LISTS & TABLES --- */
.jira-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.jira-table th { text-align: left; font-size: 12px; color: var(--jira-subtext); border-bottom: 2px solid var(--jira-border); padding: 12px 8px; text-transform: uppercase; }
.jira-table td { padding: 12px 8px; border-bottom: 1px solid var(--jira-border); font-size: 14px; }

/* --- ROADMAP UI --- */
.roadmap-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-bottom: 15px; align-items: center; }
.roadmap-bar { height: 32px; background: #deebff; border-radius: 4px; border: 1px solid #b3d4ff; position: relative; overflow: hidden; }
.roadmap-progress { height: 100%; background: #2684ff; position: absolute; left: 0; top: 0; }

/* --- KANBAN BOARD --- */
.board-container { display: flex; gap: 16px; height: 100%; align-items: flex-start; }
.board-column { background: var(--jira-bg); min-width: 320px; border-radius: 3px; padding: 12px; display: flex; flex-direction: column; max-height: 100%; }
.column-header { padding: 0 8px 12px 8px; font-size: 12px; font-weight: 600; color: var(--jira-subtext); text-transform: uppercase; }
.issue-card { background: white; border-radius: 3px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(9, 30, 66, 0.25); border-left: 3px solid transparent; }
.issue-card.running { border-left-color: var(--jira-blue); }
.telemetry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 11px; margin-bottom: 12px; }
.stat-box { background: #f4f5f7; padding: 6px; border-radius: 3px; }
.stat-label { color: var(--jira-subtext); font-weight: 600; margin-bottom: 2px; display: block; }
.jira-progress { height: 6px; background: #dfe1e6; border-radius: 3px; overflow: hidden; }
.jira-progress-fill { height: 100%; background: var(--jira-blue); transition: width 1s linear; }

/* --- STABILITY HEATMAP --- */
.heatmap { display: flex; gap: 4px; margin-top: 20px; }
.heat-cell { width: 30px; height: 30px; border-radius: 3px; background: var(--status-done); }
.heat-cell.warn { background: #ffab00; }
.heat-cell.fail { background: var(--status-fail); }
