/* Responsive Global Layout System (Production Full Screen) */
#app-root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

/* Full Width Production Canvas */
.production-canvas {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Responsive Customer Layout Container */
.customer-desktop-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Desktop Production Navbar (Floating Rounded Island with Frosted Glassmorphism) */
.desktop-navbar {
  display: none; /* Shown on screens >= 768px */
  height: 68px;
  margin: 12px auto 0;
  max-width: 1240px;
  width: calc(100% - 36px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(108, 92, 231, 0.16);
  box-shadow: 0 10px 32px -4px rgba(108, 92, 231, 0.1), 0 2px 6px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 12px;
  z-index: 1000;
  padding: 0 28px;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .desktop-navbar {
  background: rgba(14, 16, 27, 0.8);
  border: 1.5px solid rgba(139, 124, 246, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.desktop-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.desktop-brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-brand-logo-img:hover {
  transform: scale(1.04);
}

[data-theme="dark"] .desktop-brand-logo-img {
  background: #FFFFFF;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.mobile-brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

[data-theme="dark"] .mobile-brand-logo-img {
  background: #FFFFFF;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 92, 231, 0.04);
  padding: 5px 6px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(108, 92, 231, 0.08);
}

.desktop-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
  transform: translateY(-1px);
}

.desktop-nav-link.active {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(139, 92, 246, 0.18));
  color: var(--primary);
  border: 1px solid rgba(108, 92, 231, 0.3);
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.15);
  font-weight: 700;
}

.desktop-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Glowing Fintech Balance Pill */
.header-balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6C5CE7 0%, #4F46E5 100%);
  color: #FFFFFF;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-balance-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.45);
}

.header-balance-val {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.add-plus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.nav-balance-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.nav-balance-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

/* Strict Breakpoint Media Queries */
@media (min-width: 768px) {
  .desktop-navbar {
    display: flex !important;
  }
  .customer-header {
    display: none !important; /* Strictly hide mobile header on desktop */
  }
  .customer-bottom-nav {
    display: none !important; /* Strictly hide mobile bottom nav on desktop */
  }
  .customer-container {
    padding-bottom: 0 !important;
  }
  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .balance-hero-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .balance-hero-card .btn {
    width: auto;
    min-width: 160px;
  }
}

@media (max-width: 767px) {
  .desktop-navbar {
    display: none !important;
  }
  .customer-header {
    display: flex !important;
  }
  .customer-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
  }
  .customer-desktop-container {
    padding: 16px 14px 84px;
  }
}
