/* VoidPay — Global Styles */

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Balance hero gradient */
.balance-hero {
  background: linear-gradient(135deg, #1a56db 0%, #1e40af 50%, #1d4ed8 100%);
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.35);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Table wrapper */
.table-wrapper {
  overflow-x: auto;
}

/* Smooth transitions */
[id^="tab"] {
  transition: opacity 0.15s ease;
}

/* Transaction item hover */
.tx-item {
  transition: background-color 0.1s ease;
}
.tx-item:hover {
  background-color: rgba(249, 250, 251, 0.8);
}
.dark .tx-item:hover {
  background-color: rgba(31, 41, 55, 0.6);
}

/* Mobile bottom nav safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  nav.fixed.bottom-0 {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Login screen */
#loginScreen {
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Toast animation */
#toast.show {
  animation: slideIn 0.2s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* Number formatting */
.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Fade in app on login */
#app.fade-in {
  animation: fadeInApp 0.3s ease;
}

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

/* Mobile padding for fixed nav */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Pulse dot for live balance */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}
