/* Material Design 3-inspired styles */
body {
  font-family: 'Roboto', sans-serif;
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 50%;
  transform: scale(1);
  animation: ripple 0.4s linear;
}

@keyframes ripple {
  to {
    transform: scale(40);
    opacity: 0;
  }
}

/* Modal Animation */
.modal-animate {
  transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.modal-animate:not(.hidden) > div {
  transform: scale(1);
}

.modal-animate.hidden > div {
  transform: scale(0.8);
  opacity: 0;
}

/* Section Animation */
.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Task/Habit Hover */
.task-item:hover, .habit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Toast Animation */
.toast-animate {
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s;
}

.toast-animate:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

.toast-animate.hidden {
  transform: translateY(20px);
  opacity: 0;
}

/* Progress Bar */
#progressBar {
  transition: width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}