/* First Exchange SolidPay PWA - Main CSS Design System */

:root {
  /* Color Palette - Premium Dark Fintech Theme */
  --bg-dark: #090d16;
  --bg-card: #131b2e;
  --bg-card-hover: #1c2742;
  --bg-card-glass: rgba(19, 27, 46, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-highlight: rgba(99, 102, 241, 0.4);

  /* Accents & Gradients */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #818cf8;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --grad-accent: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Layout & Spacing */
  --max-width: 1080px;
  --header-height: 64px;
  --nav-height: 68px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.35);
  --glass-backdrop: blur(16px) saturate(180%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Container Layout */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.main-container {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem 1rem;
}

@media (min-width: 768px) {
  .main-container {
    padding-bottom: 2.5rem;
  }
}

/* Header Bar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.staff-profile-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.staff-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
}

.staff-info {
  display: flex;
  flex-direction: column;
}

.staff-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
}

.staff-role {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Bottom Navigation for Mobile / Top Nav for Desktop */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(19, 27, 46, 0.92);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .bottom-nav {
    position: relative;
    height: 52px;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0 1rem;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  flex: 1;
}

@media (min-width: 768px) {
  .nav-item {
    flex-direction: row;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    flex: initial;
  }
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-item.active svg {
  stroke: var(--accent-cyan);
  transform: translateY(-2px);
}
