diff --git a/nextjs-app/components/ComparisonToast.module.css b/nextjs-app/components/ComparisonToast.module.css index 0cf4a6a..6223860 100644 --- a/nextjs-app/components/ComparisonToast.module.css +++ b/nextjs-app/components/ComparisonToast.module.css @@ -23,18 +23,12 @@ flex-direction: column; gap: 0; padding: 1rem 1.25rem; - background: var(--bg-accent, #1a1612); - color: var(--text-inverse, #faf7f2); + background: var(--bg-primary, #faf7f2); + color: var(--text-primary, #2c2420); border-radius: 16px; - box-shadow: 0 10px 30px rgba(26, 22, 18, 0.3); - border: 1px solid rgba(255, 255, 255, 0.1); - min-width: 260px; -} - -.toastInfo { - display: flex; - align-items: center; - gap: 0.75rem; + box-shadow: 0 8px 32px rgba(44, 36, 32, 0.18), 0 2px 8px rgba(44, 36, 32, 0.08); + border: 1px solid var(--border-color, #e8ddd4); + min-width: 280px; } .toastBadge { @@ -48,38 +42,7 @@ border-radius: 50%; font-weight: 700; font-size: 0.9rem; -} - -.toastText { - font-weight: 500; - font-size: 0.95rem; - white-space: nowrap; -} - -.toastActions { - display: flex; - align-items: center; - gap: 0.75rem; - padding-top: 0.25rem; - border-top: 1px solid rgba(255, 255, 255, 0.1); -} - - -.btnCompare { - background: white; - color: var(--bg-accent, #1a1612); - padding: 0.6rem 1.25rem; - border-radius: 25px; - font-weight: 600; - font-size: 0.9rem; - text-decoration: none; - transition: transform 0.2s ease, background-color 0.2s ease; - white-space: nowrap; -} - -.btnCompare:hover { - transform: translateY(-1px); - background: var(--bg-secondary, #f3ede4); + flex-shrink: 0; } .toastHeader { @@ -93,10 +56,19 @@ margin-bottom: 0; } +.toastTitle { + display: flex; + align-items: center; + gap: 0.5rem; + font-weight: 600; + font-size: 0.875rem; + color: var(--text-primary, #2c2420); +} + .collapseBtn { background: none; border: none; - color: rgba(250, 247, 242, 0.6); + color: var(--text-muted, #8a7a72); cursor: pointer; padding: 0.25rem; line-height: 1; @@ -107,16 +79,7 @@ } .collapseBtn:hover { - color: var(--text-inverse, #faf7f2); -} - -.toastTitle { - display: flex; - align-items: center; - gap: 0.5rem; - font-weight: 600; - font-size: 0.875rem; - color: var(--text-inverse, #faf7f2); + color: var(--text-primary, #2c2420); } .schoolList { @@ -124,8 +87,6 @@ flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; - max-height: 120px; - overflow-y: auto; } .schoolItem { @@ -133,14 +94,14 @@ align-items: center; justify-content: space-between; gap: 0.5rem; - padding: 0.25rem 0.375rem; - background: rgba(255, 255, 255, 0.08); + padding: 0.3rem 0.5rem; + background: var(--bg-secondary, #f3ede4); border-radius: var(--radius-sm, 4px); } .schoolName { font-size: 0.8rem; - color: var(--text-inverse, #faf7f2); + color: var(--text-primary, #2c2420); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -150,7 +111,7 @@ .removeSchoolBtn { background: none; border: none; - color: rgba(250, 247, 242, 0.5); + color: var(--text-muted, #8a7a72); cursor: pointer; font-size: 1rem; padding: 0 0.25rem; @@ -160,7 +121,50 @@ } .removeSchoolBtn:hover { - color: var(--text-inverse, #faf7f2); + color: var(--accent-coral, #e07256); +} + +.toastActions { + display: flex; + align-items: center; + gap: 0.75rem; + padding-top: 0.625rem; + border-top: 1px solid var(--border-color, #e8ddd4); +} + +.btnClearAll { + background: none; + border: none; + color: var(--text-muted, #8a7a72); + font-size: 0.85rem; + font-weight: 500; + cursor: pointer; + padding: 0.5rem 0.25rem; + transition: color 0.2s ease; + white-space: nowrap; +} + +.btnClearAll:hover { + color: var(--accent-coral, #e07256); +} + +.btnCompare { + flex: 1; + background: var(--accent-coral, #e07256); + color: white; + padding: 0.6rem 1.25rem; + border-radius: 25px; + font-weight: 600; + font-size: 0.9rem; + text-decoration: none; + text-align: center; + transition: transform 0.2s ease, background-color 0.2s ease; + white-space: nowrap; +} + +.btnCompare:hover { + transform: translateY(-1px); + background: var(--accent-coral-dark, #c9614a); } @media (max-width: 640px) { @@ -179,4 +183,4 @@ width: 100%; justify-content: space-between; } -} \ No newline at end of file +} diff --git a/nextjs-app/components/ComparisonToast.tsx b/nextjs-app/components/ComparisonToast.tsx index b7325d9..05c79ed 100644 --- a/nextjs-app/components/ComparisonToast.tsx +++ b/nextjs-app/components/ComparisonToast.tsx @@ -62,7 +62,7 @@ export function ComparisonToast() { ))}