:root {
    --tf-primary: #4f46e5;
    --tf-primary-dark: #4338ca;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.project-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.avatar-group {
    display: flex;
}

.avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tf-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: -8px;
    border: 2px solid white;
}

.avatar-badge:first-child {
    margin-left: 0;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: 500px;
}

.kanban-column {
    min-width: 280px;
    max-width: 280px;
    background: #f8f9fa;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 280px);
}

.kanban-column-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 0.75rem 0.75rem 0 0;
}

.kanban-tasks {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    min-height: 100px;
}

.kanban-tasks.drag-over {
    background: rgba(79, 70, 229, 0.08);
    border-radius: 0.5rem;
}

.kanban-task {
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: grab;
    border-left: 3px solid #6b7280;
    transition: box-shadow 0.2s, transform 0.2s;
}

.kanban-task:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

.kanban-task.priority-low { border-left-color: #10b981; }
.kanban-task.priority-medium { border-left-color: #3b82f6; }
.kanban-task.priority-high { border-left-color: #f59e0b; }
.kanban-task.priority-urgent { border-left-color: #ef4444; }

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.priority-dot.priority-low { background: #10b981; }
.priority-dot.priority-medium { background: #3b82f6; }
.priority-dot.priority-high { background: #f59e0b; }
.priority-dot.priority-urgent { background: #ef4444; }

.assignee-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
}

.add-task-btn {
    margin: 0.5rem;
    border: 1px dashed #dee2e6;
}

/* Chat */
.chat-messages {
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 0.75rem;
    display: flex;
}

.chat-message.own {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.chat-message.own .message-bubble {
    background: var(--tf-primary);
    color: white;
}

.chat-message.own .message-author,
.chat-message.own .message-time {
    color: rgba(255, 255, 255, 0.85) !important;
}

.message-author {
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.15rem;
}

.message-time {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Workflow toast */
.workflow-toast {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}
