/*
 * DwinPayment v3.1 -- UI Upgrade
 * 3D nav icons · bright sidebar · Tools section
 */

/* ── SIDEBAR ──────────────────────────────────── */
.sidebar {
  background: linear-gradient(180deg,#e8fbff 0%,#d4f4fc 45%,#c4ecf8 100%) !important;
  border-right: 1px solid rgba(12, 80, 100, 0.12) !important;
}
.nav-section-title {
  color: rgba(30, 90, 110, 0.78) !important;
  letter-spacing: 0.08em !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}
.nav-item {
  color: rgba(20, 70, 88, 0.95) !important;
  border-radius: 10px !important;
  margin: 1px 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.nav-item:hover {
  background: rgba(0, 151, 167, 0.12) !important;
  color: #0a4a5c !important;
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 151, 167, 0.2), rgba(94, 173, 179, 0.14)) !important;
  color: #063d4d !important;
  font-weight: 700 !important;
  border-left: 3px solid #0097a7 !important;
}

/* ── Tools row icons only (not sidebar .nav-item — those use emoji in icons-3d.css) ── */
.nav-item-link .nav-icon {
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.18) !important;
  transition: transform .15s, box-shadow .15s !important;
}
.nav-item-link:hover .nav-icon {
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

/* ── TOOLS SECTION (nav-item-link) ────────────── */
.nav-item-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(20, 70, 88, 0.95) !important;
  transition: all .15s !important;
  text-decoration: none !important;
  margin: 1px 0 !important;
  line-height: 1.4 !important;
}
.nav-item-link:hover {
  background: rgba(0, 151, 167, 0.12) !important;
  color: #0a4a5c !important;
}
.nav-icon-ledger    { background: linear-gradient(135deg,#f46b45,#eea849) !important; color:#fff !important; }
.nav-icon-sandbox   { background: linear-gradient(135deg,#4776e6,#8e54e9) !important; color:#fff !important; }
.nav-icon-assistant { background: linear-gradient(135deg,#11998e,#38ef7d) !important; color:#fff !important; }

/* ── HEADER LOGO ──────────────────────────────── */
.header-logo {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
}

/* ── TAB BUTTONS (Treasury) ───────────────────── */
.tab-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border2,#dce3ef);
  border-radius: 8px 8px 0 0;
  background: var(--surface2,#f5f7fb);
  color: var(--text2,#6b7280);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.tab-btn.active {
  background: #fff;
  color: var(--navy,#0f2744);
  font-weight: 700;
}

/* Sidebar: same as main.css — self-contained when only this + main are loaded */
#sidebar .nav-item[data-module] > .nav-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45)) !important;
}
#sidebar .nav-item[data-module="assistant"] > .nav-icon {
  filter: drop-shadow(0 2px 6px rgba(201, 162, 39, 0.5))
    drop-shadow(0 0 14px rgba(255, 107, 157, 0.35)) !important;
}
#sidebar .nav-item:hover > .nav-icon,
#sidebar .nav-item.active > .nav-icon {
  box-shadow: none !important;
  transform: scale(1.06) translateY(-1px) !important;
}
