/* Custom Styles & Mobile Enhancements */

/* Safe area padding for mobile notch / home indicator */
.safe-bottom {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Hide scrollbar for clean horizontal pill scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* Month pills active states */
.month-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.month-pill:not(.active) {
  background-color: #f1f5f9;
  color: #475569;
}
.month-pill:not(.active):hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

/* Sortable table headers */
th.sortable {
  user-select: none;
  transition: background-color 0.15s ease;
}
th.sortable:hover {
  background-color: #f1f5f9;
}
th.sortable::after {
  content: ' ↕';
  font-size: 0.75rem;
  opacity: 0.4;
}
th.sortable.asc::after {
  content: ' ↑';
  opacity: 1;
  color: #4f46e5;
}
th.sortable.desc::after {
  content: ' ↓';
  opacity: 1;
  color: #4f46e5;
}

/* Responsive chart canvas container */
.chart-container {
  width: 100%;
  max-width: 100%;
}

/* Loading spin animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Custom Table stripes & hover */
tbody tr:hover {
  background-color: #f8fafc;
}

/* Mobile Nav Touch States */
.mobile-nav-btn {
  transition: transform 0.1s ease, color 0.2s ease;
}
.mobile-nav-btn:active {
  transform: scale(0.92);
}
