flowchart TD
classDef start fill:#27ae60,stroke:#1e8449,stroke-width:2px,color:#fff
classDef process fill:#3498db,stroke:#2980b9,stroke-width:2px,color:#fff
classDef decision fill:#f39c12,stroke:#d35400,stroke-width:2px,color:#fff
classDef action fill:#9b59b6,stroke:#8e44ad,stroke-width:2px,color:#fff
classDef endStyle fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff
classDef reminder fill:#e67e22,stroke:#d35400,stroke-width:2px,color:#fff
A[Manager Creates Task]:::start
B[Input: Due Date, Assignee, Priority]:::process
F[Mail Sent]:::process
G{Receiver Options}:::decision
A --> B
B --> F
F --> G
H[Forward]:::action
I[Refuse]:::action
J[Complete]:::action
K[Comment]:::action
G --> H
G --> I
G --> J
G --> K
L[New Receiver]:::process
N[To Manager]:::process
P[Task Complete]:::process
Q[END]:::endStyle
R[To Manager - Comment]:::process
H --> L
L --> G
I --> N
N --> Q
J --> P
P --> Q
K --> R
T{2 Days Before Due?}:::decision
U[Reminder]:::reminder
V[Manager Alert - High Priority]:::reminder
W{Due Date?}:::decision
X[Manager Alert]:::reminder
G --> T
R --> T
T -->|No Reply| U
T -->|High Priority| V
T --> W
W -->|No Reply| X