Deepak3635 commited on
Commit
07992ae
·
verified ·
1 Parent(s): 2344fd5

Design a secure and user-friendly task management application for a team of 10 members where all assigned tasks are visible on the home page for quick access. Users can view tasks without changes, but login is mandatory to create, edit, or update any task. The system should support role-based access, where the admin can create user IDs, reset or change passwords, and manage team accounts. Admin can assign tasks with details like title, description, priority, start date, due date, and status, and members can update progress. The application must include a daily popup alert at a fixed configurable time to notify users about pending, due, and overdue tasks, along with a dashboard, filters, and a clean, responsive interface to ensure efficient team task management.

Browse files
Files changed (5) hide show
  1. README.md +7 -4
  2. components/nav-bar.js +127 -0
  3. index.html +431 -19
  4. script.js +849 -0
  5. style.css +255 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Taskflow Nexus
3
- emoji: 🌖
4
  colorFrom: red
5
- colorTo: indigo
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: TaskFlow Nexus 🚀
 
3
  colorFrom: red
4
+ colorTo: yellow
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/nav-bar.js ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Navigation Bar Web Component
2
+
3
+ class NavBar extends HTMLElement {
4
+ constructor() {
5
+ super();
6
+ }
7
+
8
+ connectedCallback() {
9
+ this.attachShadow({ mode: 'open' });
10
+ this.render();
11
+ this.bindEvents();
12
+
13
+ // Listen for auth changes
14
+ window.addEventListener('userLoggedIn', () => this.updateForUser());
15
+ window.addEventListener('userLoggedOut', () => this.updateForGuest());
16
+ }
17
+
18
+ render() {
19
+ this.shadowRoot.innerHTML = `
20
+ <style>
21
+ @import url('https://cdn.tailwindcss.com');
22
+
23
+ :host {
24
+ display: block;
25
+ }
26
+
27
+ .nav-container {
28
+ position: fixed;
29
+ top: 0;
30
+ left: 0;
31
+ right: 0;
32
+ z-index: 40;
33
+ background: rgba(15, 23, 42, 0.8);
34
+ backdrop-filter: blur(12px);
35
+ -webkit-backdrop-filter: blur(12px);
36
+ border-bottom: 1px solid rgba(51, 65, 85, 0.5);
37
+ }
38
+
39
+ .nav-link {
40
+ position: relative;
41
+ color: #94a3b8;
42
+ transition: color 0.2s;
43
+ }
44
+
45
+ .nav-link:hover {
46
+ color: #f1f5f9;
47
+ }
48
+
49
+ .nav-link.active {
50
+ color: #38bdf8;
51
+ }
52
+
53
+ .nav-link.active::after {
54
+ content: '';
55
+ position: absolute;
56
+ bottom: -1.25rem;
57
+ left: 0;
58
+ right: 0;
59
+ height: 2px;
60
+ background: linear-gradient(90deg, #0ea5e9, #d946ef);
61
+ border-radius: 1px;
62
+ }
63
+
64
+ .mobile-menu {
65
+ display: none;
66
+ }
67
+
68
+ @media (max-width: 768px) {
69
+ .desktop-nav {
70
+ display: none;
71
+ }
72
+ .mobile-menu {
73
+ display: block;
74
+ }
75
+ }
76
+
77
+ .btn-primary {
78
+ background: linear-gradient(135deg, #0ea5e9, #0284c7);
79
+ transition: all 0.3s;
80
+ }
81
+
82
+ .btn-primary:hover {
83
+ background: linear-gradient(135deg, #38bdf8, #0ea5e9);
84
+ box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
85
+ }
86
+
87
+ .btn-secondary {
88
+ background: rgba(51, 65, 85, 0.5);
89
+ border: 1px solid rgba(71, 85, 105, 0.5);
90
+ transition: all 0.3s;
91
+ }
92
+
93
+ .btn-secondary:hover {
94
+ background: rgba(71, 85, 105, 0.7);
95
+ border-color: rgba(100, 116, 139, 0.7);
96
+ }
97
+
98
+ .logo-gradient {
99
+ background: linear-gradient(135deg, #38bdf8, #e879f9);
100
+ -webkit-background-clip: text;
101
+ -webkit-text-fill-color: transparent;
102
+ background-clip: text;
103
+ }
104
+
105
+ .mobile-sheet {
106
+ position: fixed;
107
+ inset: 0;
108
+ z-index: 50;
109
+ background: rgba(2, 6, 23, 0.9);
110
+ backdrop-filter: blur(8px);
111
+ transform: translateX(100%);
112
+ transition: transform 0.3s ease-out;
113
+ }
114
+
115
+ .mobile-sheet.open {
116
+ transform: translateX(0);
117
+ }
118
+ </style>
119
+
120
+ <nav class="nav-container">
121
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
122
+ <div class="flex items-center justify-between h-16">
123
+ <!-- Logo -->
124
+ <a href="index.html" class="flex items-center gap-3">
125
+ <div class="w-10 h-10 rounded-xl bg-gradient-to-br from-primary-500 to-secondary-500 flex items-center justify-center">
126
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-white">
127
+ <path d="M12 2L2 7l10 5
index.html CHANGED
@@ -1,19 +1,431 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>TaskFlow Nexus - Team Task Management</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <script>
13
+ tailwind.config = {
14
+ darkMode: 'class',
15
+ theme: {
16
+ extend: {
17
+ colors: {
18
+ primary: {
19
+ 50: '#f0f9ff',
20
+ 100: '#e0f2fe',
21
+ 200: '#bae6fd',
22
+ 300: '#7dd3fc',
23
+ 400: '#38bdf8',
24
+ 500: '#0ea5e9',
25
+ 600: '#0284c7',
26
+ 700: '#0369a1',
27
+ 800: '#075985',
28
+ 900: '#0c4a6e',
29
+ 950: '#082f49',
30
+ },
31
+ secondary: {
32
+ 50: '#fdf4ff',
33
+ 100: '#fae8ff',
34
+ 200: '#f5d0fe',
35
+ 300: '#f0abfc',
36
+ 400: '#e879f9',
37
+ 500: '#d946ef',
38
+ 600: '#c026d3',
39
+ 700: '#a21caf',
40
+ 800: '#86198f',
41
+ 900: '#701a75',
42
+ 950: '#4a044e',
43
+ },
44
+ dark: {
45
+ 50: '#f8fafc',
46
+ 100: '#f1f5f9',
47
+ 200: '#e2e8f0',
48
+ 300: '#cbd5e1',
49
+ 400: '#94a3b8',
50
+ 500: '#64748b',
51
+ 600: '#475569',
52
+ 700: '#334155',
53
+ 800: '#1e293b',
54
+ 900: '#0f172a',
55
+ 950: '#020617',
56
+ }
57
+ },
58
+ animation: {
59
+ 'fade-in': 'fadeIn 0.3s ease-out',
60
+ 'slide-up': 'slideUp 0.4s ease-out',
61
+ 'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
62
+ 'bounce-slow': 'bounce 2s infinite',
63
+ },
64
+ keyframes: {
65
+ fadeIn: {
66
+ '0%': { opacity: '0' },
67
+ '100%': { opacity: '1' },
68
+ },
69
+ slideUp: {
70
+ '0%': { transform: 'translateY(20px)', opacity: '0' },
71
+ '100%': { transform: 'translateY(0)', opacity: '1' },
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ </script>
78
+ </head>
79
+ <body class="bg-dark-950 text-dark-100 min-h-screen font-sans antialiased">
80
+ <!-- Navigation -->
81
+ <nav-bar></nav-bar>
82
+
83
+ <!-- Main Content -->
84
+ <main id="mainContent" class="pt-20 pb-8 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
85
+ <!-- Hero Section -->
86
+ <section id="heroSection" class="mb-8 animate-fade-in">
87
+ <div class="relative overflow-hidden rounded-2xl bg-gradient-to-br from-primary-900/50 to-secondary-900/50 border border-primary-700/30 p-8 md:p-12">
88
+ <div class="absolute inset-0 bg-[url('data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%230ea5e9\" fill-opacity=\"0.05\"%3E%3Cpath d=\"M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E')]"></div>
89
+ <div class="relative z-10">
90
+ <div class="flex flex-col md:flex-row md:items-center md:justify-between gap-6">
91
+ <div>
92
+ <h1 class="text-4xl md:text-5xl font-bold bg-gradient-to-r from-primary-400 to-secondary-400 bg-clip-text text-transparent mb-4">
93
+ TaskFlow Nexus
94
+ </h1>
95
+ <p class="text-dark-300 text-lg max-w-2xl">
96
+ Streamline your team's workflow with intelligent task management.
97
+ Collaborate seamlessly, track progress effortlessly, and achieve goals together.
98
+ </p>
99
+ </div>
100
+ <div class="flex flex-col sm:flex-row gap-3">
101
+ <button id="viewTasksBtn" class="px-6 py-3 bg-primary-600 hover:bg-primary-500 text-white rounded-xl font-semibold transition-all duration-300 flex items-center justify-center gap-2 shadow-lg shadow-primary-600/25 hover:shadow-primary-600/40">
102
+ <i data-feather="grid" class="w-5 h-5"></i>
103
+ View All Tasks
104
+ </button>
105
+ <button id="loginPromptBtn" class="px-6 py-3 bg-dark-800 hover:bg-dark-700 text-dark-100 rounded-xl font-semibold transition-all duration-300 flex items-center justify-center gap-2 border border-dark-600">
106
+ <i data-feather="log-in" class="w-5 h-5"></i>
107
+ Sign In to Manage
108
+ </button>
109
+ </div>
110
+ </div>
111
+
112
+ <!-- Quick Stats -->
113
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mt-8">
114
+ <div class="bg-dark-900/50 backdrop-blur rounded-xl p-4 border border-dark-700/50">
115
+ <div class="flex items-center gap-3">
116
+ <div class="w-10 h-10 rounded-lg bg-primary-500/20 flex items-center justify-center">
117
+ <i data-feather="list" class="w-5 h-5 text-primary-400"></i>
118
+ </div>
119
+ <div>
120
+ <p class="text-2xl font-bold text-primary-400" id="totalTasksCount">0</p>
121
+ <p class="text-xs text-dark-400 uppercase tracking-wider">Total Tasks</p>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ <div class="bg-dark-900/50 backdrop-blur rounded-xl p-4 border border-dark-700/50">
126
+ <div class="flex items-center gap-3">
127
+ <div class="w-10 h-10 rounded-lg bg-yellow-500/20 flex items-center justify-center">
128
+ <i data-feather="clock" class="w-5 h-5 text-yellow-400"></i>
129
+ </div>
130
+ <div>
131
+ <p class="text-2xl font-bold text-yellow-400" id="pendingTasksCount">0</p>
132
+ <p class="text-xs text-dark-400 uppercase tracking-wider">Pending</p>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ <div class="bg-dark-900/50 backdrop-blur rounded-xl p-4 border border-dark-700/50">
137
+ <div class="flex items-center gap-3">
138
+ <div class="w-10 h-10 rounded-lg bg-blue-500/20 flex items-center justify-center">
139
+ <i data-feather="loader" class="w-5 h-5 text-blue-400"></i>
140
+ </div>
141
+ <div>
142
+ <p class="text-2xl font-bold text-blue-400" id="inProgressCount">0</p>
143
+ <p class="text-xs text-dark-400 uppercase tracking-wider">In Progress</p>
144
+ </div>
145
+ </div>
146
+ </div>
147
+ <div class="bg-dark-900/50 backdrop-blur rounded-xl p-4 border border-dark-700/50">
148
+ <div class="flex items-center gap-3">
149
+ <div class="w-10 h-10 rounded-lg bg-green-500/20 flex items-center justify-center">
150
+ <i data-feather="check-circle" class="w-5 h-5 text-green-400"></i>
151
+ </div>
152
+ <div>
153
+ <p class="text-2xl font-bold text-green-400" id="completedCount">0</p>
154
+ <p class="text-xs text-dark-400 uppercase tracking-wider">Completed</p>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ </div>
161
+ </section>
162
+
163
+ <!-- Filters & Search -->
164
+ <section id="filtersSection" class="mb-6 animate-slide-up">
165
+ <div class="bg-dark-900/80 backdrop-blur rounded-xl p-4 border border-dark-700/50">
166
+ <div class="flex flex-col lg:flex-row gap-4">
167
+ <!-- Search -->
168
+ <div class="flex-1 relative">
169
+ <i data-feather="search" class="absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-dark-400"></i>
170
+ <input type="text" id="searchInput" placeholder="Search tasks by title, description, or assignee..."
171
+ class="w-full pl-10 pr-4 py-2.5 bg-dark-800 border border-dark-600 rounded-lg text-dark-100 placeholder-dark-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all">
172
+ </div>
173
+
174
+ <!-- Filter Dropdowns -->
175
+ <div class="flex flex-wrap gap-3">
176
+ <select id="statusFilter" class="px-4 py-2.5 bg-dark-800 border border-dark-600 rounded-lg text-dark-100 focus:outline-none focus:ring-2 focus:ring-primary-500">
177
+ <option value="">All Status</option>
178
+ <option value="pending">Pending</option>
179
+ <option value="in-progress">In Progress</option>
180
+ <option value="completed">Completed</option>
181
+ <option value="overdue">Overdue</option>
182
+ </select>
183
+
184
+ <select id="priorityFilter" class="px-4 py-2.5 bg-dark-800 border border-dark-600 rounded-lg text-dark-100 focus:outline-none focus:ring-2 focus:ring-primary-500">
185
+ <option value="">All Priorities</option>
186
+ <option value="high">High Priority</option>
187
+ <option value="medium">Medium Priority</option>
188
+ <option value="low">Low Priority</option>
189
+ </select>
190
+
191
+ <select id="assigneeFilter" class="px-4 py-2.5 bg-dark-800 border border-dark-600 rounded-lg text-dark-100 focus:outline-none focus:ring-2 focus:ring-primary-500">
192
+ <option value="">All Members</option>
193
+ </select>
194
+
195
+ <button id="resetFilters" class="px-4 py-2.5 bg-dark-700 hover:bg-dark-600 text-dark-200 rounded-lg transition-colors flex items-center gap-2">
196
+ <i data-feather="refresh-cw" class="w-4 h-4"></i>
197
+ Reset
198
+ </button>
199
+ </div>
200
+ </div>
201
+ </div>
202
+ </section>
203
+
204
+ <!-- Tasks Grid -->
205
+ <section id="tasksSection" class="animate-slide-up">
206
+ <div class="flex items-center justify-between mb-4">
207
+ <h2 class="text-xl font-semibold text-dark-100 flex items-center gap-2">
208
+ <i data-feather="layers" class="w-5 h-5 text-primary-400"></i>
209
+ All Tasks
210
+ </h2>
211
+ <div class="flex items-center gap-2">
212
+ <span class="text-sm text-dark-400" id="tasksShowing">Showing all tasks</span>
213
+ <div class="flex bg-dark-800 rounded-lg p-1">
214
+ <button id="gridView" class="p-2 rounded-md bg-dark-700 text-primary-400 transition-all">
215
+ <i data-feather="grid" class="w-4 h-4"></i>
216
+ </button>
217
+ <button id="listView" class="p-2 rounded-md text-dark-400 hover:text-dark-200 transition-all">
218
+ <i data-feather="list" class="w-4 h-4"></i>
219
+ </button>
220
+ </div>
221
+ </div>
222
+ </div>
223
+
224
+ <div id="tasksGrid" class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4">
225
+ <!-- Tasks will be dynamically inserted here -->
226
+ </div>
227
+
228
+ <!-- Empty State -->
229
+ <div id="emptyState" class="hidden text-center py-16">
230
+ <div class="w-24 h-24 mx-auto mb-4 rounded-full bg-dark-800 flex items-center justify-center">
231
+ <i data-feather="inbox" class="w-12 h-12 text-dark-500"></i>
232
+ </div>
233
+ <h3 class="text-lg font-semibold text-dark-300 mb-2">No tasks found</h3>
234
+ <p class="text-dark-500">Try adjusting your filters or search criteria</p>
235
+ </div>
236
+ </section>
237
+ </main>
238
+
239
+ <!-- Login Modal -->
240
+ <div id="loginModal" class="fixed inset-0 z-50 hidden">
241
+ <div class="absolute inset-0 bg-dark-950/80 backdrop-blur-sm" id="loginModalOverlay"></div>
242
+ <div class="relative z-10 flex items-center justify-center min-h-screen p-4">
243
+ <div class="bg-dark-900 rounded-2xl border border-dark-700 shadow-2xl w-full max-w-md overflow-hidden animate-slide-up">
244
+ <div class="p-6 border-b border-dark-700">
245
+ <div class="flex items-center justify-between">
246
+ <h2 class="text-xl font-bold text-dark-100">Sign In</h2>
247
+ <button id="closeLoginModal" class="text-dark-400 hover:text-dark-200 transition-colors">
248
+ <i data-feather="x" class="w-5 h-5"></i>
249
+ </button>
250
+ </div>
251
+ <p class="text-dark-400 text-sm mt-1">Access your tasks and team workspace</p>
252
+ </div>
253
+
254
+ <form id="loginForm" class="p-6 space-y-4">
255
+ <div>
256
+ <label class="block text-sm font-medium text-dark-300 mb-1">User ID</label>
257
+ <div class="relative">
258
+ <i data-feather="user" class="absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-dark-400"></i>
259
+ <input type="text" id="loginUserId" required
260
+ class="w-full pl-10 pr-4 py-2.5 bg-dark-800 border border-dark-600 rounded-lg text-dark-100 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"
261
+ placeholder="Enter your user ID">
262
+ </div>
263
+ </div>
264
+
265
+ <div>
266
+ <label class="block text-sm font-medium text-dark-300 mb-1">Password</label>
267
+ <div class="relative">
268
+ <i data-feather="lock" class="absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-dark-400"></i>
269
+ <input type="password" id="loginPassword" required
270
+ class="w-full pl-10 pr-4 py-2.5 bg-dark-800 border border-dark-600 rounded-lg text-dark-100 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"
271
+ placeholder="Enter your password">
272
+ </div>
273
+ </div>
274
+
275
+ <div id="loginError" class="hidden p-3 bg-red-500/10 border border-red-500/30 rounded-lg text-red-400 text-sm">
276
+ Invalid credentials. Please try again.
277
+ </div>
278
+
279
+ <button type="submit" class="w-full py-2.5 bg-primary-600 hover:bg-primary-500 text-white rounded-lg font-semibold transition-all duration-300 flex items-center justify-center gap-2">
280
+ <i data-feather="log-in" class="w-5 h-5"></i>
281
+ Sign In
282
+ </button>
283
+ </form>
284
+
285
+ <div class="px-6 pb-6">
286
+ <div class="text-center text-sm text-dark-400">
287
+ <p>Demo accounts:</p>
288
+ <p class="mt-1"><span class="text-primary-400">admin</span> / <span class="text-secondary-400">admin123</span> (Admin)</p>
289
+ <p><span class="text-primary-400">member1</span> / <span class="text-secondary-400">pass123</span> (Member)</p>
290
+ </div>
291
+ </div>
292
+ </div>
293
+ </div>
294
+ </div>
295
+
296
+ <!-- Task Detail Modal (Read-only for guests) -->
297
+ <div id="taskDetailModal" class="fixed inset-0 z-50 hidden">
298
+ <div class="absolute inset-0 bg-dark-950/80 backdrop-blur-sm" id="taskDetailOverlay"></div>
299
+ <div class="relative z-10 flex items-center justify-center min-h-screen p-4">
300
+ <div class="bg-dark-900 rounded-2xl border border-dark-700 shadow-2xl w-full max-w-2xl max-h-[90vh] overflow-hidden animate-slide-up">
301
+ <div class="p-6 border-b border-dark-700 flex items-center justify-between">
302
+ <div class="flex items-center gap-3">
303
+ <span id="taskDetailPriority" class="px-2.5 py-1 rounded-full text-xs font-semibold uppercase tracking-wide"></span>
304
+ <span id="taskDetailStatus" class="px-2.5 py-1 rounded-full text-xs font-semibold uppercase tracking-wide"></span>
305
+ </div>
306
+ <button id="closeTaskDetail" class="text-dark-400 hover:text-dark-200 transition-colors">
307
+ <i data-feather="x" class="w-5 h-5"></i>
308
+ </button>
309
+ </div>
310
+
311
+ <div class="p-6 overflow-y-auto max-h-[60vh]">
312
+ <h2 id="taskDetailTitle" class="text-2xl font-bold text-dark-100 mb-4"></h2>
313
+
314
+ <div class="grid grid-cols-2 gap-4 mb-6">
315
+ <div class="bg-dark-800 rounded-lg p-3">
316
+ <p class="text-xs text-dark-400 uppercase tracking-wider mb-1">Start Date</p>
317
+ <p id="taskDetailStartDate" class="text-dark-200 font-medium flex items-center gap-2">
318
+ <i data-feather="calendar" class="w-4 h-4 text-primary-400"></i>
319
+ </p>
320
+ </div>
321
+ <div class="bg-dark-800 rounded-lg p-3">
322
+ <p class="text-xs text-dark-400 uppercase tracking-wider mb-1">Due Date</p>
323
+ <p id="taskDetailDueDate" class="text-dark-200 font-medium flex items-center gap-2">
324
+ <i data-feather="clock" class="w-4 h-4 text-secondary-400"></i>
325
+ </p>
326
+ </div>
327
+ <div class="bg-dark-800 rounded-lg p-3">
328
+ <p class="text-xs text-dark-400 uppercase tracking-wider mb-1">Assigned To</p>
329
+ <p id="taskDetailAssignee" class="text-dark-200 font-medium flex items-center gap-2">
330
+ <i data-feather="user" class="w-4 h-4 text-primary-400"></i>
331
+ </p>
332
+ </div>
333
+ <div class="bg-dark-800 rounded-lg p-3">
334
+ <p class="text-xs text-dark-400 uppercase tracking-wider mb-1">Progress</p>
335
+ <div class="flex items-center gap-2">
336
+ <div class="flex-1 h-2 bg-dark-600 rounded-full overflow-hidden">
337
+ <div id="taskDetailProgressBar" class="h-full bg-primary-500 rounded-full transition-all"></div>
338
+ </div>
339
+ <span id="taskDetailProgressText" class="text-sm text-dark-300"></span>
340
+ </div>
341
+ </div>
342
+ </div>
343
+
344
+ <div>
345
+ <p class="text-xs text-dark-400 uppercase tracking-wider mb-2">Description</p>
346
+ <p id="taskDetailDescription" class="text-dark-300 leading-relaxed"></p>
347
+ </div>
348
+ </div>
349
+
350
+ <div id="taskDetailActions" class="p-6 border-t border-dark-700 bg-dark-800/50">
351
+ <!-- Actions will be shown based on user role -->
352
+ </div>
353
+ </div>
354
+ </div>
355
+ </div>
356
+
357
+ <!-- Daily Alert Modal -->
358
+ <div id="dailyAlertModal" class="fixed inset-0 z-50 hidden">
359
+ <div class="absolute inset-0 bg-dark-950/90 backdrop-blur-sm"></div>
360
+ <div class="relative z-10 flex items-center justify-center min-h-screen p-4">
361
+ <div class="bg-dark-900 rounded-2xl border border-primary-500/30 shadow-2xl shadow-primary-500/20 w-full max-w-lg overflow-hidden animate-slide-up">
362
+ <div class="p-6 border-b border-dark-700 bg-gradient-to-r from-primary-900/30 to-secondary-900/30">
363
+ <div class="flex items-center gap-3">
364
+ <div class="w-12 h-12 rounded-full bg-primary-500/20 flex items-center justify-center animate-pulse-slow">
365
+ <i data-feather="bell" class="w-6 h-6 text-primary-400"></i>
366
+ </div>
367
+ <div>
368
+ <h2 class="text-xl font-bold text-dark-100">Daily Task Alert</h2>
369
+ <p class="text-dark-400 text-sm" id="alertDateTime"></p>
370
+ </div>
371
+ </div>
372
+ </div>
373
+
374
+ <div class="p-6 space-y-4">
375
+ <div id="alertOverdue" class="hidden">
376
+ <div class="flex items-center gap-2 mb-2">
377
+ <i data-feather="alert-triangle" class="w-5 h-5 text-red-400"></i>
378
+ <span class="font-semibold text-red-400">Overdue Tasks</span>
379
+ <span id="overdueCount" class="px-2 py-0.5 bg-red-500/20 text-red-400 rounded-full text-xs">0</span>
380
+ </div>
381
+ <ul id="overdueList" class="space-y-2 ml-7"></ul>
382
+ </div>
383
+
384
+ <div id="alertDueToday" class="hidden">
385
+ <div class="flex items-center gap-2 mb-2">
386
+ <i data-feather="clock" class="w-5 h-5 text-yellow-400"></i>
387
+ <span class="font-semibold text-yellow-400">Due Today</span>
388
+ <span id="dueTodayCount" class="px-2 py-0.5 bg-yellow-500/20 text-yellow-400 rounded-full text-xs">0</span>
389
+ </div>
390
+ <ul id="dueTodayList" class="space-y-2 ml-7"></ul>
391
+ </div>
392
+
393
+ <div id="alertPending" class="hidden">
394
+ <div class="flex items-center gap-2 mb-2">
395
+ <i data-feather="loader" class="w-5 h-5 text-blue-400"></i>
396
+ <span class="font-semibold text-blue-400">Pending Tasks</span>
397
+ <span id="pendingCount" class="px-2 py-0.5 bg-blue-500/20 text-blue-400 rounded-full text-xs">0</span>
398
+ </div>
399
+ <ul id="pendingList" class="space-y-2 ml-7"></ul>
400
+ </div>
401
+
402
+ <div id="alertNoTasks" class="hidden text-center py-8">
403
+ <div class="w-16 h-16 mx-auto mb-4 rounded-full bg-green-500/20 flex items-center justify-center">
404
+ <i data-feather="check-circle" class="w-8 h-8 text-green-400"></i>
405
+ </div>
406
+ <h3 class="text-lg font-semibold text-green-400">All Caught Up!</h3>
407
+ <p class="text-dark-400">No pending or overdue tasks for today.</p>
408
+ </div>
409
+ </div>
410
+
411
+ <div class="p-6 border-t border-dark-700 flex gap-3">
412
+ <button id="dismissAlert" class="flex-1 py-2.5 bg-dark-700 hover:bg-dark-600 text-dark-200 rounded-lg font-medium transition-colors">
413
+ Dismiss
414
+ </button>
415
+ <button id="viewTasksFromAlert" class="flex-1 py-2.5 bg-primary-600 hover:bg-primary-500 text-white rounded-lg font-medium transition-colors">
416
+ View Tasks
417
+ </button>
418
+ </div>
419
+ </div>
420
+ </div>
421
+ </div>
422
+
423
+ <!-- Toast Notifications -->
424
+ <div id="toastContainer" class="fixed bottom-4 right-4 z-50 space-y-2"></div>
425
+
426
+ <script src="components/nav-bar.js"></script>
427
+ <script src="script.js"></script>
428
+ <script>feather.replace();</script>
429
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
430
+ </body>
431
+ </html>
script.js ADDED
@@ -0,0 +1,849 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // TaskFlow Nexus - Main Application Script
2
+
3
+ // ==================== DATA STORE ====================
4
+
5
+ const DataStore = {
6
+ // Current user session
7
+ currentUser: null,
8
+
9
+ // Users data (in production, this would be server-side)
10
+ users: [
11
+ { id: 'admin', password: 'admin123', name: 'System Administrator', role: 'admin', email: 'admin@taskflow.com' },
12
+ { id: 'member1', password: 'pass123', name: 'Alex Chen', role: 'member', email: 'alex@taskflow.com' },
13
+ { id: 'member2', password: 'pass123', name: 'Sarah Johnson', role: 'member', email: 'sarah@taskflow.com' },
14
+ { id: 'member3', password: 'pass123', name: 'Mike Ross', role: 'member', email: 'mike@taskflow.com' },
15
+ { id: 'member4', password: 'pass123', name: 'Emily Davis', role: 'member', email: 'emily@taskflow.com' },
16
+ { id: 'member5', password: 'pass123', name: 'James Wilson', role: 'member', email: 'james@taskflow.com' },
17
+ { id: 'member6', password: 'pass123', name: 'Lisa Anderson', role: 'member', email: 'lisa@taskflow.com' },
18
+ { id: 'member7', password: 'pass123', name: 'David Brown', role: 'member', email: 'david@taskflow.com' },
19
+ { id: 'member8', password: 'pass123', name: 'Anna Martinez', role: 'member', email: 'anna@taskflow.com' },
20
+ { id: 'member9', password: 'pass123', name: 'Chris Taylor', role: 'member', email: 'chris@taskflow.com' },
21
+ ],
22
+
23
+ // Tasks data
24
+ tasks: [
25
+ {
26
+ id: 'task-001',
27
+ title: 'Design System Architecture',
28
+ description: 'Create comprehensive design system including color palette, typography, and component library for the new product line.',
29
+ priority: 'high',
30
+ status: 'in-progress',
31
+ startDate: '2024-01-15',
32
+ dueDate: '2024-01-25',
33
+ assignee: 'member1',
34
+ progress: 65,
35
+ createdBy: 'admin',
36
+ createdAt: '2024-01-10'
37
+ },
38
+ {
39
+ id: 'task-002',
40
+ title: 'API Integration',
41
+ description: 'Integrate third-party payment gateway APIs and ensure secure transaction processing.',
42
+ priority: 'high',
43
+ status: 'pending',
44
+ startDate: '2024-01-20',
45
+ dueDate: '2024-01-30',
46
+ assignee: 'member2',
47
+ progress: 0,
48
+ createdBy: 'admin',
49
+ createdAt: '2024-01-12'
50
+ },
51
+ {
52
+ id: 'task-003',
53
+ title: 'User Testing Sessions',
54
+ description: 'Conduct usability testing with 20 participants and compile feedback report.',
55
+ priority: 'medium',
56
+ status: 'completed',
57
+ startDate: '2024-01-05',
58
+ dueDate: '2024-01-18',
59
+ assignee: 'member3',
60
+ progress: 100,
61
+ createdBy: 'admin',
62
+ createdAt: '2024-01-03'
63
+ },
64
+ {
65
+ id: 'task-004',
66
+ title: 'Database Optimization',
67
+ description: 'Optimize database queries and implement caching strategy for improved performance.',
68
+ priority: 'high',
69
+ status: 'in-progress',
70
+ startDate: '2024-01-16',
71
+ dueDate: '2024-01-28',
72
+ assignee: 'member4',
73
+ progress: 45,
74
+ createdBy: 'admin',
75
+ createdAt: '2024-01-14'
76
+ },
77
+ {
78
+ id: 'task-005',
79
+ title: 'Documentation Update',
80
+ description: 'Update API documentation and user guides for the latest release.',
81
+ priority: 'low',
82
+ status: 'pending',
83
+ startDate: '2024-01-22',
84
+ dueDate: '2024-02-05',
85
+ assignee: 'member5',
86
+ progress: 0,
87
+ createdBy: 'admin',
88
+ createdAt: '2024-01-15'
89
+ },
90
+ {
91
+ id: 'task-006',
92
+ title: 'Security Audit',
93
+ description: 'Perform comprehensive security audit and vulnerability assessment.',
94
+ priority: 'high',
95
+ status: 'overdue',
96
+ startDate: '2024-01-08',
97
+ dueDate: '2024-01-15',
98
+ assignee: 'member6',
99
+ progress: 30,
100
+ createdBy: 'admin',
101
+ createdAt: '2024-01-05'
102
+ },
103
+ {
104
+ id: 'task-007',
105
+ title: 'Mobile App Testing',
106
+ description: 'Test mobile application on iOS and Android devices, report bugs.',
107
+ priority: 'medium',
108
+ status: 'in-progress',
109
+ startDate: '2024-01-17',
110
+ dueDate: '2024-01-26',
111
+ assignee: 'member7',
112
+ progress: 55,
113
+ createdBy: 'admin',
114
+ createdAt: '2024-01-16'
115
+ },
116
+ {
117
+ id: 'task-008',
118
+ title: 'Marketing Campaign',
119
+ description: 'Plan and execute Q1 marketing campaign across social media channels.',
120
+ priority: 'medium',
121
+ status: 'pending',
122
+ startDate: '2024-01-25',
123
+ dueDate: '2024-02-10',
124
+ assignee: 'member8',
125
+ progress: 0,
126
+ createdBy: 'admin',
127
+ createdAt: '2024-01-18'
128
+ },
129
+ {
130
+ id: 'task-009',
131
+ title: 'Customer Support Training',
132
+ description: 'Develop training materials and conduct sessions for new support team members.',
133
+ priority: 'low',
134
+ status: 'completed',
135
+ startDate: '2024-01-10',
136
+ dueDate: '2024-01-20',
137
+ assignee: 'member9',
138
+ progress: 100,
139
+ createdBy: 'admin',
140
+ createdAt: '2024-01-08'
141
+ },
142
+ {
143
+ id: 'task-010',
144
+ title: 'Analytics Dashboard',
145
+ description: 'Build real-time analytics dashboard for monitoring key business metrics.',
146
+ priority: 'high',
147
+ status: 'in-progress',
148
+ startDate: '2024-01-12',
149
+ dueDate: '2024-01-29',
150
+ assignee: 'member1',
151
+ progress: 75,
152
+ createdBy: 'admin',
153
+ createdAt: '2024-01-10'
154
+ }
155
+ ],
156
+
157
+ // App settings
158
+ settings: {
159
+ dailyAlertTime: '09:00',
160
+ alertEnabled: true
161
+ },
162
+
163
+ // Initialize from localStorage if available
164
+ init() {
165
+ const savedUser = localStorage.getItem('taskflow_currentUser');
166
+ const savedTasks = localStorage.getItem('taskflow_tasks');
167
+ const savedSettings = localStorage.getItem('taskflow_settings');
168
+
169
+ if (savedUser) {
170
+ this.currentUser = JSON.parse(savedUser);
171
+ }
172
+ if (savedTasks) {
173
+ this.tasks = JSON.parse(savedTasks);
174
+ }
175
+ if (savedSettings) {
176
+ this.settings = JSON.parse(savedSettings);
177
+ }
178
+
179
+ this.updateOverdueStatus();
180
+ },
181
+
182
+ // Save to localStorage
183
+ save() {
184
+ localStorage.setItem('taskflow_tasks', JSON.stringify(this.tasks));
185
+ localStorage.setItem('taskflow_settings', JSON.stringify(this.settings));
186
+ },
187
+
188
+ // Update overdue status
189
+ updateOverdueStatus() {
190
+ const today = new Date().toISOString().split('T')[0];
191
+ this.tasks.forEach(task => {
192
+ if (task.dueDate < today && task.status !== 'completed') {
193
+ task.status = 'overdue';
194
+ }
195
+ });
196
+ this.save();
197
+ },
198
+
199
+ // Get user by ID
200
+ getUser(id) {
201
+ return this.users.find(u => u.id === id);
202
+ },
203
+
204
+ // Get user name
205
+ getUserName(id) {
206
+ const user = this.getUser(id);
207
+ return user ? user.name : id;
208
+ },
209
+
210
+ // Add user (admin only)
211
+ addUser(userData) {
212
+ this.users.push(userData);
213
+ },
214
+
215
+ // Update user password
216
+ updatePassword(userId, newPassword) {
217
+ const user = this.users.find(u => u.id === userId);
218
+ if (user) {
219
+ user.password = newPassword;
220
+ return true;
221
+ }
222
+ return false;
223
+ },
224
+
225
+ // Delete user
226
+ deleteUser(userId) {
227
+ this.users = this.users.filter(u => u.id !== userId);
228
+ },
229
+
230
+ // Add task
231
+ addTask(task) {
232
+ this.tasks.push(task);
233
+ this.save();
234
+ },
235
+
236
+ // Update task
237
+ updateTask(taskId, updates) {
238
+ const index = this.tasks.findIndex(t => t.id === taskId);
239
+ if (index !== -1) {
240
+ this.tasks[index] = { ...this.tasks[index], ...updates };
241
+ this.save();
242
+ return true;
243
+ }
244
+ return false;
245
+ },
246
+
247
+ // Delete task
248
+ deleteTask(taskId) {
249
+ this.tasks = this.tasks.filter(t => t.id !== taskId);
250
+ this.save();
251
+ },
252
+
253
+ // Login
254
+ login(userId, password) {
255
+ const user = this.users.find(u => u.id === userId && u.password === password);
256
+ if (user) {
257
+ this.currentUser = { ...user, password: undefined };
258
+ localStorage.setItem('taskflow_currentUser', JSON.stringify(this.currentUser));
259
+ return this.currentUser;
260
+ }
261
+ return null;
262
+ },
263
+
264
+ // Logout
265
+ logout() {
266
+ this.currentUser = null;
267
+ localStorage.removeItem('taskflow_currentUser');
268
+ },
269
+
270
+ // Check if logged in
271
+ isLoggedIn() {
272
+ return this.currentUser !== null;
273
+ },
274
+
275
+ // Check if admin
276
+ isAdmin() {
277
+ return this.currentUser && this.currentUser.role === 'admin';
278
+ }
279
+ };
280
+
281
+ // ==================== UI COMPONENTS ====================
282
+
283
+ const UI = {
284
+ // Initialize
285
+ init() {
286
+ DataStore.init();
287
+ this.bindEvents();
288
+ this.renderTasks();
289
+ this.updateStats();
290
+ this.populateAssigneeFilter();
291
+ this.checkDailyAlert();
292
+
293
+ // Check for daily alert every minute
294
+ setInterval(() => this.checkDailyAlert(), 60000);
295
+ },
296
+
297
+ // Bind events
298
+ bindEvents() {
299
+ // Login modal
300
+ document.getElementById('loginPromptBtn').addEventListener('click', () => this.showLoginModal());
301
+ document.getElementById('closeLoginModal').addEventListener('click', () => this.hideLoginModal());
302
+ document.getElementById('loginModalOverlay').addEventListener('click', () => this.hideLoginModal());
303
+ document.getElementById('loginForm').addEventListener('submit', (e) => this.handleLogin(e));
304
+
305
+ // Task detail modal
306
+ document.getElementById('closeTaskDetail').addEventListener('click', () => this.hideTaskDetail());
307
+ document.getElementById('taskDetailOverlay').addEventListener('click', () => this.hideTaskDetail());
308
+
309
+ // Filters
310
+ document.getElementById('searchInput').addEventListener('input', () => this.renderTasks());
311
+ document.getElementById('statusFilter').addEventListener('change', () => this.renderTasks());
312
+ document.getElementById('priorityFilter').addEventListener('change', () => this.renderTasks());
313
+ document.getElementById('assigneeFilter').addEventListener('change', () => this.renderTasks());
314
+ document.getElementById('resetFilters').addEventListener('click', () => this.resetFilters());
315
+
316
+ // View toggle
317
+ document.getElementById('gridView').addEventListener('click', () => this.setViewMode('grid'));
318
+ document.getElementById('listView').addEventListener('click', () => this.setViewMode('list'));
319
+
320
+ // Daily alert
321
+ document.getElementById('dismissAlert').addEventListener('click', () => this.hideDailyAlert());
322
+ document.getElementById('viewTasksFromAlert').addEventListener('click', () => {
323
+ this.hideDailyAlert();
324
+ document.getElementById('tasksSection').scrollIntoView({ behavior: 'smooth' });
325
+ });
326
+
327
+ // View tasks button
328
+ document.getElementById('viewTasksBtn').addEventListener('click', () => {
329
+ document.getElementById('tasksSection').scrollIntoView({ behavior: 'smooth' });
330
+ });
331
+ },
332
+
333
+ // Show login modal
334
+ showLoginModal() {
335
+ document.getElementById('loginModal').classList.remove('hidden');
336
+ document.getElementById('loginUserId').focus();
337
+ },
338
+
339
+ // Hide login modal
340
+ hideLoginModal() {
341
+ document.getElementById('loginModal').classList.add('hidden');
342
+ document.getElementById('loginForm').reset();
343
+ document.getElementById('loginError').classList.add('hidden');
344
+ },
345
+
346
+ // Handle login
347
+ handleLogin(e) {
348
+ e.preventDefault();
349
+ const userId = document.getElementById('loginUserId').value;
350
+ const password = document.getElementById('loginPassword').value;
351
+
352
+ const user = DataStore.login(userId, password);
353
+ if (user) {
354
+ this.hideLoginModal();
355
+ this.showToast(`Welcome back, ${user.name}!`, 'success');
356
+ this.updateUIForUser();
357
+ window.dispatchEvent(new CustomEvent('userLoggedIn', { detail: user }));
358
+ } else {
359
+ document.getElementById('loginError').classList.remove('hidden');
360
+ }
361
+ },
362
+
363
+ // Update UI for logged in user
364
+ updateUIForUser() {
365
+ const loginBtn = document.getElementById('loginPromptBtn');
366
+ if (DataStore.isLoggedIn()) {
367
+ loginBtn.innerHTML = `
368
+ <i data-feather="user-check" class="w-5 h-5"></i>
369
+ ${DataStore.currentUser.name}
370
+ `;
371
+ loginBtn.onclick = () => this.logout();
372
+ } else {
373
+ loginBtn.innerHTML = `
374
+ <i data-feather="log-in" class="w-5 h-5"></i>
375
+ Sign In to Manage
376
+ `;
377
+ loginBtn.onclick = () => this.showLoginModal();
378
+ }
379
+ feather.replace();
380
+ },
381
+
382
+ // Logout
383
+ logout() {
384
+ DataStore.logout();
385
+ this.showToast('Logged out successfully', 'info');
386
+ this.updateUIForUser();
387
+ window.dispatchEvent(new CustomEvent('userLoggedOut'));
388
+ },
389
+
390
+ // Show task detail
391
+ showTaskDetail(taskId) {
392
+ const task = DataStore.tasks.find(t => t.id === taskId);
393
+ if (!task) return;
394
+
395
+ const modal = document.getElementById('taskDetailModal');
396
+
397
+ // Set content
398
+ document.getElementById('taskDetailTitle').textContent = task.title;
399
+ document.getElementById('taskDetailDescription').textContent = task.description;
400
+
401
+ // Priority badge
402
+ const priorityEl = document.getElementById('taskDetailPriority');
403
+ priorityEl.textContent = task.priority;
404
+ priorityEl.className = `px-2.5 py-1 rounded-full text-xs font-semibold uppercase tracking-wide priority-${task.priority}`;
405
+
406
+ // Status badge
407
+ const statusEl = document.getElementById('taskDetailStatus');
408
+ statusEl.textContent = task.status.replace('-', ' ');
409
+ statusEl.className = `px-2.5 py-1 rounded-full text-xs font-semibold uppercase tracking-wide status-${task.status}`;
410
+
411
+ // Dates
412
+ document.getElementById('taskDetailStartDate').innerHTML = `
413
+ <i data-feather="calendar" class="w-4 h-4 text-primary-400"></i>
414
+ ${this.formatDate(task.startDate)}
415
+ `;
416
+ document.getElementById('taskDetailDueDate').innerHTML = `
417
+ <i data-feather="clock" class="w-4 h-4 text-secondary-400"></i>
418
+ ${this.formatDate(task.dueDate)}
419
+ `;
420
+
421
+ // Assignee
422
+ document.getElementById('taskDetailAssignee').innerHTML = `
423
+ <i data-feather="user" class="w-4 h-4 text-primary-400"></i>
424
+ ${DataStore.getUserName(task.assignee)}
425
+ `;
426
+
427
+ // Progress
428
+ document.getElementById('taskDetailProgressBar').style.width = `${task.progress}%`;
429
+ document.getElementById('taskDetailProgressText').textContent = `${task.progress}%`;
430
+
431
+ // Actions based on role
432
+ const actionsEl = document.getElementById('taskDetailActions');
433
+ if (DataStore.isLoggedIn()) {
434
+ if (DataStore.isAdmin()) {
435
+ actionsEl.innerHTML = `
436
+ <div class="flex gap-3">
437
+ <button onclick="UI.editTask('${task.id}')" class="flex-1 py-2.5 bg-primary-600 hover:bg-primary-500 text-white rounded-lg font-medium transition-colors flex items-center justify-center gap-2">
438
+ <i data-feather="edit-2" class="w-4 h-4"></i>
439
+ Edit Task
440
+ </button>
441
+ <button onclick="UI.deleteTask('${task.id}')" class="px-4 py-2.5 bg-red-600/20 hover:bg-red-600/30 text-red-400 rounded-lg font-medium transition-colors">
442
+ <i data-feather="trash-2" class="w-4 h-4"></i>
443
+ </button>
444
+ </div>
445
+ `;
446
+ } else if (DataStore.currentUser.id === task.assignee) {
447
+ actionsEl.innerHTML = `
448
+ <div class="space-y-3">
449
+ <div>
450
+ <label class="text-sm text-dark-400 mb-2 block">Update Progress</label>
451
+ <input type="range" min="0" max="100" value="${task.progress}"
452
+ onchange="UI.updateTaskProgress('${task.id}', this.value)"
453
+ class="w-full h-2 bg-dark-600 rounded-lg appearance-none cursor-pointer">
454
+ </div>
455
+ <div class="flex gap-3">
456
+ <select onchange="UI.updateTaskStatus('${task.id}', this.value)"
457
+ class="flex-1 px-4 py-2 bg-dark-700 border border-dark-600 rounded-lg text-dark-100">
458
+ <option value="pending" ${task.status === 'pending' ? 'selected' : ''}>Pending</option>
459
+ <option value="in-progress" ${task.status === 'in-progress' ? 'selected' : ''}>In Progress</option>
460
+ <option value="completed" ${task.status === 'completed' ? 'selected' : ''}>Completed</option>
461
+ </select>
462
+ </div>
463
+ </div>
464
+ `;
465
+ } else {
466
+ actionsEl.innerHTML = `
467
+ <p class="text-center text-dark-400 text-sm">
468
+ <i data-feather="lock" class="w-4 h-4 inline mr-1"></i>
469
+ You don't have permission to modify this task
470
+ </p>
471
+ `;
472
+ }
473
+ } else {
474
+ actionsEl.innerHTML = `
475
+ <div class="text-center">
476
+ <p class="text-dark-400 text-sm mb-3">Sign in to manage this task</p>
477
+ <button onclick="UI.showLoginModal(); UI.hideTaskDetail();"
478
+ class="px-6 py-2 bg-primary-600 hover:bg-primary-500 text-white rounded-lg font-medium transition-colors">
479
+ Sign In
480
+ </button>
481
+ </div>
482
+ `;
483
+ }
484
+
485
+ modal.classList.remove('hidden');
486
+ feather.replace();
487
+ },
488
+
489
+ // Hide task detail
490
+ hideTaskDetail() {
491
+ document.getElementById('taskDetailModal').classList.add('hidden');
492
+ },
493
+
494
+ // Edit task (admin)
495
+ editTask(taskId) {
496
+ // This would open an edit modal in full implementation
497
+ this.showToast('Edit functionality would open here', 'info');
498
+ },
499
+
500
+ // Delete task (admin)
501
+ deleteTask(taskId) {
502
+ if (confirm('Are you sure you want to delete this task?')) {
503
+ DataStore.deleteTask(taskId);
504
+ this.hideTaskDetail();
505
+ this.renderTasks();
506
+ this.updateStats();
507
+ this.showToast('Task deleted successfully', 'success');
508
+ }
509
+ },
510
+
511
+ // Update task progress (member)
512
+ updateTaskProgress(taskId, progress) {
513
+ DataStore.updateTask(taskId, { progress: parseInt(progress) });
514
+ document.getElementById('taskDetailProgressBar').style.width = `${progress}%`;
515
+ document.getElementById('taskDetailProgressText').textContent = `${progress}%`;
516
+ this.renderTasks();
517
+ this.updateStats();
518
+ this.showToast('Progress updated', 'success');
519
+ },
520
+
521
+ // Update task status (member)
522
+ updateTaskStatus(taskId, status) {
523
+ DataStore.updateTask(taskId, { status });
524
+ this.showTaskDetail(taskId); // Refresh modal
525
+ this.renderTasks();
526
+ this.updateStats();
527
+ this.showToast('Status updated', 'success');
528
+ },
529
+
530
+ // Render tasks
531
+ renderTasks() {
532
+ const grid = document.getElementById('tasksGrid');
533
+ const emptyState = document.getElementById('emptyState');
534
+ const viewMode = grid.classList.contains('grid') ? 'grid' : 'list';
535
+
536
+ // Get filter values
537
+ const search = document.getElementById('searchInput').value.toLowerCase();
538
+ const statusFilter = document.getElementById('statusFilter').value;
539
+ const priorityFilter = document.getElementById('priorityFilter').value;
540
+ const assigneeFilter = document.getElementById('assigneeFilter').value;
541
+
542
+ // Filter tasks
543
+ let filtered = DataStore.tasks.filter(task => {
544
+ const matchesSearch = task.title.toLowerCase().includes(search) ||
545
+ task.description.toLowerCase().includes(search) ||
546
+ DataStore.getUserName(task.assignee).toLowerCase().includes(search);
547
+ const matchesStatus = !statusFilter || task.status === statusFilter;
548
+ const matchesPriority = !priorityFilter || task.priority === priorityFilter;
549
+ const matchesAssignee = !assigneeFilter || task.assignee === assigneeFilter;
550
+
551
+ return matchesSearch && matchesStatus && matchesPriority && matchesAssignee;
552
+ });
553
+
554
+ // Update showing text
555
+ document.getElementById('tasksShowing').textContent =
556
+ filtered.length === DataStore.tasks.length
557
+ ? 'Showing all tasks'
558
+ : `Showing ${filtered.length} of ${DataStore.tasks.length} tasks`;
559
+
560
+ // Clear grid
561
+ grid.innerHTML = '';
562
+
563
+ if (filtered.length === 0) {
564
+ emptyState.classList.remove('hidden');
565
+ return;
566
+ }
567
+ emptyState.classList.add('hidden');
568
+
569
+ // Render task cards
570
+ filtered.forEach(task => {
571
+ const card = this.createTaskCard(task, viewMode);
572
+ grid.appendChild(card);
573
+ });
574
+
575
+ feather.replace();
576
+ },
577
+
578
+ // Create task card element
579
+ createTaskCard(task, viewMode) {
580
+ const div = document.createElement('div');
581
+ const isList = viewMode === 'list';
582
+
583
+ div.className = `task-card bg-dark-900 rounded-xl border border-dark-700/50 overflow-hidden cursor-pointer ${isList ? 'flex items-center p-4 gap-4' : ''}`;
584
+ div.onclick = () => this.showTaskDetail(task.id);
585
+
586
+ const assignee = DataStore.getUser(task.assignee);
587
+ const assigneeInitials = assignee ? assignee.name.split(' ').map(n => n[0]).join('') : '?';
588
+
589
+ if (isList) {
590
+ div.innerHTML = `
591
+ <div class="flex items-center gap-3 flex-1">
592
+ <div class="w-10 h-10 rounded-lg bg-primary-500/20 flex items-center justify-center flex-shrink-0">
593
+ <span class="text-primary-400 font-bold text-sm">${assigneeInitials}</span>
594
+ </div>
595
+ <div class="min-w-0">
596
+ <h3 class="font-semibold text-dark-100 truncate">${task.title}</h3>
597
+ <p class="text-sm text-dark-400 truncate">${DataStore.getUserName(task.assignee)}</p>
598
+ </div>
599
+ </div>
600
+ <div class="flex items-center gap-3">
601
+ <span class="px-2.5 py-1 rounded-full text-xs font-semibold uppercase tracking-wide priority-${task.priority}">${task.priority}</span>
602
+ <span class="px-2.5 py-1 rounded-full text-xs font-semibold uppercase tracking-wide status-${task.status}">${task.status.replace('-', ' ')}</span>
603
+ <div class="w-24">
604
+ <div class="h-1.5 bg-dark-700 rounded-full overflow-hidden">
605
+ <div class="h-full bg-primary-500 rounded-full progress-animate" style="width: ${task.progress}%"></div>
606
+ </div>
607
+ </div>
608
+ </div>
609
+ `;
610
+ } else {
611
+ div.innerHTML = `
612
+ <div class="p-5">
613
+ <div class="flex items-start justify-between mb-3">
614
+ <div class="flex gap-2">
615
+ <span class="px-2.5 py-1 rounded-full text-xs font-semibold uppercase tracking-wide priority-${task.priority}">${task.priority}</span>
616
+ <span class="px-2.5 py-1 rounded-full text-xs font-semibold uppercase tracking-wide status-${task.status}">${task.status.replace('-', ' ')}</span>
617
+ </div>
618
+ <div class="w-8 h-8 rounded-full bg-primary-500/20 flex items-center justify-center flex-shrink-0" title="${DataStore.getUserName(task.assignee)}">
619
+ <span class="text-primary-400 font-bold text-xs">${assigneeInitials}</span>
620
+ </div>
621
+ </div>
622
+ <h3 class="font-semibold text-dark-100 mb-2 line-clamp-2">${task.title}</h3>
623
+ <p class="text-sm text-dark-400 mb-4 line-clamp-2">${task.description}</p>
624
+ <div class="flex items-center justify-between text-xs text-dark-400 mb-3">
625
+ <span class="flex items-center gap-1">
626
+ <i data-feather="clock" class="w-3 h-3"></i>
627
+ ${this.formatDate(task.dueDate)}
628
+ </span>
629
+ <span>${task.progress}%</span>
630
+ </div>
631
+ <div class="h-2 bg-dark-700 rounded-full overflow-hidden">
632
+ <div class="h-full bg-gradient-to-r from-primary-500 to-secondary-500 rounded-full progress-animate" style="width: ${task.progress}%"></div>
633
+ </div>
634
+ </div>
635
+ `;
636
+ }
637
+
638
+ return div;
639
+ },
640
+
641
+ // Set view mode
642
+ setViewMode(mode) {
643
+ const grid = document.getElementById('tasksGrid');
644
+ const gridBtn = document.getElementById('gridView');
645
+ const listBtn = document.getElementById('listView');
646
+
647
+ if (mode === 'grid') {
648
+ grid.className = 'grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4';
649
+ gridBtn.classList.add('bg-dark-700', 'text-primary-400');
650
+ gridBtn.classList.remove('text-dark-400');
651
+ listBtn.classList.remove('bg-dark-700', 'text-primary-400');
652
+ listBtn.classList.add('text-dark-400');
653
+ } else {
654
+ grid.className = 'space-y-3';
655
+ listBtn.classList.add('bg-dark-700', 'text-primary-400');
656
+ listBtn.classList.remove('text-dark-400');
657
+ gridBtn.classList.remove('bg-dark-700', 'text-primary-400');
658
+ gridBtn.classList.add('text-dark-400');
659
+ }
660
+
661
+ this.renderTasks();
662
+ },
663
+
664
+ // Update statistics
665
+ updateStats() {
666
+ const today = new Date().toISOString().split('T')[0];
667
+
668
+ const total = DataStore.tasks.length;
669
+ const pending = DataStore.tasks.filter(t => t.status === 'pending').length;
670
+ const inProgress = DataStore.tasks.filter(t => t.status === 'in-progress').length;
671
+ const completed = DataStore.tasks.filter(t => t.status === 'completed').length;
672
+
673
+ document.getElementById('totalTasksCount').textContent = total;
674
+ document.getElementById('pendingTasksCount').textContent = pending;
675
+ document.getElementById('inProgressCount').textContent = inProgress;
676
+ document.getElementById('completedCount').textContent = completed;
677
+ },
678
+
679
+ // Populate assignee filter
680
+ populateAssigneeFilter() {
681
+ const select = document.getElementById('assigneeFilter');
682
+ const members = DataStore.users.filter(u => u.role === 'member');
683
+
684
+ members.forEach(member => {
685
+ const option = document.createElement('option');
686
+ option.value = member.id;
687
+ option.textContent = member.name;
688
+ select.appendChild(option);
689
+ });
690
+ },
691
+
692
+ // Reset filters
693
+ resetFilters() {
694
+ document.getElementById('searchInput').value = '';
695
+ document.getElementById('statusFilter').value = '';
696
+ document.getElementById('priorityFilter').value = '';
697
+ document.getElementById('assigneeFilter').value = '';
698
+ this.renderTasks();
699
+ },
700
+
701
+ // Check daily alert
702
+ checkDailyAlert() {
703
+ if (!DataStore.settings.alertEnabled) return;
704
+
705
+ const now = new Date();
706
+ const currentTime = now.toTimeString().slice(0, 5);
707
+
708
+ // Check if it's time for alert and we haven't shown it today
709
+ const lastAlert = localStorage.getItem('taskflow_lastAlert');
710
+ const today = now.toISOString().split('T')[0];
711
+
712
+ if (currentTime === DataStore.settings.dailyAlertTime && lastAlert !== today) {
713
+ this.showDailyAlert();
714
+ localStorage.setItem('taskflow_lastAlert', today);
715
+ }
716
+ },
717
+
718
+ // Show daily alert
719
+ showDailyAlert() {
720
+ const today = new Date().toISOString().split('T')[0];
721
+
722
+ const overdue = DataStore.tasks.filter(t => t.status === 'overdue');
723
+ const dueToday = DataStore.tasks.filter(t => t.dueDate === today && t.status !== 'completed');
724
+ const pending = DataStore.tasks.filter(t => t.status === 'pending');
725
+
726
+ // Set date/time
727
+ document.getElementById('alertDateTime').textContent = new Date().toLocaleString('en-US', {
728
+ weekday: 'long',
729
+ year: 'numeric',
730
+ month: 'long',
731
+ day: 'numeric',
732
+ hour: '2-digit',
733
+ minute: '2-digit'
734
+ });
735
+
736
+ // Overdue
737
+ const overdueSection = document.getElementById('alertOverdue');
738
+ if (overdue.length > 0) {
739
+ overdueSection.classList.remove('hidden');
740
+ document.getElementById('overdueCount').textContent = overdue.length;
741
+ document.getElementById('overdueList').innerHTML = overdue.map(t =>
742
+ `<li class="text-dark-300 text-sm">• ${t.title}</li>`
743
+ ).join('');
744
+ } else {
745
+ overdueSection.classList.add('hidden');
746
+ }
747
+
748
+ // Due today
749
+ const dueTodaySection = document.getElementById('alertDueToday');
750
+ if (dueToday.length > 0) {
751
+ dueTodaySection.classList.remove('hidden');
752
+ document.getElementById('dueTodayCount').textContent = dueToday.length;
753
+ document.getElementById('dueTodayList').innerHTML = dueToday.map(t =>
754
+ `<li class="text-dark-300 text-sm">• ${t.title}</li>`
755
+ ).join('');
756
+ } else {
757
+ dueTodaySection.classList.add('hidden');
758
+ }
759
+
760
+ // Pending
761
+ const pendingSection = document.getElementById('alertPending');
762
+ if (pending.length > 0) {
763
+ pendingSection.classList.remove('hidden');
764
+ document.getElementById('pendingCount').textContent = pending.length;
765
+ document.getElementById('pendingList').innerHTML = pending.slice(0, 5).map(t =>
766
+ `<li class="text-dark-300 text-sm">• ${t.title}</li>`
767
+ ).join('');
768
+ if (pending.length > 5) {
769
+ document.getElementById('pendingList').innerHTML +=
770
+ `<li class="text-dark-400 text-sm italic">...and ${pending.length - 5} more</li>`;
771
+ }
772
+ } else {
773
+ pendingSection.classList.add('hidden');
774
+ }
775
+
776
+ // No tasks
777
+ const noTasksSection = document.getElementById('alertNoTasks');
778
+ if (overdue.length === 0 && dueToday.length === 0 && pending.length === 0) {
779
+ noTasksSection.classList.remove('hidden');
780
+ } else {
781
+ noTasksSection.classList.add('hidden');
782
+ }
783
+
784
+ document.getElementById('dailyAlertModal').classList.remove('hidden');
785
+ },
786
+
787
+ // Hide daily alert
788
+ hideDailyAlert() {
789
+ document.getElementById('dailyAlertModal').classList.add('hidden');
790
+ },
791
+
792
+ // Show toast notification
793
+ showToast(message, type = 'info') {
794
+ const container = document.getElementById('toastContainer');
795
+ const toast = document.createElement('div');
796
+
797
+ const colors = {
798
+ success: 'bg-green-500/20 border-green-500/30 text-green-400',
799
+ error: 'bg-red-500/20 border-red-500/30 text-red-400',
800
+ info: 'bg-primary-500/20 border-primary-500/30 text-primary-400',
801
+ warning: 'bg-yellow-500/20 border-yellow-500/30 text-yellow-400'
802
+ };
803
+
804
+ const icons = {
805
+ success: 'check-circle',
806
+ error: 'x-circle',
807
+ info: 'info',
808
+ warning: 'alert-triangle'
809
+ };
810
+
811
+ toast.className = `toast-enter flex items-center gap-3 px-4 py-3 rounded-lg border ${colors[type]} shadow-lg backdrop-blur`;
812
+ toast.innerHTML = `
813
+ <i data-feather="${icons[type]}" class="w-5 h-5"></i>
814
+ <span class="font-medium">${message}</span>
815
+ `;
816
+
817
+ container.appendChild(toast);
818
+ feather.replace();
819
+
820
+ setTimeout(() => {
821
+ toast.classList.remove('toast-enter');
822
+ toast.classList.add('toast-exit');
823
+ setTimeout(() => toast.remove(), 300);
824
+ }, 4000);
825
+ },
826
+
827
+ // Format date
828
+ formatDate(dateString) {
829
+ const date = new Date(dateString);
830
+ const today = new Date();
831
+ const diffTime = date - today;
832
+ const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
833
+
834
+ let relative = '';
835
+ if (diffDays === 0) relative = ' (Today)';
836
+ else if (diffDays === 1) relative = ' (Tomorrow)';
837
+ else if (diffDays === -1) relative = ' (Yesterday)';
838
+ else if (diffDays < 0) relative = ` (${Math.abs(diffDays)} days ago)`;
839
+ else if (diffDays <= 7) relative = ` (in ${diffDays} days)`;
840
+
841
+ return date.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }) + relative;
842
+ }
843
+ };
844
+
845
+ // ==================== INITIALIZATION ====================
846
+
847
+ document.addEventListener('DOMContentLoaded', () => {
848
+ UI.init();
849
+ });
style.css CHANGED
@@ -1,28 +1,264 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom Scrollbar */
2
+ ::-webkit-scrollbar {
3
+ width: 8px;
4
+ height: 8px;
5
  }
6
 
7
+ ::-webkit-scrollbar-track {
8
+ background: #0f172a;
 
9
  }
10
 
11
+ ::-webkit-scrollbar-thumb {
12
+ background: #334155;
13
+ border-radius: 4px;
 
 
14
  }
15
 
16
+ ::-webkit-scrollbar-thumb:hover {
17
+ background: #475569;
 
 
 
 
18
  }
19
 
20
+ /* Smooth transitions */
21
+ * {
22
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
23
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
24
+ transition-duration: 150ms;
25
  }
26
+
27
+ /* Focus styles */
28
+ *:focus-visible {
29
+ outline: 2px solid #0ea5e9;
30
+ outline-offset: 2px;
31
+ }
32
+
33
+ /* Task card hover effects */
34
+ .task-card {
35
+ transform: translateY(0);
36
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
37
+ }
38
+
39
+ .task-card:hover {
40
+ transform: translateY(-4px);
41
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
42
+ }
43
+
44
+ /* Priority badges */
45
+ .priority-high {
46
+ background: rgba(239, 68, 68, 0.15);
47
+ color: #f87171;
48
+ border: 1px solid rgba(239, 68, 68, 0.3);
49
+ }
50
+
51
+ .priority-medium {
52
+ background: rgba(245, 158, 11, 0.15);
53
+ color: #fbbf24;
54
+ border: 1px solid rgba(245, 158, 11, 0.3);
55
+ }
56
+
57
+ .priority-low {
58
+ background: rgba(16, 185, 129, 0.15);
59
+ color: #34d399;
60
+ border: 1px solid rgba(16, 185, 129, 0.3);
61
+ }
62
+
63
+ /* Status badges */
64
+ .status-pending {
65
+ background: rgba(245, 158, 11, 0.15);
66
+ color: #fbbf24;
67
+ border: 1px solid rgba(245, 158, 11, 0.3);
68
+ }
69
+
70
+ .status-in-progress {
71
+ background: rgba(59, 130, 246, 0.15);
72
+ color: #60a5fa;
73
+ border: 1px solid rgba(59, 130, 246, 0.3);
74
+ }
75
+
76
+ .status-completed {
77
+ background: rgba(16, 185, 129, 0.15);
78
+ color: #34d399;
79
+ border: 1px solid rgba(16, 185, 129, 0.3);
80
+ }
81
+
82
+ .status-overdue {
83
+ background: rgba(239, 68, 68, 0.15);
84
+ color: #f87171;
85
+ border: 1px solid rgba(239, 68, 68, 0.3);
86
+ }
87
+
88
+ /* Progress bar animation */
89
+ @keyframes progressFill {
90
+ from {
91
+ width: 0%;
92
+ }
93
+ }
94
+
95
+ .progress-animate {
96
+ animation: progressFill 1s ease-out forwards;
97
+ }
98
+
99
+ /* Toast animation */
100
+ @keyframes slideInRight {
101
+ from {
102
+ transform: translateX(100%);
103
+ opacity: 0;
104
+ }
105
+ to {
106
+ transform: translateX(0);
107
+ opacity: 1;
108
+ }
109
+ }
110
+
111
+ @keyframes slideOutRight {
112
+ from {
113
+ transform: translateX(0);
114
+ opacity: 1;
115
+ }
116
+ to {
117
+ transform: translateX(100%);
118
+ opacity: 0;
119
+ }
120
+ }
121
+
122
+ .toast-enter {
123
+ animation: slideInRight 0.3s ease-out forwards;
124
+ }
125
+
126
+ .toast-exit {
127
+ animation: slideOutRight 0.3s ease-out forwards;
128
+ }
129
+
130
+ /* Glass morphism effect */
131
+ .glass {
132
+ background: rgba(15, 23, 42, 0.7);
133
+ backdrop-filter: blur(12px);
134
+ -webkit-backdrop-filter: blur(12px);
135
+ }
136
+
137
+ /* Gradient text */
138
+ .gradient-text {
139
+ background: linear-gradient(135deg, #38bdf8 0%, #e879f9 100%);
140
+ -webkit-background-clip: text;
141
+ -webkit-text-fill-color: transparent;
142
+ background-clip: text;
143
+ }
144
+
145
+ /* Loading shimmer */
146
+ @keyframes shimmer {
147
+ 0% {
148
+ background-position: -200% 0;
149
+ }
150
+ 100% {
151
+ background-position: 200% 0;
152
+ }
153
+ }
154
+
155
+ .shimmer {
156
+ background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
157
+ background-size: 200% 100%;
158
+ animation: shimmer 1.5s infinite;
159
+ }
160
+
161
+ /* Modal backdrop blur */
162
+ .modal-backdrop {
163
+ backdrop-filter: blur(8px);
164
+ -webkit-backdrop-filter: blur(8px);
165
+ }
166
+
167
+ /* Custom checkbox */
168
+ .custom-checkbox {
169
+ appearance: none;
170
+ width: 1.25rem;
171
+ height: 1.25rem;
172
+ border: 2px solid #475569;
173
+ border-radius: 0.25rem;
174
+ cursor: pointer;
175
+ position: relative;
176
+ }
177
+
178
+ .custom-checkbox:checked {
179
+ background: #0ea5e9;
180
+ border-color: #0ea5e9;
181
+ }
182
+
183
+ .custom-checkbox:checked::after {
184
+ content: '';
185
+ position: absolute;
186
+ left: 5px;
187
+ top: 1px;
188
+ width: 5px;
189
+ height: 10px;
190
+ border: solid white;
191
+ border-width: 0 2px 2px 0;
192
+ transform: rotate(45deg);
193
+ }
194
+
195
+ /* Date picker custom styles */
196
+ input[type="date"]::-webkit-calendar-picker-indicator {
197
+ filter: invert(1);
198
+ opacity: 0.6;
199
+ cursor: pointer;
200
+ }
201
+
202
+ input[type="date"]::-webkit-calendar-picker-indicator:hover {
203
+ opacity: 1;
204
+ }
205
+
206
+ /* Range slider custom styles */
207
+ input[type="range"] {
208
+ -webkit-appearance: none;
209
+ appearance: none;
210
+ background: transparent;
211
+ cursor: pointer;
212
+ }
213
+
214
+ input[type="range"]::-webkit-slider-runnable-track {
215
+ background: #334155;
216
+ height: 6px;
217
+ border-radius: 3px;
218
+ }
219
+
220
+ input[type="range"]::-webkit-slider-thumb {
221
+ -webkit-appearance: none;
222
+ appearance: none;
223
+ margin-top: -5px;
224
+ background: #0ea5e9;
225
+ height: 16px;
226
+ width: 16px;
227
+ border-radius: 50%;
228
+ transition: all 0.2s;
229
+ }
230
+
231
+ input[type="range"]::-webkit-slider-thumb:hover {
232
+ background: #38bdf8;
233
+ transform: scale(1.1);
234
+ }
235
+
236
+ /* Select dropdown arrow */
237
+ select {
238
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
239
+ background-position: right 0.5rem center;
240
+ background-repeat: no-repeat;
241
+ background-size: 1.5em 1.5em;
242
+ padding-right: 2.5rem;
243
+ -webkit-appearance: none;
244
+ appearance: none;
245
+ }
246
+
247
+ /* Responsive adjustments */
248
+ @media (max-width: 640px) {
249
+ .task-card {
250
+ margin-bottom: 1rem;
251
+ }
252
+ }
253
+
254
+ /* Print styles */
255
+ @media print {
256
+ .no-print {
257
+ display: none !important;
258
+ }
259
+
260
+ body {
261
+ background: white !important;
262
+ color: black !important;
263
+ }
264
+ }