/* Custom styles for Bills Dashboard */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

code, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Prevent auto-zooming on iPhone/iOS Safari when tapping inputs */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

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

/* Reserve space at bottom of screen on mobile for bottom navigation bar */
body {
  padding-bottom: 5.5rem;
}
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Ensure modals on smaller screens fit and scroll gracefully */
.fixed.inset-0 > div[class*="rounded-2xl"] {
  max-height: 90vh;
  overflow-y: auto;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Nav Tab States */
.nav-tab {
  color: #94a3b8;
  background-color: transparent;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #f1f5f9;
  background-color: #1e293b;
}

.nav-tab.active {
  color: #ffffff;
  background-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Month pill styles */
.month-pill {
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.month-pill.active {
  background-color: #1e293b;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Table Hover and Glass Effects */
tr.bill-row:hover td {
  background-color: rgba(30, 41, 59, 0.4);
}

/* Toast animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-show {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
