/* My Money Goals — Custom Styles & Mobile PWA Optimization */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --primary-navy: #0f172a;
  --accent-emerald: #10b981;
  --accent-gold: #d97706;
  --accent-blue: #2563eb;
  --accent-purple: #9333ea;
  --accent-rose: #e11d48;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

.tabular-nums, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.55);
}

/* Smooth view transitions */
.view-section {
  animation: fadeIn 0.15s ease-out;
}

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

/* Modal animation */
.modal-overlay {
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safe Area Padding for Mobile Bottom Bar & iPhone Notch */
.safe-area-pb {
  padding-bottom: max(10px, env(safe-area-inset-bottom, 12px));
}

/* Receipt / calculation ticket styling */
.ticket-edge {
  background-image: radial-gradient(circle at 10px 0, transparent 8px, #ffffff 8.5px);
}
