/* Design Tokens & CSS Custom Variables aligned with Stitch Premium System */
:root {
  --primary: #005c55;
  --primary-container: #0f766e;
  --secondary: #416900;
  --secondary-container: #acf847;
  --surface: #fff8f5;
  --surface-container-low: #faf2ee;
  --surface-container-lowest: #ffffff;
  --outline-variant: #bdc9c6;
  --on-surface: #1e1b19;
  --on-surface-variant: #3e4947;
}

body {
  font-family: 'DM Sans', 'Space Grotesk', sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  overflow-x: hidden;
}

/* Premium Technical Utilities */
.custom-scrollbar::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f4ece8;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--primary);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: fit-content;
  animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* SPA Screen Views Transition */
.page-view {
  display: none;
  opacity: 0;
}

.page-view.active {
  display: block;
  animation: viewFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeIn {
  to {
    opacity: 1;
  }
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* Accordion Smooth Height Transition */
.accordion-content {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.accordion-content.open {
  max-height: 600px;
  opacity: 1;
}

.icon-rotate {
  transition: transform 0.3s ease;
}

.active .icon-rotate {
  transform: rotate(180deg);
}

/* Toast alert bottom-right container */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 4px 4px 0px 0px var(--primary);
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast.show {
  transform: translateY(0);
}
