/* KANBAN BOARD STYLES */

.kanban-view {
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.kanban-header h2 {
    margin: 0;
    color: #333;
}

.kanban-header > div {
    display: flex;
    gap: 10px;
}


.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    flex: 1;
    padding-bottom: 20px;
}

.kanban-column {
    min-width: 300px;
    max-width: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kanban-column-header {
    padding: 15px;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-column-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.task-count {
    background: rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}

.kanban-column-body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

.kanban-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: move;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: all 0.2s;
    border-left: 4px solid #dee2e6;
}

.kanban-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
}

.kanban-card.priority-high {
    border-left-color: #dc3545;
}

.kanban-card.priority-medium {
    border-left-color: #ffc107;
}

.kanban-card.priority-low {
    border-left-color: #28a745;
}

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

.task-code {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.priority-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.card-body h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.card-body p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #6c757d;
}

.assignee, .due-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Task Details Modal */
.task-details {
    padding: 10px;
}

.task-details h3 {
    margin-top: 0;
    color: #333;
}

.task-details p {
    margin: 10px 0;
    line-height: 1.6;
}

.task-details strong {
    color: #555;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
    }
    
    .kanban-column {
        min-width: 100%;
        max-width: 100%;
    }
}
