/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Kanban Board */
.kanban-container {
    min-height: 70vh;
}

.kanban-column {
    min-width: 250px;
}

.task-list {
    min-height: 300px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

/* Task Card */
.task-card {
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    border-left: 4px solid #dee2e6;
}

.task-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.task-card.priority-high {
    border-left-color: #dc3545;
}

.task-card.priority-medium {
    border-left-color: #ffc107;
}

.task-card.priority-low {
    border-left-color: #28a745;
}

.task-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.task-card-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.priority-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Drag and Drop */
.sortable-dragging {
    opacity: 0.5;
}

.sortable-placeholder {
    border: 2px dashed #6c757d;
    background-color: #f8f9fa;
    min-height: 80px;
    margin-bottom: 10px;
}

/* Activity Log */
.activity-log {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    padding: 0.5rem;
    border-left: 3px solid #0d6efd;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Comments */
.comment-item {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: #0d6efd;
    font-size: 0.9rem;
}

.comment-text {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* People List */
.person-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Filter Offcanvas - Better UX */
.offcanvas {
    max-width: 320px;
}

#peopleFilterList {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kanban-column {
        margin-bottom: 1rem;
    }
    
    .task-list {
        max-height: 400px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    #currentUserName {
        display: none;
    }
}

@media (max-width: 576px) {
    .task-card-title {
        font-size: 0.85rem;
    }
    
    .task-card-meta {
        font-size: 0.75rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
}

/* Disable interactions for viewers */
.viewer-mode .sortable {
    cursor: default !important;
}

.viewer-mode .task-card {
    cursor: pointer !important;
}
