Files
school_compare/nextjs-app/components/ComparisonToast.module.css
T

188 lines
3.5 KiB
CSS
Raw Normal View History

.toastContainer {
position: fixed;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
z-index: 2000;
animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUp {
from {
transform: translate(-50%, 150%);
opacity: 0;
}
to {
transform: translate(-50%, 0);
opacity: 1;
}
}
.toastContent {
display: flex;
flex-direction: column;
gap: 0;
padding: 1rem 1.25rem;
background: var(--bg-primary, #faf7f2);
color: var(--text-primary, #2c2420);
border-radius: 16px;
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 {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
background: var(--accent-coral, #e07256);
color: white;
border-radius: 50%;
font-weight: 700;
font-size: 0.9rem;
flex-shrink: 0;
}
.toastHeader {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.toastCollapsed .toastHeader {
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: var(--text-muted, #8a7a72);
cursor: pointer;
padding: 0.25rem;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s ease;
}
.collapseBtn:hover {
color: var(--text-primary, #2c2420);
}
.schoolList {
display: flex;
flex-direction: column;
gap: 0.25rem;
margin-bottom: 0.75rem;
}
.schoolItem {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.3rem 0.5rem;
background: var(--bg-secondary, #f3ede4);
border-radius: var(--radius-sm, 4px);
}
.schoolName {
font-size: 0.8rem;
color: var(--text-primary, #2c2420);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
}
.removeSchoolBtn {
background: none;
border: none;
color: var(--text-muted, #8a7a72);
cursor: pointer;
font-size: 1rem;
padding: 0 0.25rem;
line-height: 1;
flex-shrink: 0;
transition: color 0.2s ease;
}
.removeSchoolBtn:hover {
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) {
.toastContainer {
/* Sit above the fixed bottom tab bar (56px + safe-area inset) */
bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 0.75rem);
width: calc(100% - 2rem);
}
.toastContent {
gap: 0;
border-radius: 16px;
padding: 1.25rem;
}
.toastActions {
width: 100%;
justify-content: space-between;
}
}