@@ -41,14 +41,14 @@ export default function ArchivedTasksModal({ archivedTasks, onClose }: ArchivedT
{task.title}
- #{task.topic} • Due: {task.due_date}
+ #{task.topic} - Due: {task.due_date}
))}
diff --git a/src/lib/components/TaskCard.module.css b/src/lib/components/TaskCard.module.css
index 072c881..1c3115f 100644
--- a/src/lib/components/TaskCard.module.css
+++ b/src/lib/components/TaskCard.module.css
@@ -1,19 +1,19 @@
-/* Task Card Container - Matching Form UI */
+/* Light White Component Task Card */
.cardContainer {
padding: 1.25rem;
border-radius: 0.875rem;
- border: 1px solid #334155;
- background-color: #1e293b;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+ border: 1px solid #e2e8f0;
+ background-color: #ffffff;
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
gap: 0.875rem;
- transition: transform 0.2s ease, border-color 0.2s ease;
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cardContainer:hover {
transform: translateY(-2px);
- border-color: #475569;
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.archiving {
@@ -31,15 +31,15 @@
.title {
font-weight: 700;
font-size: 1.125rem;
- color: #f8fafc;
+ color: #0f172a;
margin: 0;
line-height: 1.4;
}
-/* Unified Status Badges with Subtle Tints */
+/* Status Badge Colors (Green, Orange, Blue) */
.badge {
font-size: 0.75rem;
- font-weight: 600;
+ font-weight: 700;
padding: 0.25rem 0.625rem;
border-radius: 9999px;
text-transform: uppercase;
@@ -47,28 +47,31 @@
white-space: nowrap;
}
+/* Green Status: Complete */
.statusComplete {
- background-color: rgba(16, 185, 129, 0.12);
- color: #34d399;
- border: 1px solid rgba(52, 211, 153, 0.25);
+ background-color: #dcfce7;
+ color: #15803d;
+ border: 1px solid #86efac;
}
+/* Orange Status: In-Progress */
.statusInProgress {
- background-color: rgba(245, 158, 11, 0.12);
- color: #fbbf24;
- border: 1px solid rgba(251, 191, 36, 0.25);
+ background-color: #ffedd5;
+ color: #c2410c;
+ border: 1px solid #fdba74;
}
+/* Blue Status: Todo */
.statusTodo {
- background-color: rgba(59, 130, 246, 0.12);
- color: #60a5fa;
- border: 1px solid rgba(96, 165, 250, 0.25);
+ background-color: #dbeafe;
+ color: #1d4ed8;
+ border: 1px solid #93c5fd;
}
/* Description Text */
.description {
font-size: 0.875rem;
- color: #94a3b8;
+ color: #475569;
margin: 0;
line-height: 1.5;
}
@@ -78,9 +81,9 @@
display: flex;
align-items: center;
justify-content: space-between;
- border-top: 1px solid #334155;
+ border-top: 1px solid #f1f5f9;
padding-top: 0.75rem;
- color: #94a3b8;
+ color: #64748b;
font-size: 0.8125rem;
}
@@ -91,28 +94,23 @@
}
.topicTag {
- background-color: #0f172a;
- color: #93c5fd;
+ background-color: #f1f5f9;
+ color: #2563eb;
font-weight: 600;
padding: 0.125rem 0.5rem;
border-radius: 0.375rem;
- border: 1px solid #334155;
+ border: 1px solid #cbd5e1;
}
+/* Red Status: Overdue */
.overdueBadge {
- background-color: rgba(239, 68, 68, 0.15);
- color: #f87171;
- border: 1px solid rgba(248, 113, 113, 0.3);
+ background-color: #fee2e2;
+ color: #b91c1c;
+ border: 1px solid #fca5a5;
padding: 0.15rem 0.5rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 700;
- animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
-}
-
-@keyframes pulse {
- 0%, 100% { opacity: 1; }
- 50% { opacity: 0.5; }
}
/* Action Buttons */
@@ -126,11 +124,11 @@
.btnEdit {
padding: 0.375rem 0.875rem;
border-radius: 0.5rem;
- background-color: #334155;
- color: #f8fafc;
+ background-color: #f8fafc;
+ color: #0f172a;
font-size: 0.8125rem;
font-weight: 600;
- border: 1px solid #475569;
+ border: 1px solid #cbd5e1;
cursor: pointer;
transition: all 0.2s ease;
}
@@ -144,18 +142,18 @@
.btnArchive {
padding: 0.375rem 0.875rem;
border-radius: 0.5rem;
- background-color: #334155;
- color: #f87171;
+ background-color: #f8fafc;
+ color: #dc2626;
font-size: 0.8125rem;
font-weight: 600;
- border: 1px solid #475569;
+ border: 1px solid #cbd5e1;
cursor: pointer;
transition: all 0.2s ease;
}
.btnArchive:hover {
- background-color: #ef4444;
- border-color: #ef4444;
+ background-color: #dc2626;
+ border-color: #dc2626;
color: #ffffff;
}
diff --git a/src/lib/components/TaskEditModal.module.css b/src/lib/components/TaskEditModal.module.css
index 814483c..befa7f1 100644
--- a/src/lib/components/TaskEditModal.module.css
+++ b/src/lib/components/TaskEditModal.module.css
@@ -6,9 +6,9 @@
display: flex;
align-items: center;
justify-content: center;
- background-color: rgba(15, 23, 42, 0.7);
+ background-color: rgba(15, 23, 42, 0.6);
padding: 1rem;
- backdrop-filter: blur(6px);
+ backdrop-filter: blur(4px);
}
/* Modal Dialog Box */
@@ -16,10 +16,10 @@
width: 100%;
max-width: 32rem;
border-radius: 0.875rem;
- background-color: #1e293b;
- border: 1px solid #334155;
+ background-color: #ffffff;
+ border: 1px solid #e2e8f0;
padding: 1.5rem;
- box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
/* Modal Header */
@@ -33,7 +33,7 @@
.title {
font-size: 1.25rem;
font-weight: 700;
- color: #f8fafc;
+ color: #0f172a;
margin: 0;
}
@@ -41,13 +41,13 @@
background: none;
border: none;
font-size: 1.25rem;
- color: #94a3b8;
+ color: #64748b;
cursor: pointer;
transition: color 0.2s;
}
.btnClose:hover {
- color: #f8fafc;
+ color: #0f172a;
}
/* Form Layout */
@@ -72,7 +72,7 @@
display: block;
font-size: 0.8125rem;
font-weight: 600;
- color: #cbd5e1;
+ color: #334155;
margin-bottom: 0.375rem;
}
@@ -81,17 +81,17 @@
padding: 0.625rem 0.875rem;
font-size: 0.875rem;
border-radius: 0.5rem;
- border: 1px solid #334155;
- background-color: #0f172a;
- color: #f8fafc;
+ border: 1px solid #cbd5e1;
+ background-color: #f8fafc;
+ color: #0f172a;
outline: none;
box-sizing: border-box;
transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
+ border-color: #2563eb;
+ box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
/* Footer Buttons */
@@ -106,17 +106,16 @@
padding: 0.5rem 1rem;
font-size: 0.875rem;
border-radius: 0.5rem;
- border: 1px solid #334155;
- background: #0f172a;
- color: #cbd5e1;
+ border: 1px solid #cbd5e1;
+ background: #f8fafc;
+ color: #334155;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
.btnCancel:hover {
- background-color: #334155;
- color: #f8fafc;
+ background-color: #e2e8f0;
}
.btnSave {
@@ -129,7 +128,7 @@
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
- box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
+ box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.btnSave:hover {
diff --git a/src/lib/components/TaskEditModal.tsx b/src/lib/components/TaskEditModal.tsx
index 9b65647..48bf972 100644
--- a/src/lib/components/TaskEditModal.tsx
+++ b/src/lib/components/TaskEditModal.tsx
@@ -33,7 +33,7 @@ export default function TaskEditModal({ task, onClose }: TaskEditModalProps) {
Edit Task #{task.id}
-
+