/* MxPay Android 14 / Material 3 Lightweight Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --android-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --android-bg: #f8fafc;
  --android-surface: #ffffff;
  --android-surface-variant: #f1f5f9;
  --android-primary: #2563eb;
  --android-primary-container: #dbeafe;
  --android-on-primary-container: #1e40af;
  --android-secondary: #475569;
  --android-text-main: #0f172a;
  --android-text-muted: #64748b;
  --android-border: #e2e8f0;
  --android-radius-sm: 12px;
  --android-radius-md: 18px;
  --android-radius-lg: 24px;
  --android-radius-xl: 28px;
  --android-radius-full: 9999px;
  --android-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --android-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --android-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08);
}

body {
  font-family: var(--android-font);
  background-color: var(--android-bg);
  color: var(--android-text-main);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* Touch & Haptic Micro-Interactions */
.android-ripple {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.android-ripple:active {
  transform: scale(0.97);
}

.android-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--android-radius-full);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.android-btn:active {
  transform: scale(0.96);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

/* Material 3 Card Container */
.android-card {
  background: var(--android-surface);
  border-radius: var(--android-radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--android-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.android-card:hover {
  box-shadow: var(--android-shadow-md);
}

.android-card-interactive:active {
  transform: scale(0.98);
}

/* Stat Tile Android Style */
.android-stat-card {
  background-color: var(--android-surface, #ffffff);
  border-radius: var(--android-radius-lg);
  padding: 0.875rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  overflow: hidden;
}

.android-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Chips / Status Pills */
.android-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--android-radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.android-chip-success {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.android-chip-pending {
  background-color: #fef9c3;
  color: #a16207;
  border: 1px solid rgba(202, 138, 4, 0.2);
}

.android-chip-failed {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.android-chip-processing {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* Android Mobile Bottom Navigation Bar */
.android-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

.android-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.2rem 0.4rem;
  border-radius: var(--android-radius-md);
  position: relative;
}

.android-nav-icon-container {
  width: 36px;
  height: 22px;
  border-radius: var(--android-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1px;
}

.android-nav-item.active .android-nav-icon-container {
  background-color: #dbeafe;
  color: #2563eb;
  width: 44px;
}

.android-nav-item.active {
  color: #1e40af;
  font-weight: 700;
}

.android-nav-item:active .android-nav-icon-container {
  transform: scale(0.9);
}

/* Smooth GPU Animations */
.android-fade-in {
  animation: androidFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Mobile Bottom Sheet Modal */
.android-sheet {
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.android-sheet-handle {
  width: 36px;
  height: 4px;
  background-color: #cbd5e1;
  border-radius: 4px;
  margin: 10px auto 16px auto;
}

/* Custom Scrollbar for Sleek Feel */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for mobile swipe tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Google Translate Custom Clean Overrides */
.goog-te-banner-frame,
.goog-te-banner,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}
body {
  top: 0px !important;
  position: static !important;
}
.goog-te-combo {
  display: none !important;
}
#google_translate_element {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
