body {
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 1s ease-in-out;
}

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

.btn-effect {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-effect:hover::before {
  width: 100px;
  height: 100px;
}

.btn-effect:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-effect:active {
  transform: translateY(0) scale(0.98);
}

.btn-effect:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.btn-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-effect:not(:hover)::after {
  animation: subtlePulse 0.5s ease-out;
}

@keyframes subtlePulse {
  0% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1); }
}

section {
  animation: slideUp 0.8s ease-out;
}

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

header {
  animation: slideDown 0.6s ease-out;
}

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

footer {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

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

.p-4.border.rounded.shadow-sm {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-4.border.rounded.shadow-sm:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}



.bg-gray-50 {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  background-attachment: fixed;
}

.text-4xl.font-semibold {
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.6);
  }
}

/* Enhanced note styling */
.bg-yellow-200, .bg-pink-200, .bg-blue-200, .bg-green-200, .bg-purple-200, .bg-orange-200 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.bg-yellow-200:hover, .bg-pink-200:hover, .bg-blue-200:hover, .bg-green-200:hover, .bg-purple-200:hover, .bg-orange-200:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Heart button animation */
.heartBtn {
  transition: all 0.2s ease;
}

.heartBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.heartBtn:active {
  transform: scale(0.95);
}

/* Delete button animation */
.deleteBtn {
  transition: all 0.2s ease;
}

.deleteBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.deleteBtn:active {
  transform: scale(0.95);
}

/* Hidden class for modal visibility */
.hidden {
  display: none !important;
}

/* Make footer stick to bottom */
body, html {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  background-color: #f9fafb;
  padding: 1.5rem 0;
  text-align: center;
}
