/* ===================== GLOBAL TOPBAR UI ===================== */

.topbar{
  width:100%;
  min-height:64px;
  background:#0f172a;
  border-bottom:1px solid rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 8px 24px rgba(0,0,0,0.25);
}

.topbar .logo{
  font-size:22px;
  font-weight:800;
  color:#42b3ff;
  white-space:nowrap;
}

.topbar .menu{
  display:flex;
  align-items:center;
  gap:18px;
}

.topbar .menu a{
  color:#dbeafe;
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  transition:0.25s;
}

.topbar .menu a:hover{
  color:#42b3ff;
}

.topbar .menu a.disabled{
  opacity:0.45;
  pointer-events:none;
}

/* ===================== USER BOX ===================== */

.user-box{
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 12px;
  border-radius:14px;
  background:#13253b;
  border:1px solid rgba(255,255,255,0.06);
  color:#dbeafe;
  cursor:pointer;
  transition:0.25s;
  min-height:44px;
}

.user-box:hover{
  background:#1f2f46;
  color:white;
  transform:translateY(-1px);
}

.top-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(66,179,255,0.55);
  background:#0f1c2e;
  flex-shrink:0;
}

#userName{
  font-size:14px;
  font-weight:700;
  max-width:130px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


/* ===================== MOBILE ===================== */

@media(max-width:768px){

  .topbar{
    padding:0 14px;
    gap:12px;
  }

  .topbar .logo{
    font-size:18px;
  }

  .topbar .menu{
    display:none;
  }

  .user-box{
    padding:6px 9px;
  }

  #userName{
    max-width:90px;
    font-size:13px;
  }

  .top-avatar{
    width:32px;
    height:32px;
  }
}