/* PaisaFlow Elite: Financial Redesign (styles.css) - v2.0 Production */

:root {
  --bg-color: #060b13;
  --accent-color: #8b5cf6;
  --primary-color: #8b5cf6; 
  --secondary-color: #ec4899;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --surface-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.6);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-bg: rgba(11, 29, 58, 0.9);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Outfit', sans-serif;
}

body {
  margin: 0; padding: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  height: 100vh;
  width: 100vw;
}

.container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  height: 100%;
}

/* NAVBAR & FAB */
/* THE ELITE FLOATING PILL NAVBAR */
.navbar-container {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 450px;
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 68px;
  width: 100%;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.4;
  transition: 0.3s var(--ease-premium);
  cursor: pointer;
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
  padding-top: 2px;
}

.nav-item.active { 
  opacity: 1; 
  color: var(--accent-color);
  transform: translateY(-2px);
}

.nav-item i { font-size: 18px; }
.nav-item span { 
  font-size: 8.5px; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.8px;
}

/* THE FLOATING CENTER FAB (DOCK-STYLE) */
.fab-container {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5001;
}

.fab {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #4c1d95 100%);
  border-radius: 50%;
  border: 5px solid #060b13;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
  transition: 0.3s var(--ease-premium);
}
.fab i { font-size: 24px; }
.fab:active { transform: scale(0.9) translateX(-10%); } /* X adjustment for center transform */

.fab:active { transform: scale(0.85); }

/* GLASSMORPHISM 2.0 */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-premium);
}

.stat-card {
  padding: 24px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}

.stat-card.highlight {
  background: linear-gradient(135deg, var(--accent-color) 0%, #4c1d95 100%);
  color: var(--text-primary); border: none;
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

/* SWIPE SYSTEM FOUNDATION */
.swipe-viewport {
  width: 100%;
  height: calc(100% - 170px);
  overflow: hidden;
  position: relative;
}

.swipe-container {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s var(--ease-premium);
  will-change: transform;
}

.swipe-page {
  width: 33.333%;
  height: 100%;
  padding: 0 24px;
}

/* AUTH & MODALS */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
  display: none; justify-content: center; align-items: center; z-index: 2000; padding: 24px;
}

.modal.glass { border-radius: 36px; animation: modalIn 0.5s var(--ease-premium); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } }

/* TYPOGRAPHY & FORMS */
h1, h2, h3, h4 { letter-spacing: -0.5px; }

input, select, textarea {
  width: 100%; background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px;
  padding: 16px; color: white; font-size: 16px; transition: 0.3s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
input:focus { border-color: var(--accent-color); background: rgba(255,255,255,0.06) !important; outline: none; }
::placeholder { color: rgba(255,255,255,0.3); }

.pill-btn {
  padding: 20px 24px; border-radius: 22px; border: none; font-weight: 800;
  font-size: 15px; cursor: pointer; transition: 0.3s var(--ease-premium);
}
.pill-btn.highlight { background: var(--accent-color); color: var(--bg-color); }
.pill-btn:active { transform: scale(0.96); }

/* AVATAR SYSTEM */
.profile-pic { width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.avatar-fallback { width: 100%; height: 100%; border-radius: inherit; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }

.view-header { margin-bottom: 24px; margin-top: 20px; }
.view-date { font-size: 11px; font-weight: 800; color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; }
.view-title { font-size: 30px; margin: 4px 0 0; font-weight: 800; }

/* ONBOARDING EXTENSIONS */
.onboard-btn-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
}

.onboard-btn-next {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.onboard-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

/* SEGMENTED CONTROL: PILLS */
.time-pills {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pill {
  flex: 1;
  padding: 10px 0;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
}

.pill.active {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* AVATAR SELECTOR */
.avatar-opt {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s var(--ease-premium);
}
.avatar-opt.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-color);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
.avatar-opt:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}
