/* Calory — Page Transitions */

/* Page navigation */
.page {
  display: none;
  opacity: 0;
}

.page.active {
  display: block;
  animation: pageSlideIn var(--page-transition) var(--ease-out) both;
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Disable animation on first load or when prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .page.active {
    animation: fadeIn var(--page-transition) ease both;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-title {
  font-family: 'Aakar', Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Dashboard-specific date display */
.dash-header {
  padding: 24px 0 16px;
}

.dash-brand {
  font-family: 'Aakar', Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.dash-greeting {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-top: 2px;
}

.dash-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
