:root {
  --cream: #FFF9F0;
  --coral: #FF6B6B;
  --teal: #4ECDC4;
  --mint: #95E1D3;
  --dark-text: #2D3436;
  --status-bg-light: #E8F4FD;
  --status-bg-dark: #1e2a3a;
}

* {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}

.bg-cream {
  background-color: var(--cream);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.7);
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.5);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(75, 85, 99, 0.7);
}

/* Quick add button animation */
.quick-add-btn {
  animation: none;
}

.quick-add-btn:active {
  animation: bounce 0.3s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.9); }
}

/* Log entry animation */
.log-entry {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Category card animation */
.category-card {
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Confetti animation */
.confetti-particle {
  animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    top: -10%;
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: rotate(720deg) scale(0);
  }
}

/* Progress ring glow effect */
svg circle:last-child {
  filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.5));
}

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

/* Modal animation */
.fixed.inset-0 {
  animation: fadeIn 0.2s ease;
}

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

.fixed.inset-0 > div {
  animation: slideUp 0.3s ease;
}

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

/* Toast animation */
.animate-toast {
  animation: toastSlide 0.3s ease-out, toastFade 2.5s ease forwards;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toastFade {
  0%, 70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Status badge pulse */
.status-badge .pulse-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .text-4xl {
    font-size: 2rem;
  }
}

/* Focus states for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Gradient text fix for Safari */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Smooth transitions for dark mode */
html {
  transition: background-color 0.3s ease;
}

/* Custom selection color */
::selection {
  background-color: rgba(255, 107, 107, 0.3);
}

.dark ::selection {
  background-color: rgba(78, 205, 196, 0.3);
}