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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #16213e;
    padding: 20px;
    border-right: 1px solid #0f3460;
    overflow-y: auto;
}

.sidebar h2 {
    color: #e94560;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agent-card {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #0f3460;
}

.agent-card h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
}

.agent-card .status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.idle { background: #4a5568; color: #eee; }
.status.working { background: #38a169; color: #fff; }
.status.waiting { background: #d69e2e; color: #1a1a2e; }

.agent-card .task {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #a0aec0;
}

.no-agents {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* Main Board */
.main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header h1 {
    color: #fff;
    font-size: 1.8rem;
}

.add-task-btn {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.add-task-btn:hover {
    background: #ff6b6b;
}

/* Kanban Board */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: calc(100% - 80px);
}

.column {
    background: #16213e;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f3460;
}

.column-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.column[data-status="todo"] .column-header h2 { color: #63b3ed; }
.column[data-status="in_progress"] .column-header h2 { color: #f6ad55; }
.column[data-status="done"] .column-header h2 { color: #68d391; }

.column-count {
    background: #0f3460;
    color: #a0aec0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    min-height: 100px;
}

.task-list.drag-over {
    background: rgba(233, 69, 96, 0.1);
    border-radius: 8px;
}

/* Task Cards */
.task-card {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #0f3460;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.task-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.task-card h3 {
    font-size: 0.95rem;
    color: #fff;
    flex: 1;
    margin-right: 10px;
}

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

.priority-low { background: #4a5568; color: #eee; }
.priority-medium { background: #d69e2e; color: #1a1a2e; }
.priority-high { background: #e53e3e; color: #fff; }

.task-card .description {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 12px;
}

.task-meta span {
    background: #0f3460;
    padding: 3px 8px;
    border-radius: 4px;
}

.task-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.task-actions button {
    background: #0f3460;
    color: #a0aec0;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.task-actions button:hover {
    background: #e94560;
    color: #fff;
}

.task-actions .delete-btn:hover {
    background: #c53030;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #16213e;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    border: 1px solid #0f3460;
}

.modal h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #a0aec0;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #0f3460;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e94560;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.modal-actions button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-cancel {
    background: #4a5568;
    color: #fff;
}

.btn-cancel:hover {
    background: #718096;
}

.btn-save {
    background: #e94560;
    color: #fff;
}

.btn-save:hover {
    background: #ff6b6b;
}

/* Empty state */
.empty-column {
    color: #4a5568;
    text-align: center;
    padding: 30px;
    font-style: italic;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #0f3460;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e94560;
}
