/* ============================================================
   AIMORA AI v2.0.1 — Pro Navigation & UI Cleanup
   File-scoped UI patch. No LSRW logic is changed.
   ============================================================ */

.app-shell .aimora-nav-app{
  background:rgba(7,17,38,.985)!important;
  border-bottom:1px solid rgba(255,255,255,.075)!important;
  box-shadow:0 10px 34px rgba(5,11,28,.16);
}
.app-shell .aimora-nav-wrap{
  width:100%;
  max-width:1540px;
  margin:0 auto;
  min-height:76px;
  padding-left:28px;
  padding-right:28px;
}
.app-shell .aimora-brand{margin-right:30px}
.app-shell .aimora-brand-icon{width:36px!important;height:36px!important}
.app-shell .aimora-edition{font-size:.62rem;padding:.3rem .5rem}
.app-shell .aimora-main-menu{gap:3px}
.app-shell .aimora-main-menu>.nav-item>.nav-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:.62rem .72rem!important;
  border-radius:11px;
  color:rgba(255,255,255,.72)!important;
  font-size:.84rem!important;
  font-weight:760!important;
  letter-spacing:-.01em;
  transition:background .16s ease,color .16s ease,transform .16s ease;
  white-space:nowrap;
}
.app-shell .aimora-main-menu>.nav-item>.nav-link:hover,
.app-shell .aimora-main-menu>.nav-item>.nav-link:focus{
  color:#fff!important;
  background:rgba(255,255,255,.07);
}
.app-shell .aimora-main-menu>.nav-item>.nav-link.active,
.app-shell .aimora-main-menu>.nav-item.show>.nav-link{
  color:#fff!important;
  background:rgba(117,94,255,.18);
  box-shadow:inset 0 0 0 1px rgba(132,112,255,.2);
}
.app-shell .aimora-main-menu>.nav-item>.nav-link.active:after{
  border-top-color:#fff;
}
.app-shell .aimora-main-menu>.nav-item>.nav-link:not(.dropdown-toggle).active:before{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:3px;
  height:2px;
  border-radius:99px;
  background:linear-gradient(90deg,#885cff,#23b8ff);
}
.app-shell .aimora-nav-priority{
  color:#fff!important;
  background:linear-gradient(135deg,rgba(123,63,242,.18),rgba(22,140,242,.11));
  box-shadow:inset 0 0 0 1px rgba(77,181,255,.12);
}

/* Dropdown surface */
.app-shell .aimora-dropdown-menu{
  width:330px;
  margin-top:10px!important;
  padding:10px;
  border:1px solid #e8eaf3;
  border-radius:18px;
  background:rgba(255,255,255,.99);
  box-shadow:0 24px 60px rgba(15,23,42,.18);
  overflow:hidden;
}
.app-shell .aimora-dropdown-menu.aimora-dropdown-wide{width:390px}
.app-shell .aimora-dropdown-head{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 11px 12px;
  margin-bottom:5px;
  border-bottom:1px solid #edf0f5;
}
.app-shell .aimora-dropdown-head strong{font-size:.8rem;color:#111827;letter-spacing:.01em}
.app-shell .aimora-dropdown-head small{font-size:.71rem;color:#7b8496;line-height:1.35}
.app-shell .aimora-dropdown-menu .dropdown-item{
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 10px;
  margin:2px 0;
  border-radius:12px;
  color:#1f2937;
  white-space:normal;
  transition:background .15s ease,transform .15s ease,color .15s ease;
}
.app-shell .aimora-dropdown-menu .dropdown-item:hover,
.app-shell .aimora-dropdown-menu .dropdown-item:focus{
  color:#17152f;
  background:linear-gradient(135deg,#f5f2ff,#f0f9ff);
  transform:translateX(2px);
}
.app-shell .aimora-dropdown-menu .dropdown-item.active{
  color:#3d2eb5;
  background:linear-gradient(135deg,#eeeaff,#edf9ff);
}
.app-shell .aimora-dropdown-menu .dropdown-item span:last-child{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.15;
}
.app-shell .aimora-dropdown-menu .dropdown-item strong{font-size:.78rem;font-weight:850}
.app-shell .aimora-dropdown-menu .dropdown-item small{font-size:.68rem;color:#7a8496;margin-top:3px;line-height:1.28}
.app-shell .aimora-dd-icon{
  width:31px;
  height:31px;
  flex:0 0 31px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:linear-gradient(135deg,#efebff,#e8f8ff);
  color:#5b4bd7;
  font-size:.67rem;
  font-weight:900;
  letter-spacing:-.02em;
}
.app-shell .aimora-dd-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
}
.app-shell .aimora-dd-grid .dropdown-item{min-width:0}
.app-shell .aimora-dd-grid .dropdown-item small{max-width:125px}

/* Account */
.app-shell .aimora-account-item{margin-left:7px;padding-left:8px;border-left:1px solid rgba(255,255,255,.09)}
.app-shell .aimora-account-toggle{padding:.34rem .45rem!important}
.app-shell .aimora-avatar{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 32px;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(135deg,#7b3ff2,#168cf2);
  box-shadow:0 5px 18px rgba(62,113,238,.28);
  font-size:.72rem;
  font-weight:900;
}
.app-shell .aimora-avatar-lg{width:42px;height:42px;flex-basis:42px;font-size:.86rem}
.app-shell .aimora-account-copy{display:flex;flex-direction:column;line-height:1.05;max-width:110px}
.app-shell .aimora-account-copy strong{font-size:.72rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-shell .aimora-account-copy small{font-size:.62rem;color:rgba(255,255,255,.48);margin-top:4px}
.app-shell .aimora-account-menu{width:300px}
.app-shell .aimora-account-head{display:flex;align-items:center;gap:12px;padding:9px 10px 13px;margin-bottom:5px;border-bottom:1px solid #edf0f5}
.app-shell .aimora-account-head>span:last-child{display:flex;flex-direction:column;min-width:0}
.app-shell .aimora-account-head strong{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-shell .aimora-account-head small{font-size:.68rem;color:#7c8596;margin-top:2px}
.app-shell .aimora-logout-link{color:#b42318!important}
.app-shell .aimora-logout-link .aimora-dd-icon{background:#fff1f0;color:#d92d20}
.app-shell .aimora-dropdown-menu .dropdown-divider{margin:7px 4px;border-color:#edf0f5}

/* Mobile / tablet */
.app-shell .aimora-menu-toggle{
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:12px;
  padding:.42rem .58rem;
  box-shadow:none!important;
}
.app-shell .aimora-menu-toggle .navbar-toggler-icon{filter:brightness(0) invert(1);opacity:.9}

@media(max-width:1199.98px){
  .app-shell .aimora-nav-wrap{min-height:68px;padding-left:18px;padding-right:18px}
  .app-shell .aimora-brand{margin-right:0}
  .app-shell #aimoraMainNav{
    margin:10px -2px 4px;
    padding:12px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    background:rgba(12,24,53,.98);
    box-shadow:0 22px 55px rgba(0,0,0,.28);
    max-height:calc(100vh - 94px);
    overflow-y:auto;
  }
  .app-shell .aimora-main-menu{align-items:stretch!important;gap:3px}
  .app-shell .aimora-main-menu>.nav-item>.nav-link{padding:.7rem .8rem!important;min-height:44px;font-size:.88rem!important}
  .app-shell .aimora-main-menu>.nav-item>.nav-link:not(.dropdown-toggle).active:before{display:none}
  .app-shell .aimora-dropdown-menu,
  .app-shell .aimora-dropdown-menu.aimora-dropdown-wide,
  .app-shell .aimora-account-menu{
    position:static!important;
    transform:none!important;
    width:100%!important;
    margin:3px 0 8px!important;
    padding:8px;
    border-color:rgba(255,255,255,.1);
    border-radius:15px;
    background:rgba(255,255,255,.06);
    box-shadow:none;
  }
  .app-shell .aimora-dropdown-head{border-color:rgba(255,255,255,.1)}
  .app-shell .aimora-dropdown-head strong,
  .app-shell .aimora-dropdown-menu .dropdown-item{color:#fff}
  .app-shell .aimora-dropdown-head small,
  .app-shell .aimora-dropdown-menu .dropdown-item small,
  .app-shell .aimora-account-head small{color:rgba(255,255,255,.5)}
  .app-shell .aimora-dropdown-menu .dropdown-item:hover,
  .app-shell .aimora-dropdown-menu .dropdown-item:focus,
  .app-shell .aimora-dropdown-menu .dropdown-item.active{
    color:#fff;
    background:rgba(255,255,255,.08);
    transform:none;
  }
  .app-shell .aimora-account-item{margin:7px 0 0;padding:8px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.09)}
  .app-shell .aimora-account-head{border-color:rgba(255,255,255,.1)}
  .app-shell .aimora-account-head strong{color:#fff}
  .app-shell .aimora-dropdown-menu .dropdown-divider{border-color:rgba(255,255,255,.1)}
  .app-shell .aimora-logout-link{color:#ffb4ac!important}
}

@media(max-width:575.98px){
  .app-shell .aimora-nav-wrap{padding-left:12px;padding-right:12px}
  .app-shell .aimora-brand-icon{width:33px!important;height:33px!important}
  .app-shell .aimora-wordmark{font-size:1.08rem!important}
  .app-shell .aimora-dd-grid{grid-template-columns:1fr}
  .app-shell .aimora-dropdown-menu .dropdown-item small{max-width:none}
}
