/* Custom Base & Mobile Touch Enhancements */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

/* Safe areas */
.safe-top {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.safe-bottom {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

/* Smooth transition for views */
.tab-view {
  animation: fadeIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

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

.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Pink scrollbar styling */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #FFCCD9;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6584;
}

/* Soft Pink Glow & Micro-interactions */
.shadow-pink-glow {
  box-shadow: 0 10px 25px -5px rgba(255, 101, 132, 0.3), 0 8px 10px -6px rgba(255, 101, 132, 0.2);
}

::selection {
  background-color: #FFD6E5;
  color: #4A2835;
}

/* Button Micro-interactions */
button:active {
  transform: scale(0.96);
}

/* Number display smoothing */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}