/* Extracted from index.css L789-L1049: App layout, navigation, views */

/* ===== LAYOUT ===== */
.app { display: flex; height: 100vh; position: relative; z-index: 1; }

/* ---- Nav Column — premium elevated rail ---- */
.nav-column {
  position: relative;
  width: 248px;
  min-height: 100vh;
  flex-shrink: 0;
  z-index: 10;
  /* Dark frosted glass base — layered for depth */
  background:
    linear-gradient(180deg,
      rgba(8, 14, 28, 0.96) 0%,
      rgba(10, 18, 36, 0.92) 45%,
      rgba(8, 14, 30, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  /* Right edge: faint border + stronger shadow separation into content */
  border-right: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    1px 0 0 rgba(255,255,255,0.04),   /* inner right edge catch-light */
    16px 0 48px rgba(0,0,0,0.38),
    32px 0 96px rgba(0,0,0,0.22),
    48px 0 120px rgba(0,0,0,0.10);
  /* Left physical edge — where light hits glass */
  border-left: 1px solid rgba(255,255,255,0.09);
}

/* Layer 1 — Blue ambient wash from the left (light source behind glass) */
.nav-column::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* Blue ambient from behind-left */
    radial-gradient(
      ellipse at -20% 55%,
      rgba(96, 165, 250, 0.22) 0%,
      rgba(96, 165, 250, 0.10) 30%,
      transparent 60%
    ),
    /* Crown highlight — brighter glass top, as if lit from above */
    radial-gradient(
      ellipse at 50% -5%,
      rgba(180, 210, 255, 0.11) 0%,
      rgba(120, 170, 255, 0.05) 40%,
      transparent 70%
    );
}

/* Layer 2 — Specular sheen + inner left edge catch-light */
.nav-column::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* Diagonal specular rake — light grazing across the glass face */
    linear-gradient(
      118deg,
      rgba(255,255,255,0.055) 0%,
      rgba(255,255,255,0.018) 18%,
      rgba(255,255,255,0.000) 38%,
      rgba(255,255,255,0.008) 72%,
      rgba(255,255,255,0.022) 100%
    ),
    /* Inner left edge catch-light — 2px bright sliver */
    linear-gradient(
      90deg,
      rgba(255,255,255,0.10) 0px,
      rgba(255,255,255,0.04) 2px,
      transparent 8px
    );
}

.sidebar {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.logo { 
  padding: 1.6rem 1.4rem 1.4rem; 
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.logo h1 { 
  font-size: 1.1rem; 
  font-weight: 800; 
  letter-spacing: -0.03em; 
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo p { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; letter-spacing: 0.04em; text-transform: uppercase; }

.nav { flex: 1; padding: 0.85rem 0; overflow-y: auto; position: relative; z-index: 1; }
.nav-item { 
  padding: 0.65rem 1.3rem; 
  cursor: pointer; 
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin: 1px 8px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.nav-item svg { 
  flex-shrink: 0; 
  transition: all 0.16s ease;
  opacity: 0.6;
  width: 18px;
  height: 18px;
}
.nav-item span { 
  transition: all 0.16s ease;
  position: relative;
}
.nav-item:hover { 
  color: #ffffff;
  transform: translateX(2px);
  background: rgba(255,255,255,0.04);
  text-shadow: 0 0 12px rgba(255,255,255,0.12);
}
.nav-item:hover svg { opacity: 0.9; }

/* Active state — keep green brand, premium pill treatment */
.nav-item.active { 
  background:
    linear-gradient(90deg,
      rgba(52, 211, 153, 0.14) 0%,
      rgba(52, 211, 153, 0.08) 50%,
      rgba(52, 211, 153, 0.03) 100%);
  border: 1px solid rgba(52, 211, 153, 0.16);
  color: var(--accent-green);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 18px rgba(52, 211, 153, 0.06);
}
.nav-item.active svg { opacity: 1; color: var(--accent-green); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(110, 230, 180, 0.95),
    rgba(52, 211, 153, 0.85)
  );
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

/* ---- Sub-menu (Transactions children) ---- */
.nav-item--parent {
  justify-content: flex-start;
}
.nav-item--parent .nav-chevron {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}
.nav-item--parent.submenu-open .nav-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}
.nav-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-submenu.open {
  max-height: 120px;
}
.nav-item--child {
  padding: 0.45rem 1.25rem 0.45rem 2.7rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.nav-item--child:hover {
  color: #fff;
  background: rgba(255,255,255,0.03);
}
.nav-item--child svg {
  width: 15px;
  height: 15px;
  opacity: 0.50;
}
.nav-item--child:hover svg { opacity: 0.85; }
.nav-item--child.active {
  color: var(--accent-green);
  background:
    linear-gradient(90deg,
      rgba(52, 211, 153, 0.12) 0%,
      rgba(52, 211, 153, 0.04) 100%);
  border: 1px solid rgba(52, 211, 153, 0.14);
  font-weight: 600;
}
.nav-item--child.active svg { opacity: 1; color: var(--accent-green); }

/* Section label */
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  padding: 0.5rem 1.4rem 0.3rem;
  position: relative;
  z-index: 1;
}


.main { 
  flex: 1; 
  overflow-y: auto; 
  padding: 1.75rem 2rem;
  background: transparent;
  position: relative;
}
.main::before {
  display: none;
}

h2 { 
  font-size: 1.35rem; 
  font-weight: 800; 
  margin-bottom: 1.5rem; 
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

