:root {
  --primary-color: #006f67;
  --secondary-color: #6ebf4d;
  --primary-light: rgba(0, 111, 103, 0.1);
  --secondary-light: rgba(110, 191, 77, 0.1);
  --text-color: #333;
  --text-light: #666;
  --background-color: #f9fafb;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --radius: 8px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.notification-badge {
  animation: pulse 2s infinite;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-value {
  display: inline-block;
  animation: countUp 1s ease-out forwards;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 111, 103, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 111, 103, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 111, 103, 0);
  }
}

#new-activity-btn {
  animation: glow 2s infinite;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.date-change-animation {
  animation: fadeSlide 0.5s ease forwards;
}

.activity-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px) translateX(5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sidebar li.active {
  position: relative;
  overflow: hidden;
}

.sidebar li.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.activity-card.completed {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.typing-effect {
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

.fade-in-page {
  animation: fadeInPage 1s ease;
}

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

.app-container {
  opacity: 0;
  animation: fadeInPage 0.5s ease forwards;
}

header {
  opacity: 0;
  animation: fadeInPage 0.5s 0.2s ease forwards;
}

.sidebar {
  opacity: 0;
  animation: fadeInPage 0.5s 0.4s ease forwards;
}

main {
  opacity: 0;
  animation: fadeInPage 0.5s 0.6s ease forwards;
}

@keyframes datePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    color: #006f67;
  }
  100% {
    transform: scale(1);
  }
}

.date-pulse {
  animation: datePulse 0.3s ease;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 111, 103, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 111, 103, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 111, 103, 0);
  }
}

.pulse-animation {
  animation: pulse 1s infinite;
}
