/* =========================================
   UNIVERSAL APP BACKGROUND (SpendShell)
   ========================================= */
:root { color-scheme: only light; }

body {
  background: linear-gradient(to bottom, #9ba0a8, #858b96);
  color: #111;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================
   FIXED GLASS NAV BAR WRAPPER
   ========================================= */
.nav-wrap {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999; /* make sure it stays on top of everything */
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none; /* only allow clicks through its inner nav */
}

/* Gradient fade behind nav */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 40;
}

/* =========================================
   GLASS NAV BAR
   ========================================= */
.glass-nav {
  pointer-events: all;
  max-width: 370px;
  width: fit-content;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  transition: box-shadow .25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1rem;
}

/* Shadow on scroll */
#topNav.scrolled .glass-nav {
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* =========================================
   NAV TABS
   ========================================= */
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .4rem .75rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.70;
  transition: opacity .25s ease, background .25s ease;
}

.nav-tab:hover {
  opacity: 1;
}

.nav-label {
  font-size: 0.80rem;
  color: #111;
  font-weight: 400;
  line-height: 1.1;
}

/* ACTIVE TAB */
.nav-tab.active {
  background: rgba(255,255,255,0.90);
  opacity: 1 !important;
}

.nav-tab.active .nav-label {
  color: #111;
  font-weight: 600;
}

/* =========================================
   PAGE OFFSET UNDER FIXED NAV
   ========================================= */
.nav-offset {
  padding-top: 6rem !important; /* ensures no overlap, slightly more space */
}

/* =========================================
   EDIT MODE (highlight active)
   ========================================= */
body.editing .nav-tab.active {
  background: #facc15 !important;
  color: #111 !important;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.45) !important;
}

/* =========================================
   LABELS / TEXT FIXES
   ========================================= */
#deviceLabel,
#claimToNote {
  color: #111 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin-left: 0.25rem;
}

/* =========================================
   REUSABLE FROSTED ELEMENTS
   ========================================= */
.glass-card {
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.glass-section {
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 0.75rem;
  padding: 1rem;
}

/* =========================================
   STATUS BADGES
   ========================================= */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  backdrop-filter: blur(6px);
}

.badge-pending {
  background: rgba(255,165,0,0.25);
  color: #b45309;
  border: 1px solid rgba(255,165,0,0.35);
}
.badge-paid {
  background: rgba(16,185,129,0.25);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.35);
}
.badge-rejected {
  background: rgba(239,68,68,0.25);
  color: #7f1d1d;
  border: 1px solid rgba(239,68,68,0.35);
}
