/* Diagnose-Dashboard Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}
#status-indicator {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
#status-text {
    font-weight: bold;
}
nav {
    display: flex;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
}
.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.tab-btn.active,
.tab-btn:hover {
    background: #bdc3c7;
    color: #2c3e50;
}
main {
    padding: 1.5rem;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
h2 {
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.metrics-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 1rem;
}
.metric-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.metric-card h3 {
    margin-bottom: 0.5rem;
    color: #34495e;
    font-size: 1rem;
}
.metric-card p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}
.metric-card ul {
    list-style: none;
    padding-left: 0;
    max-height: 100px;
    overflow-y: auto;
    font-size: 0.85rem;
}
.metric-card li {
    padding: 0.2rem 0;
    border-bottom: 1px solid #eee;
}
.metric-card li:last-child {
    border-bottom: none;
}
#cpu-chart-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#kanban-boards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.kanban-board {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.kanban-board h3 {
    margin-top: 0;
}
.kanban-board .counts {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
.kanban-board .counts span {
    display: inline-block;
    margin-right: 1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}
.kanban-board .counts .done { background: #d4edda; color: #155724; }
.kanban-board .counts .blocked { background: #f8d7da; color: #721c24; }
.kanban-board .counts .ready { background: #fff3cd; color: #856404; }
#health-output {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    max-height: 400px;
    overflow-y: auto;
}
footer {
    text-align: center;
    padding: 1rem;
    color: #7f8c8d;
    font-size: 0.85rem;
    border-top: 1px solid #ecf0f1;
    margin-top: 2rem;
}
@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    #kanban-boards {
        grid-template-columns: 1fr;
    }
}