/* Sidebar smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sidebar hover effects */
.sidebar-item-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item-hover:hover {
  transform: translateX(2px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
}

/* Enhanced tooltips */
.enhanced-tooltip {
  backdrop-filter: blur(8px);
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.enhanced-tooltip::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(17, 24, 39, 0.95);
  border-left: 1px solid rgba(75, 85, 99, 0.3);
  border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

/* Sidebar width transition enhancements */
.sidebar-container {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease-in-out;
}

.sidebar-container:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Icon animations */
.sidebar-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Text reveal animations */
.text-reveal {
  overflow: hidden;
  white-space: nowrap;
}

.text-reveal-enter {
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.text-reveal-exit {
  animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
    max-width: 200px;
  }
  to {
    opacity: 0;
    transform: translateX(-15px);
    max-width: 0;
  }
}

/* Button pulse effect */
.btn-pulse:hover {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Smooth transitions for all elements */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}