/* Skeleton loading animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

/* Page transition */
#app { transition: opacity 0.15s ease; }
#app.loading { opacity: 0.5; }

/* Sparkline sizing */
.sparkline-container { width: 100%; height: 2.5rem; }
.sparkline-container canvas { width: 100% !important; height: 100% !important; }

/* Tab active */
.tab-btn.active {
  color: #f8fafc;
  border-bottom-color: #3b82f6;
}

/* Retention heatmap */
.retention-cell {
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 3.5rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Number animation */
.stat-num { transition: opacity 0.2s ease; }

/* Card hover */
.app-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Mobile tabs scroll */
.tabs-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
