Soma / frontend /src /components /CognitiveTimeline.css
Komalpreet Kaur
feat: implement memory consolidation service with sleep cycle, add frontend visualization components, and integrate backend database orchestration.
2e9dd8e unverified
/* CognitiveTimeline.css - Refined for Scientific Elegance */
.timeline-container {
display: flex;
flex-direction: column;
gap: 16px;
padding: 0;
}
.timeline-row {
display: flex;
gap: 24px;
position: relative;
animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.timeline-row::before {
content: '';
position: absolute;
left: 65px; /* Alignment with dot */
top: 12px;
bottom: -24px;
width: 1px;
background-color: #eee;
z-index: 1;
}
.timeline-row:last-child::before {
display: none;
}
.timeline-time {
width: 55px;
font-size: 0.65rem;
color: #bbb;
font-family: var(--font-mono);
padding-top: 4px;
text-align: right;
}
.timeline-dot-wrap {
width: 20px;
display: flex;
justify-content: center;
position: relative;
z-index: 2;
}
.timeline-dot {
width: 8px;
height: 8px;
border-radius: 50%;
margin-top: 8px;
background-color: #ccc;
box-shadow: 0 0 0 4px white;
}
.timeline-content {
flex: 1;
padding: 0 0 16px 0;
transition: transform 0.3s ease;
}
.timeline-content:hover {
transform: translateX(8px);
}
.phase-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.phase-icon {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.phase-icon .material-icons {
font-size: 18px;
}
.phase-title {
font-size: 0.7rem;
font-weight: 700;
color: #1a1a1a;
letter-spacing: -0.01em;
}
.phase-desc {
font-size: 0.8rem;
color: #666;
line-height: 1.5;
}
.timeline-empty {
color: #bbb;
font-size: 0.9rem;
text-align: center;
padding: 80px 0;
font-weight: 500;
}
@keyframes slideInRight {
from { opacity: 0; transform: translateX(20px); }
to { opacity: 1; transform: translateX(0); }
}