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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #0d0d0d;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.version {
    font-size: 12px;
    color: #666;
}

.status {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.status.connecting {
    background-color: #444;
    color: #aaa;
}

.status.connected {
    background-color: #1b5e20;
    color: #81c784;
}

.status.error {
    background-color: #5c1818;
    color: #ef5350;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.column h2 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.count {
    color: #666;
    font-weight: 400;
}

/* List Containers */
.list-container {
    flex: 1;
    overflow-y: auto;
    background-color: #242424;
    border-radius: 6px;
    border: 1px solid #333;
}

/* Loading State */
.loading {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Agent Items */
.agent-item {
    padding: 14px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-item:last-child {
    border-bottom: none;
}

.agent-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.agent-task {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

.agent-status.active {
    background-color: #1b5e20;
    color: #81c784;
}

.agent-status.idle {
    background-color: #3e3e1a;
    color: #c5c564;
}

.agent-status.busy {
    background-color: #5c1818;
    color: #ef5350;
}

/* Task Items */
.task-item {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

.task-item:last-child {
    border-bottom: none;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.task-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-priority {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.task-priority.critical {
    background-color: #5c1818;
    color: #ef5350;
}

.task-priority.high {
    background-color: #5c2a0a;
    color: #ff9800;
}

.task-priority.medium {
    background-color: #4a3b0a;
    color: #ffc107;
}

.task-priority.low {
    background-color: #1b3a1b;
    color: #4caf50;
}

.task-deadline {
    font-size: 12px;
    color: #666;
}

/* Footer */
footer {
    background-color: #0d0d0d;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #666;
}

.refresh-hint {
    color: #444;
}

/* Scrollbar */
.list-container::-webkit-scrollbar {
    width: 8px;
}

.list-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.list-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Empty State */
.empty-state {
    padding: 40px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

/* Error State */
.error-state {
    padding: 40px;
    text-align: center;
    color: #ef5350;
    font-size: 14px;
}
